-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathyw_serverinterface.h
More file actions
53 lines (37 loc) · 962 Bytes
/
yw_serverinterface.h
File metadata and controls
53 lines (37 loc) · 962 Bytes
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
#ifndef YW_SERVERINTERFACE_H
#define YW_SERVERINTERFACE_H
#include <Wt/WString>
class ywApplication;
using namespace Wt;
class ywServerInterface
{
public:
enum {
STATUS_UKNOWN =0,
STATUS_DOWN =1,
STATUS_IDLE =2,
STATUS_PROCESSING =3,
STATUS_PROCESSINGDOWN=4
};
ywServerInterface();
void setAppInstance(ywApplication* myApp);
WString getServerLogFilename();
WString getTaskLogFilename();
bool updateStatus();
static bool isServerRunning(WString yarraPath);
bool startServer();
bool stopServer();
bool killServer();
bool restartWebGUI();
int serverStatus;
WString serverReply;
WString serverStatusText;
WString serverTaskLog;
WString serverTaskID;
bool serverRunning;
ywApplication* app;
WString initStartCmd;
WString initStopCmd;
WString initRestartCmd;
};
#endif // YW_SERVERINTERFACE_H