Make Facebook more user friendly

The current way that facebook works is terrible: it's scattered
around tons of files ( at least 4 different files and classes )
this moves things around a bit, add a disconnect button that
was missing, cleans tons of code and fix inconsistencies.

I will also redo this part for 5.0, but it's too late for 4.5

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2015-09-16 16:43:01 -03:00 committed by Dirk Hohndel
parent e945134cc4
commit d59e89e569
8 changed files with 110 additions and 390 deletions

View file

@ -94,7 +94,7 @@ void FacebookManager::tryLogin(const QUrl& loginResponse)
#endif
requestUserId();
sync();
emit justLoggedIn();
emit justLoggedIn(true);
}
void FacebookManager::logout()
@ -115,7 +115,7 @@ void FacebookManager::logout()
prefs.facebook.album_id = NULL;
prefs.facebook.user_id = NULL;
#endif
emit justLoggedOut();
emit justLoggedOut(true);
}
void FacebookManager::requestAlbumId()