diff --git a/3rdparty/o2/examples/twitterdemo/tweeter.h b/3rdparty/o2/examples/twitterdemo/tweeter.h new file mode 100644 index 0000000000000000000000000000000000000000..6108725bc1baf238ced5ec80526334a4a39af612 --- /dev/null +++ b/3rdparty/o2/examples/twitterdemo/tweeter.h @@ -0,0 +1,41 @@ +#ifndef TWEETER_H +#define TWEETER_H + +#include +#include +#include +#include + +#include "o1twitter.h" +#include "oxtwitter.h" + +class Tweeter : public QObject +{ + Q_OBJECT +public: + explicit Tweeter(QObject *parent = 0); + +signals: + void extraTokensReady(const QVariantMap &extraTokens); + void linkingFailed(); + void linkingSucceeded(); + void statusPosted(); + +public slots: + void doOAuth(); + void doXAuth(const QString &username, const QString &password); + void postStatusUpdate(const QString &message); + +private slots: + void onLinkedChanged(); + void onLinkingSucceeded(); + void onOpenBrowser(const QUrl &url); + void onCloseBrowser(); + void tweetReplyDone(); + +private: + O1Twitter* o1Twitter_; + OXTwitter* oxTwitter_; +}; + +#endif // TWEETER_H