File indexing completed on 2025-01-19 03:55:40

0001 #ifndef OXTWITTER_H
0002 #define OXTWITTER_H
0003 
0004 #include "o0export.h"
0005 #include "o1twitter.h"
0006 
0007 /// Twitter authenticator using Twitter XAuth
0008 class O0_EXPORT OXTwitter: public O1Twitter {
0009     Q_OBJECT
0010 
0011 public:
0012     explicit OXTwitter(QObject *parent = 0);
0013 
0014     /// XAuth Username
0015     Q_PROPERTY(QString username READ username WRITE setUsername NOTIFY usernameChanged)
0016     QString username();
0017     void setUsername(const QString &username);
0018 
0019     /// XAuth Password
0020     Q_PROPERTY(QString password READ password WRITE setPassword NOTIFY passwordChanged)
0021     QString password();
0022     void setPassword(const QString &password);
0023 
0024 public Q_SLOTS:
0025     /// Authenticate.
0026     Q_INVOKABLE virtual void link();
0027 
0028 Q_SIGNALS:
0029     void usernameChanged();
0030     void passwordChanged();
0031 
0032 private:
0033     QList<O0RequestParameter> xAuthParams_;
0034     QString username_;
0035     QString password_;
0036 };
0037 
0038 #endif // OXTWITTER_H