1 |
// FlisServerDlg.h : header file
|
2 |
//
|
3 |
|
4 |
#pragma once
|
5 |
#include "afxwin.h"
|
6 |
#include "stdafx.h"
|
7 |
#include <vector>
|
8 |
#include "Containers.h"
|
9 |
|
10 |
|
11 |
// CFlisServerDlg dialog
|
12 |
class CFlisServerDlg : public CDialog
|
13 |
{
|
14 |
// Construction
|
15 |
public:
|
16 |
CFlisServerDlg(CWnd* pParent = NULL); // standard constructor
|
17 |
CSerial Serial;
|
18 |
|
19 |
// Dialog Data
|
20 |
enum { IDD = IDD_FLISSERVER_DIALOG };
|
21 |
|
22 |
protected:
|
23 |
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
24 |
|
25 |
|
26 |
// Implementation
|
27 |
protected:
|
28 |
HICON m_hIcon;
|
29 |
|
30 |
// Generated message map functions
|
31 |
virtual BOOL OnInitDialog();
|
32 |
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
|
33 |
afx_msg void OnPaint();
|
34 |
afx_msg HCURSOR OnQueryDragIcon();
|
35 |
DECLARE_MESSAGE_MAP()
|
36 |
CDatabase db;
|
37 |
|
38 |
int StartSerial(void);
|
39 |
std::vector<unsigned char> readFrame();
|
40 |
void writeFrame(std::vector<unsigned char> data);
|
41 |
void SendSmsData(std::vector<unsigned char> data);
|
42 |
void SendSmsHead(std::vector<unsigned char> data);
|
43 |
int SetPin(void);
|
44 |
void DBConnect();
|
45 |
vector<Commands> DBRead(void);
|
46 |
void ReadSms();
|
47 |
void SmsSplit(CString data);
|
48 |
CString Splitter(CString& fyrdata);
|
49 |
|
50 |
public:
|
51 |
CEdit m_Textwindow;
|
52 |
afx_msg void OnBnClickedtest();
|
53 |
afx_msg void OnBnClickedClose();
|
54 |
};
|