1 |
kevin |
133 |
#pragma once
|
2 |
|
|
|
3 |
|
|
#include <vector>
|
4 |
|
|
using namespace std;
|
5 |
|
|
|
6 |
|
|
class Commands
|
7 |
|
|
{
|
8 |
|
|
public:
|
9 |
|
|
CString IDnr,CommandID, InstallationsID;
|
10 |
|
|
|
11 |
|
|
};
|
12 |
|
|
class Installation
|
13 |
|
|
{
|
14 |
|
|
public:
|
15 |
kevin |
144 |
CString InstPhoneNr, Imei, Updaterate, instID;
|
16 |
kevin |
133 |
|
17 |
kevin |
136 |
};
|
18 |
|
|
|
19 |
|
|
class ConfigFile
|
20 |
|
|
{
|
21 |
|
|
public:
|
22 |
|
|
|
23 |
|
|
void ReadSettings();
|
24 |
|
|
|
25 |
kevin |
176 |
CString host, username, password, database, comport, pincode;
|
26 |
kevin |
144 |
};
|
27 |
|
|
class Acknowledge
|
28 |
|
|
{
|
29 |
|
|
public:
|
30 |
|
|
Acknowledge(CString instid, CString tlf)
|
31 |
|
|
{
|
32 |
|
|
sInstallationID = instid;
|
33 |
|
|
sTlfNr = tlf;
|
34 |
|
|
cTime = CTime::GetCurrentTime();
|
35 |
|
|
iRetry = 0;
|
36 |
|
|
}
|
37 |
|
|
|
38 |
|
|
CString sInstallationID, sTlfNr;
|
39 |
|
|
CTime cTime;
|
40 |
|
|
int iRetry;
|
41 |
|
|
};
|
42 |
|
|
class keepalive
|
43 |
|
|
{
|
44 |
|
|
public:
|
45 |
|
|
CString name, value, Phonenr;
|
46 |
|
|
CTime tid;
|
47 |
kevin |
133 |
}; |