00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008-2010 OpenDownloadManager.ORG 00004 */ 00005 00006 #if !defined(AFX_DOWNLOADPROPERTIES_PROXYPAGE_H__2D6926B0_70AF_4201_807B_D2AECC4980B8__INCLUDED_) 00007 #define AFX_DOWNLOADPROPERTIES_PROXYPAGE_H__2D6926B0_70AF_4201_807B_D2AECC4980B8__INCLUDED_ 00008 00009 #if _MSC_VER > 1000 00010 #pragma once 00011 #endif 00012 00013 #include "list.h" 00014 00015 class CDownloadProperties_ProxyPage : public CPropertyPage 00016 { 00017 friend class CDownloadPropertiesSheet; 00018 00019 DECLARE_DYNCREATE(CDownloadProperties_ProxyPage) 00020 00021 public: 00022 CDownloadProperties_ProxyPage(); 00023 ~CDownloadProperties_ProxyPage(); 00024 00025 //{{AFX_DATA(CDownloadProperties_ProxyPage) 00026 enum { IDD = IDD_DOWNLOAD_PROXY }; 00027 CComboBox m_wndProtocols; 00028 //}}AFX_DATA 00029 00030 //{{AFX_VIRTUAL(CDownloadProperties_ProxyPage) 00031 public: 00032 virtual BOOL OnApply(); 00033 protected: 00034 virtual void DoDataExchange(CDataExchange* pDX); 00035 //}}AFX_VIRTUAL 00036 00037 protected: 00038 void PrepareCHMgr(CPoint point); 00039 void ApplyLanguage(); 00040 00041 struct ProxyInfo 00042 { 00043 CString strName; 00044 UINT uAuthorization; 00045 CString strUser; 00046 CString strPassword; 00047 BOOL bNameModified; 00048 BOOL bUserModified; 00049 BOOL bPasswordModified; 00050 00051 ProxyInfo () { bNameModified = bUserModified = bPasswordModified = FALSE; } 00052 }; 00053 00054 void ApplyPS (DLDS_LIST *pvDlds, ProxyInfo* pi); 00055 00056 BOOL ReadPS(); 00057 BOOL m_bIChange; 00058 void UpdatePS(); 00059 int m_iCurProtocol; 00060 00061 BOOL CrackProxyName (LPCSTR pszName, CString& strName, USHORT &uPort); 00062 00063 fs::list <ProxyInfo> m_vProxies; 00064 00065 void UpdateEnabled(); 00066 00067 DLDS_LIST *m_pvDlds; 00068 00069 DLDS_LIST m_vHttp, m_vHttps, m_vFtp; 00070 00071 //{{AFX_MSG(CDownloadProperties_ProxyPage) 00072 virtual BOOL OnInitDialog(); 00073 afx_msg void OnGetfromie(); 00074 afx_msg void OnManually(); 00075 afx_msg void OnUsesocks(); 00076 afx_msg void OnDontuseproxy(); 00077 afx_msg void OnChangeProxyname(); 00078 afx_msg void OnChangePort(); 00079 afx_msg void OnAuthorization(); 00080 afx_msg void OnChangeUser(); 00081 afx_msg void OnChangePassword(); 00082 afx_msg void OnSelchangeProtocols(); 00083 afx_msg void OnContextMenu(CWnd* pWnd, CPoint point); 00084 afx_msg void OnWhatisthis(); 00085 afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo); 00086 afx_msg void OnUserollback(); 00087 afx_msg void OnChangeRollbacksize(); 00088 afx_msg void OnFromfirefox(); 00089 //}}AFX_MSG 00090 DECLARE_MESSAGE_MAP() 00091 }; 00092 00093 //{{AFX_INSERT_LOCATION}//}} 00094 00095 #endif
1.5.6