Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CConnectionSettingsPage Class Reference

#include <PageSettingsConnection.h>

Inheritance diagram for CConnectionSettingsPage:

CSettingsPage List of all members.

Public Types

enum  { IDD = IDD_SETTINGS_CONNECTION }

Public Member Functions

 CConnectionSettingsPage ()
virtual ~CConnectionSettingsPage ()
CString FormatSpeed (DWORD nSpeed)
DWORD ParseSpeed (LPCTSTR psz)
CString GetInOutHostTranslation ()
virtual void OnOK ()
virtual BOOL OnKillActive ()

Public Attributes

CEdit m_wndInPort
CComboBox m_wndInSpeed
CComboBox m_wndOutSpeed
CComboBox m_wndInHost
CButton m_wndInBind
CSpinButtonCtrl m_wndTimeoutHandshake
CSpinButtonCtrl m_wndTimeoutConnection
BOOL m_bInBind
CString m_sInHost
int m_nInPort
CString m_sOutHost
CComboBox m_wndCanAccept
BOOL m_bIgnoreLocalIP
DWORD m_nTimeoutConnection
DWORD m_nTimeoutHandshake
CString m_sOutSpeed
CString m_sInSpeed
BOOL m_bInRandom

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
virtual BOOL OnInitDialog ()
afx_msg void OnEditChangeInboundHost ()
afx_msg void OnCloseUpInboundHost ()
afx_msg void OnChangeInboundPort ()
afx_msg void OnInboundRandom ()
afx_msg void OnShowWindow (BOOL bShow, UINT nStatus)

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
IDD 

Definition at line 42 of file PageSettingsConnection.h.


Constructor & Destructor Documentation

CConnectionSettingsPage::CConnectionSettingsPage  ) 
 

Definition at line 50 of file PageSettingsConnection.cpp.

CConnectionSettingsPage::~CConnectionSettingsPage  )  [virtual]
 

Definition at line 66 of file PageSettingsConnection.cpp.


Member Function Documentation

void CConnectionSettingsPage::DoDataExchange CDataExchange *  pDX  )  [protected, virtual]
 

Reimplemented from CSettingsPage.

Definition at line 70 of file PageSettingsConnection.cpp.

References CSettingsPage::DoDataExchange(), IDC_CAN_ACCEPT, IDC_IGNORE_LOCAL, IDC_INBOUND_BIND, IDC_INBOUND_HOST, IDC_INBOUND_PORT, IDC_INBOUND_RANDOM, IDC_INBOUND_SPEED, IDC_OUTBOUND_HOST, IDC_OUTBOUND_SPEED, IDC_TIMEOUT_CONNECTION, IDC_TIMEOUT_CONNECTION_SPIN, IDC_TIMEOUT_HANDSHAKE, IDC_TIMEOUT_HANDSHAKE_SPIN, m_bIgnoreLocalIP, m_bInBind, m_bInRandom, m_nInPort, m_nTimeoutConnection, m_nTimeoutHandshake, m_sInHost, m_sInSpeed, m_sOutHost, m_sOutSpeed, m_wndCanAccept, m_wndInBind, m_wndInHost, m_wndInPort, m_wndInSpeed, m_wndOutSpeed, m_wndTimeoutConnection, and m_wndTimeoutHandshake.

CString CConnectionSettingsPage::FormatSpeed DWORD  nSpeed  ) 
 

Definition at line 146 of file PageSettingsConnection.cpp.

References Settings, and CSettings::SmartVolume().

Referenced by OnShowWindow().

CString CConnectionSettingsPage::GetInOutHostTranslation  ) 
 

Definition at line 268 of file PageSettingsConnection.cpp.

References IDC_OUTBOUND_HOST, IDS_SETTINGS_AUTOMATIC_IP, LoadString(), and m_wndInHost.

Referenced by OnEditChangeInboundHost(), OnInitDialog(), and OnOK().

void CConnectionSettingsPage::OnChangeInboundPort  )  [protected]
 

Definition at line 170 of file PageSettingsConnection.cpp.

References m_bInRandom, and m_nInPort.

