File indexing completed on 2025-03-09 03:54:52

0001 #ifndef TWEETER_H
0002 #define TWEETER_H
0003 
0004 #include <QObject>
0005 #include <QString>
0006 #include <QUrl>
0007 #include <QVariantMap>
0008 
0009 #include "o1twitter.h"
0010 #include "oxtwitter.h"
0011 
0012 class Tweeter : public QObject
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit Tweeter(QObject *parent = 0);
0017 
0018 signals:
0019     void extraTokensReady(const QVariantMap &extraTokens);
0020     void linkingFailed();
0021     void linkingSucceeded();
0022     void statusPosted();
0023 
0024 public slots:
0025     void doOAuth();
0026     void doXAuth(const QString &username, const QString &password);
0027     void postStatusUpdate(const QString &message);
0028 
0029 private slots:
0030     void onLinkedChanged();
0031     void onLinkingSucceeded();
0032     void onOpenBrowser(const QUrl &url);
0033     void onCloseBrowser();
0034     void tweetReplyDone();
0035 
0036 private:
0037     O1Twitter* o1Twitter_;
0038     OXTwitter* oxTwitter_;
0039 };
0040 
0041 #endif // TWEETER_H