forked from mss/securepoint-openvpn-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
servicecontroller.h
46 lines (36 loc) · 872 Bytes
/
servicecontroller.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
#ifndef SERVICECONTROLLER_H
#define SERVICECONTROLLER_H
#include "preferences.h"
#include <QtGui>
#include <QTimer>
#include <QSystemTrayIcon>
#ifdef Q_OS_WIN32
#include "C:\Qt\2009.04\mingw\include\windows.h"
#include "C:\Qt\2009.04\mingw\include\winsock2.h"
#endif
class ServiceController : public QDialog
{
Q_OBJECT
public:
ServiceController(QWidget *parent = 0);
virtual ~ServiceController (){}
void stopService ();
void startService ();
void restartService ();
bool isServiceRunning ();
private slots:
void shotStart ();
public slots:
void checkService ();
private:
// Enum für die Icons
enum Icons {
Inaktiv,
Connected,
Error,
Connecting
};
bool serviceRunning;
QTimer *servTimer;
};
#endif // SERVICECONTROLLER_H