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

Annotation of /trunk/FlisServer/FlisServerDlg.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (hide annotations) (download)
Tue Dec 4 13:26:00 2007 UTC (16 years, 6 months ago) by kevin
File MIME type: text/plain
File size: 1929 byte(s)
updated diary for kevin, and modified the server software to match the kravspec.
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 144 #include <list>
9 kevin 103 #include "Containers.h"
10 kevin 110 #include "Serial.h"
11 kevin 136 #include <iostream>
12     #include <fstream>
13 kevin 70
14     // CFlisServerDlg dialog
15     class CFlisServerDlg : public CDialog
16     {
17     // Construction
18     public:
19     CFlisServerDlg(CWnd* pParent = NULL); // standard constructor
20     CSerial Serial;
21 kevin 144 keepalive Alive;
22 kevin 110 CFlisServerDlg * mainwindow;
23 kevin 144 std::list<Acknowledge> Acks;
24 kevin 70 // Dialog Data
25     enum { IDD = IDD_FLISSERVER_DIALOG };
26    
27     protected:
28     virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
29    
30    
31     // Implementation
32     protected:
33     HICON m_hIcon;
34    
35     // Generated message map functions
36     virtual BOOL OnInitDialog();
37     afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
38     afx_msg void OnPaint();
39     afx_msg HCURSOR OnQueryDragIcon();
40     DECLARE_MESSAGE_MAP()
41 kevin 103 CDatabase db;
42 kevin 81
43     int StartSerial(void);
44     std::vector<unsigned char> readFrame();
45     void writeFrame(std::vector<unsigned char> data);
46     void SendSmsData(std::vector<unsigned char> data);
47 kevin 136 void SendSmsHead(std::vector<unsigned char> tlfnr);
48 kevin 110 void SetPin();
49 kevin 81 void DBConnect();
50 kevin 136 vector<Commands> DBReadCommands(void);
51 kevin 81 void ReadSms();
52     void SmsSplit(CString data);
53     CString Splitter(CString& fyrdata);
54 kevin 110 void DeleteSms();
55     void startthread();
56     virtual void runthread();
57     void Reader();
58 kevin 136 void SendConfig(CString IDnr,CString CommandID,CString InstallationsID);
59 kevin 113 vector<Installation> DBReadPhone(CString sInstallationsID);
60 kevin 130 int tversum(__int64 input);
61 kevin 136 void AppendText(CString s);
62 kevin 144 vector<keepalive> keepaliveandread(void);
63 kevin 110
64 kevin 70 public:
65     CEdit m_Textwindow;
66 kevin 103 afx_msg void OnBnClickedClose();
67 kevin 105 afx_msg void OnBnClickedGsmpin();
68 kevin 113 int continueThread, ResetSms;
69 kevin 110 friend UINT threadWrapper(LPVOID thread);
70 kevin 121 afx_msg void OnBnClickedStart();
71 kevin 144 void HandleAcknowledge(CString tlfnr);
72     void CheckAcknowledges();
73     void DumpAckList();
74 kevin 70 };

  ViewVC Help
Powered by ViewVC 1.1.20