5 |
#include "afxwin.h" |
#include "afxwin.h" |
6 |
#include "stdafx.h" |
#include "stdafx.h" |
7 |
#include <vector> |
#include <vector> |
8 |
|
#include <list> |
9 |
#include "Containers.h" |
#include "Containers.h" |
10 |
|
#include "Serial.h" |
11 |
|
#include <iostream> |
12 |
|
#include <fstream> |
13 |
|
|
14 |
// CFlisServerDlg dialog |
// CFlisServerDlg dialog |
15 |
class CFlisServerDlg : public CDialog |
class CFlisServerDlg : public CDialog |
18 |
public: |
public: |
19 |
CFlisServerDlg(CWnd* pParent = NULL); // standard constructor |
CFlisServerDlg(CWnd* pParent = NULL); // standard constructor |
20 |
CSerial Serial; |
CSerial Serial; |
21 |
|
keepalive Alive; |
22 |
|
CFlisServerDlg * mainwindow; |
23 |
|
std::list<Acknowledge> Acks; |
24 |
// Dialog Data |
// Dialog Data |
25 |
enum { IDD = IDD_FLISSERVER_DIALOG }; |
enum { IDD = IDD_FLISSERVER_DIALOG }; |
26 |
|
|
44 |
std::vector<unsigned char> readFrame(); |
std::vector<unsigned char> readFrame(); |
45 |
void writeFrame(std::vector<unsigned char> data); |
void writeFrame(std::vector<unsigned char> data); |
46 |
void SendSmsData(std::vector<unsigned char> data); |
void SendSmsData(std::vector<unsigned char> data); |
47 |
void SendSmsHead(std::vector<unsigned char> data); |
void SendSmsHead(std::vector<unsigned char> tlfnr); |
48 |
int SetPin(void); |
void SetPin(); |
49 |
void DBConnect(); |
void DBConnect(); |
50 |
vector<Commands> DBRead(void); |
vector<Commands> DBReadCommands(void); |
51 |
void ReadSms(); |
void ReadSms(); |
52 |
void SmsSplit(CString data); |
void SmsSplit(CString data); |
53 |
CString Splitter(CString& fyrdata); |
CString Splitter(CString& fyrdata); |
54 |
|
void DeleteSms(); |
55 |
|
void startthread(); |
56 |
|
virtual void runthread(); |
57 |
|
void MyMainThread(); |
58 |
|
void SendConfig(CString IDnr,CString CommandID,CString InstallationsID); |
59 |
|
vector<Installation> DBReadPhone(CString sInstallationsID); |
60 |
|
int tversum(__int64 input); |
61 |
|
void AppendText(CString s); |
62 |
|
vector<keepalive> keepaliveandread(void); |
63 |
|
|
64 |
public: |
public: |
65 |
CEdit m_Textwindow; |
CEdit m_Textwindow; |
|
afx_msg void OnBnClickedtest(); |
|
66 |
afx_msg void OnBnClickedClose(); |
afx_msg void OnBnClickedClose(); |
67 |
|
afx_msg void OnBnClickedGsmpin(); |
68 |
|
int continueThread, ResetSms; |
69 |
|
friend UINT threadWrapper(LPVOID thread); |
70 |
|
afx_msg void OnBnClickedStart(); |
71 |
|
void HandleAcknowledge(CString tlfnr); |
72 |
|
void CheckAcknowledges(); |
73 |
|
void DumpAckList(); |
74 |
}; |
}; |