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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6 by hedin, Mon Jan 29 13:01:26 2007 UTC revision 33 by hedin, Wed Jan 31 17:22:59 2007 UTC
# Line 4  Line 4 
4  #pragma once  #pragma once
5  #include "afxwin.h"  #include "afxwin.h"
6  #include "TcpServerClass.h"  #include "TcpServerClass.h"
7  #include "TcpClientClass.h"  #include "H7Serial.h"
8    
9    #include <vector>
10    
11    // Fortæller at der er en funktion, et eller andet sted, der hedder GetAvailableComPorts().
12    std::vector<CString> GetAvailableComPorts();
13    
14  // CH7ServerDlg dialog  // CH7ServerDlg dialog
15  class CH7ServerDlg : public CDialog  class CH7ServerDlg : public CDialog
# Line 20  public: Line 24  public:
24          protected:          protected:
25          virtual void DoDataExchange(CDataExchange* pDX);        // DDX/DDV support          virtual void DoDataExchange(CDataExchange* pDX);        // DDX/DDV support
26    
27            
28    
29  // Implementation  // Implementation
30  protected:  protected:
31          HICON m_hIcon;          HICON m_hIcon;
32          TcpServerClass TcpServer;          TcpServerClass TcpServer;
         TcpClientClass TcpClient;  
33    
34          // Generated message map functions          // Generated message map functions
35          virtual BOOL OnInitDialog();          virtual BOOL OnInitDialog();
# Line 34  protected: Line 38  protected:
38          afx_msg HCURSOR OnQueryDragIcon();          afx_msg HCURSOR OnQueryDragIcon();
39          DECLARE_MESSAGE_MAP()          DECLARE_MESSAGE_MAP()
40  public:  public:
41            bool m_First;
42          CEdit m_Status;          CEdit m_Status;
43          CComboBox m_BaudRate;          CComboBox m_BaudRate;
44          CComboBox m_Serial;          CComboBox m_Serial;
45          CButton m_Stop;          CButton m_Stop;
46          CEdit m_Port;          CEdit m_Port;
47          int m_Start;          int m_Start;
48            CH7Serial H7Serial;
49          CButton m_Restart;          CButton m_Restart;
50          afx_msg void OnBnClickedStart();          afx_msg void OnBnClickedStart();
51          int StartTcp(void);          int StartTcp(void);
52          afx_msg void OnBnClickedTest();          afx_msg void OnBnClickedTest();
53            afx_msg void OnBnClickedRestart();
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(void);
60            afx_msg void OnBnClickedStop();
61            void TcpStatus(void);
62  };  };

Legend:
Removed from v.6  
changed lines
  Added in v.33

  ViewVC Help
Powered by ViewVC 1.1.20