Newer
Older
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
#ifndef DAPSERVICECLIENTNATIVEABSTRACT_H
#define DAPSERVICECLIENTNATIVEABSTRACT_H
#include <QTimer>
#include <QDebug>
enum class DapServiceError {
NO_ERRORS,
USER_COMMAND_ABORT,
UNABLE_START_SERVICE,
UNABLE_STOP_SERVICE,
SERVICE_NOT_FOUND,
UNKNOWN_ERROR
};
class DapServiceClientNativeAbstract
{
public:
DapServiceClientNativeAbstract();
virtual ~DapServiceClientNativeAbstract() { }
virtual bool isServiceRunning() = 0;
virtual DapServiceError serviceInstallAndRun() = 0;
virtual DapServiceError serviceStart() = 0;
virtual DapServiceError serviceStop() = 0;
virtual DapServiceError serviceRestart() = 0;
public slots:
virtual DapServiceError init();
protected:
bool m_isServiceRunning;
protected slots:
virtual void onServiceInstalled();
virtual void onServiceStarted();
virtual void onServiceStopped();
};
#endif // DAPSERVICECLIENTNATIVEABSTRACT_H