24 #ifndef DIGIKAM_VKONTAKTE_JOBS_H
25 #define DIGIKAM_VKONTAKTE_JOBS_H
38 typedef QPair<QString, QString> QueryItem;
40 class KJobWithSubjob :
public KJob
46 explicit KJobWithSubjob(QObject*
const parent =
nullptr);
53 bool doKill()
override;
63 class KJobWithSubjobs :
public KJob
69 explicit KJobWithSubjobs(QObject*
const parent =
nullptr);
76 bool doKill()
override;
89 class VkontakteJob :
public KJobWithSubjob
97 AuthenticationProblem = KJob::UserDefinedError + 42
109 VkontakteJob(
const QString& accessToken,
const QString& method,
bool httpPost =
false);
111 void start()
override;
118 void addQueryItem(
const QString& key,
const QString&
value);
129 bool handleError(
const QJsonValue& data);
131 virtual void handleData(
const QJsonValue& data) = 0;
136 virtual void prepareQueryItems() {}
139 KJob* createHttpJob();
143 void jobFinished(KJob* kjob);
148 QString m_accessToken;
156 explicit VkontakteJob(QObject*) =
delete;
qulonglong value
Definition: itemviewutilities.cpp:592