mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
36 lines
616 B
C++
36 lines
616 B
C++
#ifndef FBDEMO_H
|
|
#define FBDEMO_H
|
|
|
|
#include <QObject>
|
|
|
|
#include "o2facebook.h"
|
|
|
|
class FBDemo : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit FBDemo(QObject *parent = 0);
|
|
|
|
signals:
|
|
void extraTokensReady(const QVariantMap &extraTokens);
|
|
void linkingFailed();
|
|
void linkingSucceeded();
|
|
|
|
public slots:
|
|
void doOAuth(O2::GrantFlow grantFlowType);
|
|
void validateToken();
|
|
|
|
private slots:
|
|
void onLinkedChanged();
|
|
void onLinkingSucceeded();
|
|
void onOpenBrowser(const QUrl &url);
|
|
void onCloseBrowser();
|
|
void onFinished();
|
|
|
|
private:
|
|
O2Facebook *o2Facebook_;
|
|
};
|
|
|
|
#endif // FBDEMO_H
|