mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
ed903c42b9
This way we are sure that the upload was made in the correct folder. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
32 lines
593 B
C++
32 lines
593 B
C++
#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();
|
|
|
|
private:
|
|
explicit FacebookManager(QObject *parent = 0);
|
|
QString albumName;
|
|
};
|
|
|
|
#endif // FACEBOOKMANAGER_H
|