#if !defined(AFX_PAGEADDSERVER_H__7BC813BF_B176_464D_89CD_A0C59F0FFAB7__INCLUDED_) #define AFX_PAGEADDSERVER_H__7BC813BF_B176_464D_89CD_A0C59F0FFAB7__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // PageAddServer.h : header file // ///////////////////////////////////////////////////////////////////////////// // CPageAddServer dialog #include "ParamDlg.h" #include "common.h" #include "UserThread.h" #define MAX_CLIENT_NUM 1024 #define MAX_WAIT_SERVER 16 typedef struct _WAIT_SERVER { CUserThread ThreadGetChannel; char szURL[NVE_MAX_STR_LENGTH]; BOOL bAvailable; } WAIT_SERVER; class CPageAddServer : public CParamDlg { // Construction public: CPageAddServer(CWnd* pParent, CMgrNVE* pMgrCM, CConnectionManager *pConnMgr); // standard constructor //void EnableProtocol(BOOL bEnable); // Dialog Data //{{AFX_DATA(CPageAddServer) enum { IDD = IDD_PG_ADD_SERVER }; CButton m_chkOnePort; CStatic m_stStatus; CButton m_btnFilter; CEdit m_edtURL; CButton m_chkManual; CListCtrl m_lstServer; CComboBox m_cbProtocol; CString m_strUserID; CString m_strUserPW; CString m_strURL; CString m_strFilter; //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CPageAddServer) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation BOOL SaveSetting(); BOOL ResetSetting(); BOOL UpdateSetting(); BOOL GetNextURL(int uCh, char *pszURL); BOOL GetChannelNum(char *pszURL); BOOL AddClientToList(Clientinfo *pInfo, ULONG uIndex); BOOL SetClientInfo(Clientinfo *pInfo, ULONG uIndex); void SetChannelNum(); private: static DWORD WINAPI ThreadGetChannelProcStub(LPVOID lpParameter); DWORD WINAPI ThreadGetChannelProc(LPVOID lpParameter); protected: // Generated message map functions //{{AFX_MSG(CPageAddServer) virtual BOOL OnInitDialog(); afx_msg LRESULT AddClient(UINT wParam, LONG lParam); afx_msg LRESULT GetInfo(UINT wParam, LONG lParam); afx_msg void OnDestroy(); afx_msg void OnClickListServer(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnBtnAddServer(); afx_msg void OnChkManual(); afx_msg void OnChkFilter(); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: ISettingStorage* m_pStorage; IMessageManager* m_pMsgMgr; Clientinfo m_ClientInfo[MAX_CLIENT_NUM]; WAIT_SERVER m_WaitServer[MAX_WAIT_SERVER]; ULONG m_uListCnt; ULONG m_uNumOfCh; ULONG m_uIndex; ULONG m_uStartTime; ULONG m_uStopTime; BOOL m_bAdminToolOpen; ULONG m_uListNum[MAX_CLIENT_NUM]; int m_iWatingIndex; }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_PAGEADDSERVER_H__7BC813BF_B176_464D_89CD_A0C59F0FFAB7__INCLUDED_)