24 #ifndef DIGIKAM_VKONTAKTE_PHOTOPOSTJOB_H
25 #define DIGIKAM_VKONTAKTE_PHOTOPOSTJOB_H
29 #include <QStringList>
30 #include <QVariantMap>
46 class PhotoPostJob :
public KJob
53 explicit PhotoPostJob(Vkontakte::UploadPhotosJob::Dest dest,
55 const QStringList& files);
57 void start()
override;
58 QVariantMap response()
const;
65 void handleError(
const QJsonValue& data);
69 void parseNetworkResponse(QNetworkReply* reply);
73 bool appendFile(QHttpMultiPart* multiPart,
const QString& header,
const QString& path);
77 UploadPhotosJob::Dest m_dest;
81 QVariantMap m_response;
86 explicit PhotoPostJob(QObject*) =
delete;