blob: 8c474c906973c0cc2257b28e9420efbb2f1270e3 (
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
32
|
#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);
void sendDive(int divenr);
private:
explicit FacebookManager(QObject *parent = 0);
QString albumName;
};
#endif // FACEBOOKMANAGER_H
|