24 #ifndef DIGIKAM_IMAGE_SHACK_TALKER_H
25 #define DIGIKAM_IMAGE_SHACK_TALKER_H
32 #include <QNetworkReply>
33 #include <QNetworkAccessManager>
41 class ImageShackSession;
59 void uploadItem(
const QString& path,
const QMap<QString, QString>& opts);
61 const QString& gallery,
62 const QMap<QString, QString>& opts);
69 const QString& label = QString());
75 const QStringList& gNames);
79 void slotFinished(QNetworkReply* reply);
83 QString getCallString(QMap<QString, QString>& args)
const;
84 void checkRegistrationCodeDone(
int errCode,
const QString& errMsg);
85 void parseAccessToken(
const QByteArray& data);
86 void parseGetGalleries(
const QByteArray& data);
87 void authenticationDone(
int errCode,
const QString& errMsg);
91 int parseErrorResponse(
const QDomElement& elem, QString& errMsg)
const;
93 void parseUploadPhotoDone(
const QByteArray& data);
94 void parseAddPhotoToGalleryDone(
const QByteArray& data);
96 QString mimeType(
const QString& path)
const;
Definition: imageshacksession.h:35
Definition: imageshacktalker.h:44
ImageShackTalker(ImageShackSession *const session)
Definition: imageshacktalker.cpp:111
void signalLoginDone(int errCode, const QString &errMsg)
void authenticate()
Definition: imageshacktalker.cpp:223
void signalGetGalleriesDone(int errCode, const QString &errMsg)
void cancelLogIn()
Definition: imageshacktalker.cpp:369
~ImageShackTalker() override
Definition: imageshacktalker.cpp:121
void signalAddPhotoDone(int errCode, const QString &errMsg)
void uploadItem(const QString &path, const QMap< QString, QString > &opts)
Definition: imageshacktalker.cpp:383
void uploadItemToGallery(const QString &path, const QString &gallery, const QMap< QString, QString > &opts)
Definition: imageshacktalker.cpp:432
void signalBusy(bool busy)
void signalJobInProgress(int step, int maxStep=0, const QString &label=QString())
void getGalleries()
Definition: imageshacktalker.cpp:248
void cancel()
Definition: imageshacktalker.cpp:131
void signalUpdateGalleries(const QStringList &gTexts, const QStringList &gNames)
Definition: imageshackitem.h:32