-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.h
47 lines (38 loc) · 995 Bytes
/
blog.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
38
39
40
41
42
43
44
45
46
47
#ifndef BLOG_H
#define BLOG_H
#include <QObject>
#include <QString>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <QByteArray>
#include <QtDebug>
#include <QtScript/QScriptEngine>
#include <QtScriptTools/QtScriptTools>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <signon-plugins/oauth1data.h>
#include <SignOn/Identity>
#include <SignOn/AuthSession>
#include <SignOn/AuthPluginInterface>
#include <SignOn/SessionData>
#include <SignOn/Error>
class Blog : public QObject
{
Q_OBJECT
public:
Blog(QObject *parent = 0);
Q_INVOKABLE void blog_request(QString period);
signals:
void blogresult(QString data);
public slots:
void parser(QNetworkReply *reply);
void onResponse(const SignOn::SessionData &sessionData);
void onError(const SignOn::Error &error);
private:
QNetworkAccessManager *nam;
SignOn::Identity *m_identity;
SignOn::AuthSession *m_session;
};
#endif // BLOG_H