/[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 71 - (show annotations) (download)
Mon Feb 12 09:59:36 2007 UTC (17 years, 3 months ago) by hedin
File MIME type: text/plain
File size: 1535 byte(s)
Made some cleanup and added a few comments.
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 CEdit m_Status;
45 CComboBox m_BaudRate;
46 CComboBox m_Serial;
47 CButton m_Stop;
48 CEdit m_Port;
49 int m_Start;
50 CH7Serial H7Serial;
51 CButton m_Restart;
52 int StartTcp(void);
53 bool ServerInit(void);
54 int StartSerial(void);
55 void NewLine(void);
56 CString OnOff(int value);
57 void UpdateStatus(CString name, short value);
58 void UpdateClient(TcpClientClass *caller);
59 afx_msg void OnBnClickedStart();
60 afx_msg void OnBnClickedTest();
61 afx_msg void OnBnClickedRestart();
62 afx_msg void OnBnClickedStop();
63 void TcpStatus(void);
64 CButton m_StartB;
65 protected:
66 virtual void OnCancel();
67
68 };

  ViewVC Help
Powered by ViewVC 1.1.20