blob: ed7804afa8a42d4cc0ccbdde771a5695c8f3bb8c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
|