24 #ifndef DIGIKAM_YF_TALKER_H
25 #define DIGIKAM_YF_TALKER_H
31 #include <QDomElement>
97 explicit YFTalker(QObject*
const parent =
nullptr);
107 const QString&
token()
const;
109 const QString&
login()
const;
159 void slotFinished(QNetworkReply* reply);
161 void slotParseResponseGetSession();
165 void slotParseResponseGetToken();
166 void slotParseResponseGetService();
167 void slotParseResponseListAlbums();
169 void slotParseResponseListPhotos();
170 bool slotParsePhotoXml(
const QDomElement& entryElem,
173 void slotParseResponseUpdatePhotoFile();
174 void slotParseResponseUpdatePhotoInfo();
175 void slotParseResponseUpdateAlbum();
180 void updatePhotoFile(
YFPhoto& photo);
181 void updatePhotoInfo(
YFPhoto& photo);
189 void listAlbumsNext();
192 void listPhotosNext();
Definition: yftalker.h:44
void signalError()
emits when we are in a bad state
static const QString USERPAGE_URL
API-related public constants.
Definition: yftalker.h:141
void signalListPhotosDone(const QList< YFPhoto > &)
const QString & token() const
Definition: yftalker.cpp:151
void signalGetTokenDone()
void getToken()
Definition: yftalker.cpp:241
const QString & sessionId() const
Definition: yftalker.cpp:146
const QList< YandexFotkiAlbum > & albums() const
Definition: yftalker.cpp:186
void setPassword(const QString &password)
Definition: yftalker.cpp:171
void signalGetSessionDone()
const QString & sessionKey() const
Definition: yftalker.cpp:141
bool isErrorState() const
Definition: yftalker.cpp:181
State state() const
Definition: yftalker.cpp:136
void signalUpdatePhotoDone(YFPhoto &)
void listPhotos(const YandexFotkiAlbum &album)
Definition: yftalker.cpp:299
const QString & login() const
Definition: yftalker.cpp:156
void updateAlbum(YandexFotkiAlbum &album)
Definition: yftalker.cpp:471
bool isAuthenticated() const
Definition: yftalker.cpp:176
void signalGetServiceDone()
void reset()
Definition: yftalker.cpp:532
void getSession()
Definition: yftalker.cpp:227
const QString & password() const
Definition: yftalker.cpp:166
void setLogin(const QString &login)
Definition: yftalker.cpp:161
void listAlbums()
Definition: yftalker.cpp:270
void signalUpdateAlbumDone()
void getService()
Definition: yftalker.cpp:196
void updatePhoto(YFPhoto &photo, const YandexFotkiAlbum &album)
Definition: yftalker.cpp:327
~YFTalker() override
Definition: yftalker.cpp:130
YFTalker(QObject *const parent=nullptr)
Definition: yftalker.cpp:120
State
Definition: yftalker.h:52
@ STATE_GETSESSION
Definition: yftalker.h:67
@ STATE_GETSERVICE
Definition: yftalker.h:58
@ STATE_UPDATEALBUM
Definition: yftalker.h:90
@ STATE_UPDATEALBUM_DONE
Definition: yftalker.h:92
@ STATE_LISTPHOTOS
Definition: yftalker.h:80
@ STATE_GETTOKEN_DONE
simple alias
Definition: yftalker.h:74
@ STATE_GETSERVICE_ERROR
Definition: yftalker.h:59
@ STATE_GETTOKEN_ERROR
Definition: yftalker.h:73
@ STATE_LISTALBUMS_DONE
Definition: yftalker.h:78
@ STATE_GETSERVICE_DONE
Definition: yftalker.h:60
@ STATE_UNAUTHENTICATED
Definition: yftalker.h:54
@ STATE_UPDATEPHOTO_DONE
Definition: yftalker.h:88
@ STATE_LISTPHOTOS_DONE
Definition: yftalker.h:82
@ STATE_UPDATEPHOTO_INFO_ERROR
Definition: yftalker.h:87
@ STATE_GETSESSION_DONE
Definition: yftalker.h:69
@ STATE_GETTOKEN
Definition: yftalker.h:71
@ STATE_LISTALBUMS
Definition: yftalker.h:76
@ STATE_UPDATEPHOTO_INFO
Definition: yftalker.h:86
@ STATE_UPDATEALBUM_ERROR
Definition: yftalker.h:91
@ STATE_UPDATEPHOTO_FILE
Definition: yftalker.h:84
@ STATE_INVALID_CREDENTIALS
Definition: yftalker.h:72
@ STATE_UPDATEPHOTO_FILE_ERROR
Definition: yftalker.h:85
@ STATE_AUTHENTICATED
Definition: yftalker.h:55
@ STATE_LISTALBUMS_ERROR
Definition: yftalker.h:77
@ STATE_LISTPHOTOS_ERROR
Definition: yftalker.h:81
@ STATE_ERROR
Definition: yftalker.h:56
@ STATE_GETSESSION_ERROR
Definition: yftalker.h:68
static const QString USERPAGE_DEFAULT_URL
Definition: yftalker.h:142
const QList< YFPhoto > & photos() const
Definition: yftalker.cpp:191
void signalListAlbumsDone(const QList< YandexFotkiAlbum > &)
void cancel()
Definition: yftalker.cpp:544
Definition: piwigotalker.h:48
Definition: yfalbum.cpp:27