/[H7]/trunk/H7 Server/H7 ServerDlg.h
ViewVC logotype

Contents of /trunk/H7 Server/H7 ServerDlg.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 39 - (show annotations) (download)
Thu Feb 1 13:49:01 2007 UTC (17 years, 3 months ago) by hedin
File MIME type: text/plain
File size: 1551 byte(s)
Found a "feature" more, about the COM port...
Made some comments in the code
1 // H7 ServerDlg.h : header file
2 //
3
4 #pragma once
5 #include "afxwin.h"
6 #include "TcpServerClass.h"
7 #include "H7Serial.h"
8
9 //forward declaration
10 class TcpClientClass;
11
12 #include <vector>
13
14 // Fortæller at der er en funktion, et eller andet sted, der hedder GetAvailableComPorts().
15 std::vector<CString> GetAvailableComPorts();
16
17 // CH7ServerDlg dialog
18 class CH7ServerDlg : public CDialog
19 {
20 // Construction
21 public:
22 CH7ServerDlg(CWnd* pParent = NULL); // standard constructor
23
24 // Dialog Data
25 enum { IDD = IDD_H7SERVER_DIALOG };
26
27 protected:
28 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
29
30
31
32 // Implementation
33 protected:
34 HICON m_hIcon;
35 TcpServerClass TcpServer;
36
37 // Generated message map functions
38 virtual BOOL OnInitDialog();
39 afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
40 afx_msg void OnPaint();
41 afx_msg HCURSOR OnQueryDragIcon();
42 DECLARE_MESSAGE_MAP()
43 public:
44 bool m_First;
45 CEdit m_Status;
46 CComboBox m_BaudRate;
47 CComboBox m_Serial;
48 CButton m_Stop;
49 CEdit m_Port;
50 int m_Start;
51 CH7Serial H7Serial;
52 CButton m_Restart;
53 int StartTcp(void);
54 bool ServerInit(void);
55 int StartSerial(void);
56 void NewLine(void);
57 CString OnOff(int value);
58 void UpdateStatus(CString name, short value);
59 void UpdateClient(TcpClientClass *caller);
60 afx_msg void OnBnClickedStart();
61 afx_msg void OnBnClickedTest();
62 afx_msg void OnBnClickedRestart();
63 afx_msg void OnBnClickedStop();
64 void TcpStatus(void);
65 CButton m_StartB;
66 protected:
67 virtual void OnCancel();
68
69 };

  ViewVC Help
Powered by ViewVC 1.1.20