mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-07 23:06:15 +00:00
[Facebook] Signal that the album is found
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a2734e6aaf
commit
df166247af
2 changed files with 3 additions and 0 deletions
|
@ -110,6 +110,7 @@ void FacebookManager::albumListReceived()
|
||||||
QJsonObject obj = v.toObject();
|
QJsonObject obj = v.toObject();
|
||||||
if (obj.value("name").toString() == albumName) {
|
if (obj.value("name").toString() == albumName) {
|
||||||
fb->setAlbumId(obj.value("id").toString());
|
fb->setAlbumId(obj.value("id").toString());
|
||||||
|
emit albumIdReceived(fb->albumId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -142,6 +143,7 @@ void FacebookManager::facebookAlbumCreated()
|
||||||
if (album.contains("id")) {
|
if (album.contains("id")) {
|
||||||
auto fb = SettingsObjectWrapper::instance()->facebook;
|
auto fb = SettingsObjectWrapper::instance()->facebook;
|
||||||
fb->setAlbumId(album.value("id").toString());
|
fb->setAlbumId(album.value("id").toString());
|
||||||
|
emit albumIdReceived(fb->albumId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,7 @@ public:
|
||||||
signals:
|
signals:
|
||||||
void justLoggedIn(bool triggererd);
|
void justLoggedIn(bool triggererd);
|
||||||
void justLoggedOut(bool triggered);
|
void justLoggedOut(bool triggered);
|
||||||
|
void albumIdReceived(const QString& albumId);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void tryLogin(const QUrl& loginResponse);
|
void tryLogin(const QUrl& loginResponse);
|
||||||
|
|
Loading…
Add table
Reference in a new issue