3 |
|
|
4 |
#pragma once |
#pragma once |
5 |
#include "afxwin.h" |
#include "afxwin.h" |
6 |
|
#include "stdafx.h" |
7 |
#include <vector> |
#include <vector> |
8 |
|
|
9 |
|
|
14 |
public: |
public: |
15 |
CFlisServerDlg(CWnd* pParent = NULL); // standard constructor |
CFlisServerDlg(CWnd* pParent = NULL); // standard constructor |
16 |
CSerial Serial; |
CSerial Serial; |
17 |
int StartSerial(void); |
|
|
std::vector<unsigned char> readFrame(); |
|
|
void writeFrame(std::vector<unsigned char> data); |
|
|
void SendSmsData(std::vector<unsigned char> data); |
|
|
void SendSmsHead(std::vector<unsigned char> data); |
|
|
int SetPin(void); |
|
|
void DBconnect(); |
|
18 |
|
|
19 |
// Dialog Data |
// Dialog Data |
20 |
enum { IDD = IDD_FLISSERVER_DIALOG }; |
enum { IDD = IDD_FLISSERVER_DIALOG }; |
33 |
afx_msg void OnPaint(); |
afx_msg void OnPaint(); |
34 |
afx_msg HCURSOR OnQueryDragIcon(); |
afx_msg HCURSOR OnQueryDragIcon(); |
35 |
DECLARE_MESSAGE_MAP() |
DECLARE_MESSAGE_MAP() |
36 |
|
CDatabase* db; |
37 |
|
CDatabase db2; |
38 |
|
|
39 |
|
int StartSerial(void); |
40 |
|
std::vector<unsigned char> readFrame(); |
41 |
|
void writeFrame(std::vector<unsigned char> data); |
42 |
|
void SendSmsData(std::vector<unsigned char> data); |
43 |
|
void SendSmsHead(std::vector<unsigned char> data); |
44 |
|
int SetPin(void); |
45 |
|
void DBConnect(); |
46 |
|
void DBRead(); |
47 |
|
void ReadSms(); |
48 |
|
void SmsSplit(CString data); |
49 |
|
CString Splitter(CString& fyrdata); |
50 |
|
|
51 |
public: |
public: |
52 |
CEdit m_Textwindow; |
CEdit m_Textwindow; |
53 |
afx_msg void OnBnClickedOk(); |
afx_msg void OnBnClickedOk(); |