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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 39 - (hide annotations) (download)
Thu Feb 1 13:49:01 2007 UTC (17 years, 4 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 hedin 3 // H7 ServerDlg.h : header file
2     //
3    
4     #pragma once
5     #include "afxwin.h"
6     #include "TcpServerClass.h"
7 hedin 28 #include "H7Serial.h"
8 hedin 3
9 hedin 35 //forward declaration
10     class TcpClientClass;
11    
12 hedin 33 #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 hedin 3 // 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 hedin 28
31 hedin 3
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 hedin 33 bool m_First;
45 hedin 3 CEdit m_Status;
46     CComboBox m_BaudRate;
47     CComboBox m_Serial;
48     CButton m_Stop;
49     CEdit m_Port;
50     int m_Start;
51 hedin 28 CH7Serial H7Serial;
52 hedin 3 CButton m_Restart;
53 hedin 6 int StartTcp(void);
54 hedin 18 bool ServerInit(void);
55     int StartSerial(void);
56 hedin 28 void NewLine(void);
57     CString OnOff(int value);
58     void UpdateStatus(CString name, short value);
59 hedin 35 void UpdateClient(TcpClientClass *caller);
60 hedin 39 afx_msg void OnBnClickedStart();
61     afx_msg void OnBnClickedTest();
62     afx_msg void OnBnClickedRestart();
63 hedin 33 afx_msg void OnBnClickedStop();
64     void TcpStatus(void);
65 hedin 36 CButton m_StartB;
66     protected:
67     virtual void OnCancel();
68    
69 hedin 3 };

  ViewVC Help
Powered by ViewVC 1.1.20