24 #ifndef DIGIKAM_VKONTAKTE_UPLOADPHOTOSJOB_H
25 #define DIGIKAM_VKONTAKTE_UPLOADPHOTOSJOB_H
29 #include <QVariantMap>
39 class UploadPhotosJob :
public KJobWithSubjobs
52 explicit UploadPhotosJob(
const QString& accessToken,
53 const QStringList& files,
bool saveBig,
int aid,
int gid = -1);
54 ~UploadPhotosJob()
override;
56 void start()
override;
62 static const int MAX_POST_JOBS;
63 static const int REQUEST_FILES_COUNT;
67 int getMaxRequestFilesCount()
const;
69 bool mayStartPostJob();
71 void startPostJob(
int offset,
int count);
72 void startSaveJob(
const QVariantMap& photoIdData);
80 void serverJobFinished(KJob*);
81 void postJobFinished(KJob*);
82 void saveJobFinished(KJob*);
87 UploadPhotosJob(QObject*) =
delete;
Definition: piwigotalker.h:48