-
Notifications
You must be signed in to change notification settings - Fork 0
/
acdp.h
60 lines (50 loc) · 1.22 KB
/
acdp.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
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef ACDP_H
#define ACDP_H
#include <QObject>
#include <QHttp>
#include <QDomDocument>
#include <QComboBox>
#include <QLabel>
#include <QCalendarWidget>
#include <QWebView>
#include <QMessageBox>
#include "getcalendartips.h"
class MainWindow;
class ACDP : public QObject
{
Q_OBJECT
QString passwd;
QString user;
QHttp httpLogin;
QHttp httpProjetos;
QHttp httpSend;
QHttp httpWebView;
QHttp httpClear;
QDomDocument dom;
QComboBox *projectBox;
QString nome;
QLabel *nomeLabel;
QCalendarWidget *calendar;
QMessageBox *msgBox;
GetCalendarTips gct;
public:
ACDP(MainWindow *win);
void login(QString user, QString passwd, QLabel *nomeLabel, QComboBox *projectBox,
QCalendarWidget *calendar, QMessageBox *msgBox);
void send(QString project_id,QString horas,QString description);
void webRefresh();
void clearDay();
bool loginFinished;
QString session;
QString id;
void updateCalendar(int month,int year);
private slots:
void loginDone(bool);
void loginHeader(const QHttpResponseHeader&);
void projetosDone(bool);
void sendDone(bool);
void clearDone(bool);
private:
MainWindow *m_win;
};
#endif // ACDP_H