[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:
Tomaz Canabrava 2017-10-02 14:20:37 +02:00 committed by Dirk Hohndel
parent a2734e6aaf
commit df166247af
2 changed files with 3 additions and 0 deletions

View file

@ -110,6 +110,7 @@ void FacebookManager::albumListReceived()
QJsonObject obj = v.toObject();
if (obj.value("name").toString() == albumName) {
fb->setAlbumId(obj.value("id").toString());
emit albumIdReceived(fb->albumId());
return;
}
}
@ -142,6 +143,7 @@ void FacebookManager::facebookAlbumCreated()
if (album.contains("id")) {
auto fb = SettingsObjectWrapper::instance()->facebook;
fb->setAlbumId(album.value("id").toString());
emit albumIdReceived(fb->albumId());
return;
}
}

View file

@ -40,6 +40,7 @@ public:
signals:
void justLoggedIn(bool triggererd);
void justLoggedOut(bool triggered);
void albumIdReceived(const QString& albumId);
public slots:
void tryLogin(const QUrl& loginResponse);