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

Contents of /trunk/FlisServer/FlisServerDlg.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (show annotations) (download)
Tue Dec 4 13:26:00 2007 UTC (16 years, 5 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 // FlisServerDlg.h : header file
2 //
3
4 #pragma once
5 #include "afxwin.h"
6 #include "stdafx.h"
7 #include <vector>
8 #include <list>
9 #include "Containers.h"
10 #include "Serial.h"
11 #include <iostream>
12 #include <fstream>
13
14 // CFlisServerDlg dialog
15 class CFlisServerDlg : public CDialog
16 {
17 // Construction
18 public:
19 CFlisServerDlg(CWnd* pParent = NULL); // standard constructor
20 CSerial Serial;
21 keepalive Alive;
22 CFlisServerDlg * mainwindow;
23 std::list<Acknowledge> Acks;
24 // 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 CDatabase db;
42
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 void SendSmsHead(std::vector<unsigned char> tlfnr);
48 void SetPin();
49 void DBConnect();
50 vector<Commands> DBReadCommands(void);
51 void ReadSms();
52 void SmsSplit(CString data);
53 CString Splitter(CString& fyrdata);
54 void DeleteSms();
55 void startthread();
56 virtual void runthread();
57 void Reader();
58 void SendConfig(CString IDnr,CString CommandID,CString InstallationsID);
59 vector<Installation> DBReadPhone(CString sInstallationsID);
60 int tversum(__int64 input);
61 void AppendText(CString s);
62 vector<keepalive> keepaliveandread(void);
63
64 public:
65 CEdit m_Textwindow;
66 afx_msg void OnBnClickedClose();
67 afx_msg void OnBnClickedGsmpin();
68 int continueThread, ResetSms;
69 friend UINT threadWrapper(LPVOID thread);
70 afx_msg void OnBnClickedStart();
71 void HandleAcknowledge(CString tlfnr);
72 void CheckAcknowledges();
73 void DumpAckList();
74 };

  ViewVC Help
Powered by ViewVC 1.1.20