/[H9]/trunk/FlisServer/FlisServerDlg.h
ViewVC logotype

Annotation of /trunk/FlisServer/FlisServerDlg.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 113 - (hide annotations) (download)
Sat Dec 1 14:18:33 2007 UTC (16 years, 6 months ago) by kevin
File MIME type: text/plain
File size: 1693 byte(s)
updated flisserver software, going on a break now
1 kevin 70 // FlisServerDlg.h : header file
2     //
3    
4     #pragma once
5     #include "afxwin.h"
6 kevin 81 #include "stdafx.h"
7 kevin 70 #include <vector>
8 kevin 103 #include "Containers.h"
9 kevin 110 #include "Serial.h"
10     #define UWM_MYMESSAGE 0x8100
11 kevin 70
12     // CFlisServerDlg dialog
13     class CFlisServerDlg : public CDialog
14     {
15     // Construction
16     public:
17     CFlisServerDlg(CWnd* pParent = NULL); // standard constructor
18     CSerial Serial;
19 kevin 110 CFlisServerDlg * mainwindow;
20 kevin 70 // Dialog Data
21     enum { IDD = IDD_FLISSERVER_DIALOG };
22    
23     protected:
24     virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
25    
26    
27     // Implementation
28     protected:
29     HICON m_hIcon;
30    
31     // Generated message map functions
32     virtual BOOL OnInitDialog();
33 kevin 110 afx_msg LRESULT OnShowString(WPARAM,LPARAM);
34 kevin 70 afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
35     afx_msg void OnPaint();
36     afx_msg HCURSOR OnQueryDragIcon();
37     DECLARE_MESSAGE_MAP()
38 kevin 103 CDatabase db;
39 kevin 81
40     int StartSerial(void);
41     std::vector<unsigned char> readFrame();
42     void writeFrame(std::vector<unsigned char> data);
43     void SendSmsData(std::vector<unsigned char> data);
44     void SendSmsHead(std::vector<unsigned char> data);
45 kevin 110 void SetPin();
46 kevin 81 void DBConnect();
47 kevin 103 vector<Commands> DBRead(void);
48 kevin 81 void ReadSms();
49     void SmsSplit(CString data);
50     CString Splitter(CString& fyrdata);
51 kevin 110 void DeleteSms();
52     void startthread();
53     virtual void runthread();
54     void Reader();
55 kevin 113 void DBReadData(CString IDnr,CString CommandID,CString InstallationsID);
56     vector<Installation> DBReadPhone(CString sInstallationsID);
57 kevin 110
58 kevin 70 public:
59     CEdit m_Textwindow;
60     afx_msg void OnBnClickedtest();
61 kevin 103 afx_msg void OnBnClickedClose();
62 kevin 105 afx_msg void OnBnClickedGsmpin();
63 kevin 113 int continueThread, ResetSms;
64 kevin 110 friend UINT threadWrapper(LPVOID thread);
65 kevin 70 };

  ViewVC Help
Powered by ViewVC 1.1.20