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

Annotation of /trunk/FlisServer/FlisServerDlg.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 136 - (hide annotations) (download)
Mon Dec 3 14:13:20 2007 UTC (16 years, 6 months ago) by kevin
File MIME type: text/plain
File size: 1727 byte(s)
added Server-Settings.ini and cleaned up the server software code
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 kevin 136 #include <iostream>
11     #include <fstream>
12 kevin 70
13     // CFlisServerDlg dialog
14     class CFlisServerDlg : public CDialog
15     {
16     // Construction
17     public:
18     CFlisServerDlg(CWnd* pParent = NULL); // standard constructor
19     CSerial Serial;
20 kevin 110 CFlisServerDlg * mainwindow;
21 kevin 70 // Dialog Data
22     enum { IDD = IDD_FLISSERVER_DIALOG };
23    
24     protected:
25     virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
26    
27    
28     // Implementation
29     protected:
30     HICON m_hIcon;
31    
32     // Generated message map functions
33     virtual BOOL OnInitDialog();
34     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 kevin 136 void SendSmsHead(std::vector<unsigned char> tlfnr);
45 kevin 110 void SetPin();
46 kevin 81 void DBConnect();
47 kevin 136 vector<Commands> DBReadCommands(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 136 void SendConfig(CString IDnr,CString CommandID,CString InstallationsID);
56 kevin 113 vector<Installation> DBReadPhone(CString sInstallationsID);
57 kevin 130 int tversum(__int64 input);
58 kevin 136 void AppendText(CString s);
59 kevin 110
60 kevin 70 public:
61     CEdit m_Textwindow;
62 kevin 103 afx_msg void OnBnClickedClose();
63 kevin 105 afx_msg void OnBnClickedGsmpin();
64 kevin 113 int continueThread, ResetSms;
65 kevin 110 friend UINT threadWrapper(LPVOID thread);
66 kevin 121 afx_msg void OnBnClickedStart();
67 kevin 70 };

  ViewVC Help
Powered by ViewVC 1.1.20