25 #ifndef DIGIKAM_SMUG_TALKER_H
26 #define DIGIKAM_SMUG_TALKER_H
41 #if defined(Q_CC_CLANG)
42 # pragma clang diagnostic push
43 # pragma clang diagnostic ignored "-Wextra-semi"
46 #include "o0globals.h"
47 #include "o1smugmug.h"
48 #include "o1requestor.h"
50 #if defined(Q_CC_CLANG)
51 # pragma clang diagnostic pop
74 bool loggedIn()
const;
79 void removeUserAccount(
const QString& userName);
81 void getLoginedUser();
84 void listAlbums(
const QString& nickName = QString());
85 void listPhotos(qint64 albumID,
86 const QString& albumKey,
87 const QString& albumPassword = QString(),
88 const QString& sitePassword = QString());
98 bool addPhoto(
const QString& imgPath,
100 const QString& albumKey,
101 const QString& caption);
103 void getPhoto(
const QString& imgPath);
105 QString createAlbumName(
const QString& word);
107 QString createAlbumUrl(
const QString& name);
115 const QString& label = QString());
121 const QByteArray& photoData);
123 const QString& newAlbumKey);
141 QString htmlToText(
const QString& htmlText)
const;
142 QString errorToText(
int errCode,
const QString& errMsg)
const;
143 void parseResponseLogin(
const QByteArray& data);
147 void parseResponseAddPhoto(
const QByteArray& data);
148 void parseResponseCreateAlbum(
const QByteArray& data);
149 void parseResponseListAlbums(
const QByteArray& data);
150 void parseResponseListPhotos(
const QByteArray& data);
151 void parseResponseListAlbumTmpl(
const QByteArray& data);
161 void slotFinished(QNetworkReply* reply);
162 void slotLinkingFailed();
163 void slotLinkingSucceeded();
164 void slotOpenBrowser(
const QUrl& url);
165 void slotCloseBrowser();
Definition: smugitem.h:72
Definition: smugtalker.h:62
void signalListAlbumsDone(int errCode, const QString &errMsg, const QList< SmugAlbum > &albumsList)
void signalGetPhotoDone(int errCode, const QString &errMsg, const QByteArray &photoData)
void signalListAlbumTmplDone(int errCode, const QString &errMsg, const QList< SmugAlbumTmpl > &albumTList)
void signalListPhotosDone(int errCode, const QString &errMsg, const QList< SmugPhoto > &photosList)
void signalLoginProgress(int step, int maxStep=0, const QString &label=QString())
void signalBusy(bool val)
void signalAddPhotoDone(int errCode, const QString &errMsg)
void signalLinkingSucceeded()
void signalLoginDone(int errCode, const QString &errMsg)
void signalCreateAlbumDone(int errCode, const QString &errMsg, qint64 newAlbumID, const QString &newAlbumKey)
Definition: smugitem.h:36
Definition: dinfointerface.h:56
Definition: piwigotalker.h:48
Definition: smugitem.h:33
Definition: datefolderview.cpp:43