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

Diff of /trunk/FlisServer/FlisServerDlg.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 70 by kevin, Tue Nov 27 15:26:42 2007 UTC revision 113 by kevin, Sat Dec 1 14:18:33 2007 UTC
# Line 3  Line 3 
3    
4  #pragma once  #pragma once
5  #include "afxwin.h"  #include "afxwin.h"
6    #include "stdafx.h"
7  #include <vector>  #include <vector>
8    #include "Containers.h"
9    #include "Serial.h"
10    #define UWM_MYMESSAGE 0x8100
11    
12  // CFlisServerDlg dialog  // CFlisServerDlg dialog
13  class CFlisServerDlg : public CDialog  class CFlisServerDlg : public CDialog
# Line 13  class CFlisServerDlg : public CDialog Line 16  class CFlisServerDlg : public CDialog
16  public:  public:
17          CFlisServerDlg(CWnd* pParent = NULL);   // standard constructor          CFlisServerDlg(CWnd* pParent = NULL);   // standard constructor
18          CSerial Serial;          CSerial Serial;
19          int StartSerial(void);          CFlisServerDlg * mainwindow;
         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();  
   
20  // Dialog Data  // Dialog Data
21          enum { IDD = IDD_FLISSERVER_DIALOG };          enum { IDD = IDD_FLISSERVER_DIALOG };
22    
# Line 34  protected: Line 30  protected:
30    
31          // Generated message map functions          // Generated message map functions
32          virtual BOOL OnInitDialog();          virtual BOOL OnInitDialog();
33            afx_msg LRESULT OnShowString(WPARAM,LPARAM);
34          afx_msg void OnSysCommand(UINT nID, LPARAM lParam);          afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
35          afx_msg void OnPaint();          afx_msg void OnPaint();
36          afx_msg HCURSOR OnQueryDragIcon();          afx_msg HCURSOR OnQueryDragIcon();
37          DECLARE_MESSAGE_MAP()          DECLARE_MESSAGE_MAP()
38            CDatabase db;
39    
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            void SetPin();
46            void DBConnect();
47            vector<Commands> DBRead(void);
48            void ReadSms();
49            void SmsSplit(CString data);
50            CString Splitter(CString& fyrdata);
51            void DeleteSms();
52            void startthread();
53            virtual void runthread();
54            void Reader();
55            void DBReadData(CString IDnr,CString CommandID,CString InstallationsID);
56            vector<Installation> DBReadPhone(CString sInstallationsID);
57    
58  public:  public:
59          CEdit m_Textwindow;          CEdit m_Textwindow;
         afx_msg void OnBnClickedOk();  
         afx_msg void OnBnClickedCancel();  
60          afx_msg void OnBnClickedtest();          afx_msg void OnBnClickedtest();
61            afx_msg void OnBnClickedClose();
62            afx_msg void OnBnClickedGsmpin();
63            int continueThread, ResetSms;
64            friend UINT threadWrapper(LPVOID thread);
65  };  };

Legend:
Removed from v.70  
changed lines
  Added in v.113

  ViewVC Help
Powered by ViewVC 1.1.20