本文整理汇总了C++中kio::Job::errorText方法的典型用法代码示例。如果您正苦于以下问题:C++ Job::errorText方法的具体用法?C++ Job::errorText怎么用?C++ Job::errorText使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类kio::Job
的用法示例。
在下文中一共展示了Job::errorText方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: slotResult
void DsTalker::slotResult(KJob* kjob)
{
m_job = 0;
KIO::Job* job = static_cast<KIO::Job*>(kjob);
if (job->error())
{
emit signalBusy(false);
emit signalAddScreenshotDone(job->error(), job->errorText());
}
emit signalBusy(false);
emit signalAddScreenshotDone(0, QString());
// else
// {
// kDebug() << "Uploaded successfully screenshot " << job->queryMetaData("Screenshot")
// << " to Debian Screenshots for package " << job->queryMetaData("Package")
// << " " << job->queryMetaData("Version")
// << " with description " << job->queryMetaData("Description");
// }
}
示例2: slotResult
void FbTalker::slotResult(KJob* kjob)
{
m_job = 0;
KIO::Job* job = static_cast<KIO::Job*>(kjob);
if (job->error())
{
if (m_loginInProgress)
{
authenticationDone(job->error(), job->errorText());
}
else if (m_state == FB_ADDPHOTO)
{
emit signalBusy(false);
emit signalAddPhotoDone(job->error(), job->errorText());
}
else if (m_state == FB_GETPHOTO)
{
emit signalBusy(false);
emit signalGetPhotoDone(job->error(), job->errorText(), QByteArray());
}
else
{
emit signalBusy(false);
job->ui()->setWindow(m_parent);
job->ui()->showErrorMessage();
}
return;
}
switch(m_state)
{
case(FB_EXCHANGESESSION):
parseExchangeSession(m_buffer);
break;
case(FB_GETLOGGEDINUSER):
parseResponseGetLoggedInUser(m_buffer);
break;
case(FB_GETUSERINFO):
case(FB_GETUSERINFO_FRIENDS):
parseResponseGetUserInfo(m_buffer);
break;
case(FB_GETUPLOADPERM):
parseResponseGetUploadPermission(m_buffer);
break;
case(FB_LOGOUT):
parseResponseLogout(m_buffer);
break;
case(FB_LISTFRIENDS):
parseResponseListFriends(m_buffer);
break;
case(FB_LISTALBUMS):
parseResponseListAlbums(m_buffer);
break;
case(FB_LISTPHOTOS):
parseResponseListPhotos(m_buffer);
break;
case(FB_CREATEALBUM):
parseResponseCreateAlbum(m_buffer);
break;
case(FB_ADDPHOTO):
parseResponseAddPhoto(m_buffer);
break;
case(FB_GETPHOTO):
// all we get is data of the image
emit signalBusy(false);
emit signalGetPhotoDone(0, QString(), m_buffer);
break;
}
}
示例3: slotResult
void SmugTalker::slotResult(KJob* kjob)
{
m_job = 0;
KIO::Job* job = static_cast<KIO::Job*>(kjob);
if (job->error())
{
if (m_state == SMUG_LOGIN)
{
m_sessionID.clear();
m_user.clear();
emit signalBusy(false);
emit signalLoginDone(job->error(), job->errorText());
}
else if (m_state == SMUG_ADDPHOTO)
{
emit signalBusy(false);
emit signalAddPhotoDone(job->error(), job->errorText());
}
else if (m_state == SMUG_GETPHOTO)
{
emit signalBusy(false);
emit signalGetPhotoDone(job->error(), job->errorText(), QByteArray());
}
else
{
emit signalBusy(false);
job->ui()->setWindow(m_parent);
job->ui()->showErrorMessage();
}
return;
}
switch(m_state)
{
case(SMUG_LOGIN):
parseResponseLogin(m_buffer);
break;
case(SMUG_LOGOUT):
parseResponseLogout(m_buffer);
break;
case(SMUG_LISTALBUMS):
parseResponseListAlbums(m_buffer);
break;
case(SMUG_LISTPHOTOS):
parseResponseListPhotos(m_buffer);
break;
case(SMUG_LISTALBUMTEMPLATES):
parseResponseListAlbumTmpl(m_buffer);
break;
case(SMUG_LISTCATEGORIES):
parseResponseListCategories(m_buffer);
break;
case(SMUG_LISTSUBCATEGORIES):
parseResponseListSubCategories(m_buffer);
break;
case(SMUG_CREATEALBUM):
parseResponseCreateAlbum(m_buffer);
break;
case(SMUG_ADDPHOTO):
parseResponseAddPhoto(m_buffer);
break;
case(SMUG_GETPHOTO):
// all we get is data of the image
emit signalBusy(false);
emit signalGetPhotoDone(0, QString(), m_buffer);
break;
}
}