File indexing completed on 2025-01-19 03:55:36
0001 #ifndef FBDEMO_H 0002 #define FBDEMO_H 0003 0004 #include <QObject> 0005 0006 #include "o2facebook.h" 0007 0008 class FBDemo : public QObject 0009 { 0010 Q_OBJECT 0011 0012 public: 0013 explicit FBDemo(QObject *parent = 0); 0014 0015 signals: 0016 void extraTokensReady(const QVariantMap &extraTokens); 0017 void linkingFailed(); 0018 void linkingSucceeded(); 0019 0020 public slots: 0021 void doOAuth(O2::GrantFlow grantFlowType); 0022 void validateToken(); 0023 0024 private slots: 0025 void onLinkedChanged(); 0026 void onLinkingSucceeded(); 0027 void onOpenBrowser(const QUrl &url); 0028 void onCloseBrowser(); 0029 void onFinished(); 0030 0031 private: 0032 O2Facebook *o2Facebook_; 0033 }; 0034 0035 #endif // FBDEMO_H