forked from Securepoint/openvpn-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tapdriver.h
41 lines (32 loc) · 777 Bytes
/
tapdriver.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
#ifndef TAPDRIVER_H
#define TAPDRIVER_H
#include <QtGui>
#include "check64.h"
class TapDriver: public QObject
{
Q_OBJECT
public:
static TapDriver *instance ();
bool isTapDriverInstalled ();
bool installTapDriver ();
bool removeTapDriver ();
int deviceCount ();
private:
static TapDriver *mInst;
TapDriver();
QProcess drvProc;
QProcess drvCountProc;
QProcess drvInstallProc;
QProcess drvRemoveProc;
void checkTapDriver ();
bool tapDriverAvailable;
bool tapDriverInstalledSuccess;
bool tapDriverRemovedSuccess;
int tapCount;
bool wait;
QString getTapPath ();
private slots:
void readDriverData ();
void readTapCount ();
};
#endif // TAPDRIVER_H