forked from mss/securepoint-openvpn-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
treebutton.h
48 lines (38 loc) · 983 Bytes
/
treebutton.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
#ifndef TREEBUTTON_H
#define TREEBUTTON_H
#include <QtGui>
#include <QtCore>
#include <QDate>
#include <QTime>
#include <QObject>
#include <QTimer>
#include "treeconitem.h"
#include "configs.h"
class TreeButton : public QPushButton
{
Q_OBJECT
public:
TreeButton();
void setParentItem (QTreeWidgetItem *item);
QTreeWidgetItem *getParentItem ();
TreeConItem *getParentItemCast ();
void setReadyToConnect ();
void setConnecting ();
void setConnected (QString ip);
void setError (QString error);
int getState () const;
private:
QTreeWidgetItem *parentItem;
QTimer timer;
int state;
public slots:
void receivedError (QString errMessage);
void receivedConnctionIsStable (QString ip);
void receivedDisconnect ();
void receivedConnecting ();
private slots:
void doReconnect ();
void refreshConnectedSince ();
void clickMe ();
};
#endif // TREEBUTTON_H