-
Notifications
You must be signed in to change notification settings - Fork 22
/
webservice.h
88 lines (76 loc) · 1.93 KB
/
webservice.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
//***************************************************************************
// Web Service
// File webservice.h
// This code is distributed under the terms and conditions of the
// GNU GENERAL PUBLIC LICENSE. See the file LICENSE for details.
// Date 28.12.2021 - Jörg Wendel
//***************************************************************************
#pragma once
//***************************************************************************
// Class Web Service
//***************************************************************************
class cWebService
{
public:
enum Event
{
evUnknown,
evLogin,
evLogout,
evPageChange,
evData,
evInit,
evToggleIo,
evToggleIoNext,
evToggleMode,
evStoreConfig,
evGetToken,
evSetup,
evStoreIoSetup,
evChartData,
evLogMessage,
evUserDetails,
evStoreUserConfig,
evChangePasswd,
evCommand,
evGroups,
evGroupConfig,
evChartbookmarks,
evStoreChartbookmarks,
evSyslog,
evSystem,
evForceRefresh,
evStoreDashboards,
evAlerts,
evStoreAlerts,
evImageConfig,
evSchema,
evStoreSchema,
evStoreCalibration,
evLmcAction,
evErrors,
evMenu,
evParEditRequest,
evParStore,
evPellets,
evPelletsAdd,
evCount
};
enum ClientType
{
ctWithLogin = 0,
ctActive
};
enum UserRights
{
urNone = 0x00,
urView = 0x01,
urControl = 0x02,
urFullControl = 0x04,
urSettings = 0x08,
urAdmin = 0x10
};
static const char* toName(Event event);
static Event toEvent(const char* name);
static const char* events[];
};