diff --git a/3rdparty/o2/examples/facebookdemo/fbdemo.h b/3rdparty/o2/examples/facebookdemo/fbdemo.h new file mode 100644 index 0000000000000000000000000000000000000000..054e0060cb8b3ed245254ec125e9db44cc2141a1 --- /dev/null +++ b/3rdparty/o2/examples/facebookdemo/fbdemo.h @@ -0,0 +1,35 @@ +#ifndef FBDEMO_H +#define FBDEMO_H + +#include + +#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