void CConnectionSettingsPage::OnCloseUpInboundHost  )  [protected]
 

Definition at line 165 of file PageSettingsConnection.cpp.

References m_wndInBind, and m_wndInHost.

void CConnectionSettingsPage::OnEditChangeInboundHost  )  [protected]
 

Definition at line 156 of file PageSettingsConnection.cpp.

References GetInOutHostTranslation(), m_sInHost, and m_wndInBind.

void CConnectionSettingsPage::OnInboundRandom  )  [protected]
 

Definition at line 182 of file PageSettingsConnection.cpp.

References m_bInRandom, and m_nInPort.

BOOL CConnectionSettingsPage::OnInitDialog  )  [protected, virtual]
 

Reimplemented from CSettingsPage.

Definition at line 98 of file PageSettingsConnection.cpp.

References CSettings::Connection, CSettings::sConnection::FirewallStatus, GetInOutHostTranslation(), IDC_OUTBOUND_HOST, IDS_GENERAL_AUTO, IDS_GENERAL_NO, IDS_GENERAL_YES, CSettings::sConnection::IgnoreLocalIP, CSettings::sConnection::InBind, CSettings::sConnection::InHost, CSettings::sConnection::InPort, LoadString(), m_bIgnoreLocalIP, m_bInBind, m_bInRandom, m_nInPort, m_nTimeoutConnection, m_nTimeoutHandshake, m_sInHost, m_sOutHost, m_wndCanAccept, m_wndInBind, m_wndInHost, m_wndTimeoutConnection, m_wndTimeoutHandshake, CSettingsPage::OnInitDialog(), CSettings::sConnection::OutHost, Settings, CSettings::sConnection::TimeoutConnect, and CSettings::sConnection::TimeoutHandshake.

BOOL CConnectionSettingsPage::OnKillActive  )  [virtual]
 

Reimplemented from CSettingsPage.

Definition at line 193 of file PageSettingsConnection.cpp.

References IDS_SETTINGS_NEED_BANDWIDTH, LoadString(), m_sInSpeed, m_sOutSpeed, m_wndInSpeed, m_wndOutSpeed, CSettingsPage::OnKillActive(), and ParseSpeed().

void CConnectionSettingsPage::OnOK  )  [virtual]
 

Reimplemented from CSettingsPage.

Definition at line 218 of file PageSettingsConnection.cpp.

References CSettings::sBitTorrent::AdvancedInterface, CSettings::sBitTorrent::AdvancedInterfaceSet, CSettings::Bandwidth, CSettings::BitTorrent, CSettings::Connection, CSettings::sBandwidth::Downloads, CSettings::eDonkey, CSettings::seDonkey::EnableAlways, CSettings::seDonkey::EnableToday, CSettings::sConnection::FirewallStatus, GetInOutHostTranslation(), CSettings::sConnection::IgnoreLocalIP, CSettings::sConnection::InBind, CSettings::sConnection::InHost, CSettings::sConnection::InPort, CSettings::sConnection::InSpeed, CSettings::Live, m_bIgnoreLocalIP, m_bInBind, m_nInPort, m_nTimeoutConnection, m_nTimeoutHandshake, m_sInHost, m_sInSpeed, m_sOutHost, m_sOutSpeed, m_wndCanAccept, CSettingsPage::OnOK(), CSettings::sConnection::OutHost, CSettings::sConnection::OutSpeed, ParseSpeed(), Settings, CHelpDlg::Show(), CSettings::sConnection::TimeoutConnect, CSettings::sConnection::TimeoutHandshake, CSettings::sLive::UploadLimitWarning, and CSettings::sBandwidth::Uploads.

void CConnectionSettingsPage::OnShowWindow BOOL  bShow,
UINT  nStatus
[protected]
 

Definition at line 283 of file PageSettingsConnection.cpp.

References CSettings::Connection, FormatSpeed(), CSettings::sConnection::InSpeed, m_sInSpeed, m_sOutSpeed, m_wndInSpeed, m_wndOutSpeed, CSettings::sConnection::OutSpeed, and Settings.

DWORD CConnectionSettingsPage::ParseSpeed LPCTSTR  psz  ) 
 

