mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Changed Facebook stuff to socialnetworks.h/cpp
All Facebook related stuff now is on SocialNetworks.h/cpp this makes it much easier to implement things and looking for bugs. working: - logging in - getting user id - getting album id ( or creating it ) *much* more testing is needed, of course. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c8c17dc01e
commit
ee5d93e155
11 changed files with 247 additions and 154 deletions
31
qt-ui/socialnetworks.h
Normal file
31
qt-ui/socialnetworks.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
#ifndef FACEBOOKMANAGER_H
|
||||
#define FACEBOOKMANAGER_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QUrl>
|
||||
|
||||
class FacebookManager : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
static FacebookManager *instance();
|
||||
void requestAlbumId();
|
||||
void requestUserId();
|
||||
void sync();
|
||||
QUrl connectUrl();
|
||||
bool loggedIn();
|
||||
signals:
|
||||
void justLoggedIn();
|
||||
void justLoggedOut();
|
||||
|
||||
public slots:
|
||||
void tryLogin(const QUrl& loginResponse);
|
||||
void logout();
|
||||
void setDesiredAlbumName(const QString& albumName);
|
||||
|
||||
private:
|
||||
explicit FacebookManager(QObject *parent = 0);
|
||||
QString albumName;
|
||||
};
|
||||
|
||||
#endif // FACEBOOKMANAGER_H
|
Loading…
Add table
Add a link
Reference in a new issue