27 #ifndef DIGIKAM_PIWIGO_TALKER_H
28 #define DIGIKAM_PIWIGO_TALKER_H
35 #include <QTextStream>
38 #include <QNetworkReply>
39 #include <QNetworkAccessManager>
74 CHUNK_MAX_SIZE = 512*1024,
81 QWidget*
const parent);
86 bool loggedIn()
const;
88 void login(
const QUrl& url,
const QString& name,
const QString& passwd);
99 bool addPhoto(
int albumId,
100 const QString& photoPath,
101 bool rescale =
false,
103 int maxHeight = 1600,
108 static QString getAuthToken();
122 void parseResponseLogin(
const QByteArray& data);
123 void parseResponseGetVersion(
const QByteArray& data);
124 void parseResponseListAlbums(
const QByteArray& data);
125 void parseResponseDoesPhotoExist(
const QByteArray& data);
126 void parseResponseGetInfo(
const QByteArray& data);
127 void parseResponseSetInfo(
const QByteArray& data);
130 void parseResponseAddPhotoChunk(
const QByteArray& data);
131 void addPhotoSummary();
132 void parseResponseAddPhotoSummary(
const QByteArray& data);
134 QByteArray computeMD5Sum(
const QString& filepath);
135 void deleteTemporaryFile();
139 void slotFinished(QNetworkReply* reply);
146 static QString s_authToken;
Definition: piwigotalker.h:54
State
Definition: piwigotalker.h:60
@ GE_GETVERSION
Definition: piwigotalker.h:63
@ GE_LISTALBUMS
Definition: piwigotalker.h:64
@ GE_SETINFO
Definition: piwigotalker.h:67
@ GE_CHECKPHOTOEXIST
Definition: piwigotalker.h:65
@ GE_GETINFO
Definition: piwigotalker.h:66
@ GE_ADDPHOTOCHUNK
Definition: piwigotalker.h:68
void signalProgressInfo(const QString &msg)
void signalBusy(bool val)
void signalAlbums(const QList< PiwigoAlbum > &albumList)
void signalLoginFailed(const QString &msg)
void signalError(const QString &msg)
void signalAddPhotoSucceeded()
void signalAddPhotoFailed(const QString &msg)
void listPhotos(const QString &albumName)
Definition: dinfointerface.h:56
Definition: piwigotalker.h:48
Definition: piwigoitem.h:35
Definition: datefolderview.cpp:43