Definition at line 151 of file PageSettingsConnection.cpp.

References CSettings::ParseVolume(), and Settings.

Referenced by OnKillActive(), and OnOK().


Member Data Documentation

BOOL CConnectionSettingsPage::m_bIgnoreLocalIP
 

Definition at line 55 of file PageSettingsConnection.h.

Referenced by DoDataExchange(), OnInitDialog(), and OnOK().

BOOL CConnectionSettingsPage::m_bInBind
 

Definition at line 50 of file PageSettingsConnection.h.

Referenced by DoDataExchange(), OnInitDialog(), and OnOK().

BOOL CConnectionSettingsPage::m_bInRandom
 

Definition at line 60 of file PageSettingsConnection.h.

Referenced by DoDataExchange(), OnChangeInboundPort(), OnInboundRandom(), and OnInitDialog().

int CConnectionSettingsPage::m_nInPort
 

Definition at line 52 of file PageSettingsConnection.h.

Referenced by DoDataExchange(), OnChangeInboundPort(), OnInboundRandom(), OnInitDialog(), and OnOK().

DWORD CConnectionSettingsPage::m_nTimeoutConnection
 

Definition at line 56 of file PageSettingsConnection.h.

Referenced by DoDataExchange(), OnInitDialog(), and OnOK().

DWORD CConnectionSettingsPage::m_nTimeoutHandshake
 

Definition at line 57 of file PageSettingsConnection.h.

Referenced by DoDataExchange(), OnInitDialog(), and OnOK().

CString CConnectionSettingsPage::m_sInHost
 

Definition at line 51 of file PageSettingsConnection.h.

Referenced by DoDataExchange(), OnEditChangeInboundHost(), OnInitDialog(), and OnOK().

CString CConnectionSettingsPage::m_sInSpeed
 

Definition at line 59 of file PageSettingsConnection.h.

Referenced by DoDataExchange(), OnKillActive(), OnOK(), and OnShowWindow().

CString CConnectionSettingsPage::m_sOutHost
 

Definition at line 53 of file PageSettingsConnection.h.

Referenced by DoDataExchange(), OnInitDialog(), and OnOK().

CString CConnectionSettingsPage::m_sOutSpeed
 

Definition at line 58 of file PageSettingsConnection.h.

Referenced by DoDataExchange(), OnKillActive(), OnOK(), and OnShowWindow().

CComboBox CConnectionSettingsPage::m_wndCanAccept
 

Definition at line 54 of file PageSettingsConnection.h.

Referenced by DoDataExchange(), OnInitDialog(), and OnOK().

CButton CConnectionSettingsPage::m_wndInBind
 

Definition at line 47 of file PageSettingsConnection.h.

Referenced by DoDataExchange(), OnCloseUpInboundHost(), OnEditChangeInboundHost(), and OnInitDialog().

CComboBox CConnectionSettingsPage::m_wndInHost
 

Definition at line 46 of file PageSettingsConnection.h.

Referenced by DoDataExchange(), GetInOutHostTranslation(), OnCloseUpInboundHost(), and OnInitDialog().

CEdit CConnectionSettingsPage::m_wndInPort
 

Definition at line 43 of file PageSettingsConnection.h.

Referenced by DoDataExchange().

CComboBox CConnectionSettingsPage::m_wndInSpeed
 

Definition at line 44 of file PageSettingsConnection.h.

Referenced by DoDataExchange(), OnKillActive(), and OnShowWindow().

CComboBox CConnectionSettingsPage::m_wndOutSpeed
 

Definition at line 45 of file PageSettingsConnection.h.

Referenced by DoDataExchange(), OnKillActive(), and OnShowWindow().

CSpinButtonCtrl CConnectionSettingsPage::m_wndTimeoutConnection
 

Definition at line 49 of file PageSettingsConnection.h.

Referenced by DoDataExchange(), and OnInitDialog().

CSpinButtonCtrl CConnectionSettingsPage::m_wndTimeoutHandshake
 

Definition at line 48 of file PageSettingsConnection.h.

Referenced by DoDataExchange(), and OnInitDialog().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:04 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2