24 #ifndef DIGIKAM_IMGUR_TALKER_H
25 #define DIGIKAM_IMGUR_TALKER_H
112 explicit ImgurTalker(QObject*
const parent =
nullptr);
186 void startWorkTimer();
191 void stopWorkTimer();
196 void addAuthToken(QNetworkRequest* request);
201 void addAnonToken(QNetworkRequest* request);
Definition: imgurtalker.h:107
void slotUploadProgress(qint64 sent, qint64 total)
Definition: imgurtalker.cpp:199
void slotOauthFailed()
Definition: imgurtalker.cpp:193
void signalRequestPin(const QUrl &url)
void queueWork(const ImgurTalkerAction &action)
Definition: imgurtalker.cpp:142
void timerEvent(QTimerEvent *event) override
Definition: imgurtalker.cpp:303
void signalAuthError(const QString &msg)
unsigned int workQueueLength()
Definition: imgurtalker.cpp:137
O2 & getAuth()
Definition: imgurtalker.cpp:132
static QUrl urlForDeletehash(const QString &deletehash)
Definition: imgurtalker.cpp:165
void slotOauthRequestPin(const QUrl &url)
Definition: imgurtalker.cpp:187
void signalSuccess(const ImgurTalkerResult &result)
void cancelAllWork()
Definition: imgurtalker.cpp:148
void signalError(const QString &msg, const ImgurTalkerAction &action)
void signalProgress(unsigned int percent, const ImgurTalkerAction &action)
ImgurTalker(QObject *const parent=nullptr)
Definition: imgurtalker.cpp:94
void signalAuthorized(bool success, const QString &username)
void slotReplyFinished()
Definition: imgurtalker.cpp:209
void slotOauthAuthorized()
Definition: imgurtalker.cpp:170
~ImgurTalker() override
Definition: imgurtalker.cpp:122
Definition: imgurimageslist.cpp:47
ImgurTalkerActionType
Definition: imgurtalker.h:46
@ IMG_UPLOAD
Action: upload Result : image.
@ ACCT_INFO
Action: account Result : account.
@ ANON_IMG_UPLOAD
Action: upload Result : image.
Definition: imgurtalker.h:53
QString title
Definition: imgurtalker.h:59
struct DigikamGenericImgUrPlugin::ImgurTalkerAction::@1 upload
QString imgpath
Definition: imgurtalker.h:58
ImgurTalkerActionType type
Definition: imgurtalker.h:54
struct DigikamGenericImgUrPlugin::ImgurTalkerAction::@2 account
QString username
Definition: imgurtalker.h:66
QString description
Definition: imgurtalker.h:60
Definition: imgurtalker.h:95
QString username
Definition: imgurtalker.h:96
Definition: imgurtalker.h:76
qulonglong bandwidth
Definition: imgurtalker.h:90
qulonglong datetime
Definition: imgurtalker.h:83
QString deletehash
Definition: imgurtalker.h:80
QString description
Definition: imgurtalker.h:82
bool animated
Definition: imgurtalker.h:85
uint views
Definition: imgurtalker.h:89
QString url
Definition: imgurtalker.h:81
QString hash
Definition: imgurtalker.h:79
QString name
Definition: imgurtalker.h:77
uint width
Definition: imgurtalker.h:86
QString title
Definition: imgurtalker.h:78
uint height
Definition: imgurtalker.h:87
uint size
Definition: imgurtalker.h:88
QString type
Definition: imgurtalker.h:84
Definition: imgurtalker.h:72
struct DigikamGenericImgUrPlugin::ImgurTalkerResult::ImgurImage image
const ImgurTalkerAction * action
Definition: imgurtalker.h:73
struct DigikamGenericImgUrPlugin::ImgurTalkerResult::ImgurAccount account