subsurface/qt-ui/socialnetworks.h
Tomaz Canabrava 3d3eac7cc7 Send an experimental file to the experimental album on Facebook
And I had to create the Http header by hand because I couldn't
figure out how to do using HttpMultiPart from Qt.
not fun.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-12-25 10:40:09 -08:00

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