RegNetworkDlg.h
上传用户:zslianheng
上传日期:2013-04-03
资源大小:946k
文件大小:3k
源码类别:

Linux/Unix编程

开发平台:

Visual C++

  1. /***************************************************************************
  2.  *                                                                         *
  3.  *   This program is free software; you can redistribute it and/or modify  *
  4.  *   it under the terms of the GNU General Public License as published by  *
  5.  *   the Free Software Foundation; either version 2 of the License, or     *
  6.  *   (at your option) any later version.                                   *
  7.  *                                                                         *
  8.  *   copyright            : (C) 2002 by Zhang Yong                         *
  9.  *   email                : z-yong163@163.com                              *
  10.  ***************************************************************************/
  11. #if !defined(AFX_REGNETWORKDLG_H__CE7B4479_66E9_4564_BC6C_B0DEF9E98977__INCLUDED_)
  12. #define AFX_REGNETWORKDLG_H__CE7B4479_66E9_4564_BC6C_B0DEF9E98977__INCLUDED_
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16. // RegNetworkDlg.h : header file
  17. //
  18. #include "sessionlistener.h"
  19. #include "sockssession.h"
  20. #include "httpsession.h"
  21. #include "icqclient.h"
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CRegNetworkDlg dialog
  24. class CRegNetworkDlg : public CPropertyPage, public SessionListener
  25. {
  26. DECLARE_DYNCREATE(CRegNetworkDlg)
  27. // Construction
  28. public:
  29. CRegNetworkDlg();
  30. ~CRegNetworkDlg();
  31. void getProxyInfo(ProxyInfo &proxy);
  32. ProxyInfo proxyInfo[NR_PROXY_TYPES];
  33. // Dialog Data
  34. //{{AFX_DATA(CRegNetworkDlg)
  35. enum { IDD = IDD_REG_NETWORK };
  36. CComboBox m_proxyTypeCombo;
  37. CString m_host;
  38. int m_port;
  39. CString m_proxyHost;
  40. CString m_proxyPasswd;
  41. int m_proxyPort;
  42. BOOL m_useProxy;
  43. CString m_proxyUserName;
  44. BOOL m_proxyResolve;
  45. int m_proxyType;
  46. //}}AFX_DATA
  47. private:
  48. virtual void sessionFinished(bool success);
  49. void enableControls();
  50. SocksSession socksSession;
  51. HttpSession httpSession;
  52. // Overrides
  53. // ClassWizard generate virtual function overrides
  54. //{{AFX_VIRTUAL(CRegNetworkDlg)
  55. public:
  56. virtual LRESULT OnWizardBack();
  57. virtual BOOL OnSetActive();
  58. virtual BOOL OnKillActive();
  59. protected:
  60. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  61. //}}AFX_VIRTUAL
  62. // Implementation
  63. protected:
  64. // Generated message map functions
  65. //{{AFX_MSG(CRegNetworkDlg)
  66. virtual BOOL OnInitDialog();
  67. afx_msg void OnProxyTest();
  68. afx_msg void OnUseProxy();
  69. afx_msg void OnUseHttp();
  70. afx_msg void OnHttpConnectDirect();
  71. afx_msg void OnHttpTest();
  72. afx_msg void OnConnectProxy();
  73. afx_msg void OnSelchangeProxyType();
  74. //}}AFX_MSG
  75. DECLARE_MESSAGE_MAP()
  76. };
  77. //{{AFX_INSERT_LOCATION}}
  78. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  79. #endif // !defined(AFX_REGNETWORKDLG_H__CE7B4479_66E9_4564_BC6C_B0DEF9E98977__INCLUDED_)