forked from pipacs/o2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoxtwitter.h
37 lines (28 loc) · 850 Bytes
/
oxtwitter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef OXTWITTER_H
#define OXTWITTER_H
#include "o1twitter.h"
/// Twitter authenticator using Twitter XAuth
class OXTwitter: public O1Twitter {
Q_OBJECT
public:
explicit OXTwitter(QObject *parent = 0);
/// XAuth Username
Q_PROPERTY(QString username READ username WRITE setUsername NOTIFY usernameChanged)
QString username();
void setUsername(const QString &username);
/// XAuth Password
Q_PROPERTY(QString password READ password WRITE setPassword NOTIFY passwordChanged)
QString password();
void setPassword(const QString &password);
public Q_SLOTS:
/// Authenticate.
Q_INVOKABLE virtual void link();
Q_SIGNALS:
void usernameChanged();
void passwordChanged();
private:
QList<O0RequestParameter> xAuthParams_;
QString username_;
QString password_;
};
#endif // OXTWITTER_H