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

CBandwidthSettingsPage Class Reference

#include <PageSettingsBandwidth.h>

Inheritance diagram for CBandwidthSettingsPage:

CSettingsPage List of all members.

Public Types

enum  { IDD = IDD_SETTINGS_BANDWIDTH }

Public Member Functions

 CBandwidthSettingsPage ()
virtual ~CBandwidthSettingsPage ()
void Calculate (BOOL bForeward)
void Calculate (CString &strLimit, int nCount, CString &strCount, CString &strTotal, BOOL bForeward)
DWORD ToSpeed (CString &str)
CString ToString (DWORD nSpeed, BOOL bUnlimited=TRUE, BOOL bUnit=FALSE)
DWORD AddString (CString &str)
void SwapBytesBits (CString &str)
virtual void OnOK ()
virtual BOOL OnSetActive ()

Public Attributes

CStatic m_wndHeadUP2
CStatic m_wndHeadUP1
CStatic m_wndHeadTransmit
CStatic m_wndHeadReceive
CString m_sUPInLimit
CString m_sUPInMax
CString m_sUPInTotal
CString m_sUPOutLimit
CString m_sUPOutMax
CString m_sUPOutTotal
CString m_sDLTotal
CString m_sInTotal
CString m_sOutTotal
CString m_sPInTotal
CString m_sPOutLimit
CString m_sPOutMax
CString m_sPOutTotal
CString m_sULTotal
CString m_sPInLimit
CString m_sPInMax
CString m_sLInLimit
CString m_sLInMax
CString m_sLInTotal
CString m_sLOutLimit
CString m_sLOutMax
CString m_sLOutTotal
CString m_sUDPTotal

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
virtual BOOL OnCommand (WPARAM wParam, LPARAM lParam)
virtual BOOL OnNotify (WPARAM wParam, LPARAM lParam, LRESULT *pResult)
virtual BOOL OnInitDialog ()
afx_msg void OnTimer (UINT nIDEvent)
afx_msg HBRUSH OnCtlColor (CDC *pDC, CWnd *pWnd, UINT nCtlColor)

Protected Attributes

BOOL m_bActive
BOOL m_bBytes

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
IDD 

Definition at line 38 of file PageSettingsBandwidth.h.


Constructor & Destructor Documentation

CBandwidthSettingsPage::CBandwidthSettingsPage  ) 
 

Definition at line 46 of file PageSettingsBandwidth.cpp.

CBandwidthSettingsPage::~CBandwidthSettingsPage  )  [virtual]
 

Definition at line 74 of file PageSettingsBandwidth.cpp.


Member Function Documentation

DWORD CBandwidthSettingsPage::AddString CString &  str  ) 
 

Definition at line 236 of file PageSettingsBandwidth.cpp.

References ToSpeed().

Referenced by Calculate().

void CBandwidthSettingsPage::Calculate CString &  strLimit,
int  nCount,
CString &  strCount,
CString &  strTotal,
BOOL  bForeward
 

Definition at line 191 of file PageSettingsBandwidth.cpp.

References ToSpeed(), and ToString().

void CBandwidthSettingsPage::Calculate BOOL  bForeward  ) 
 

Definition at line 152 of file PageSettingsBandwidth.cpp.

References AddString(), CSettingsPage::GetPage(), CSettings::Gnutella1, CSettings::Gnutella2, m_bActive, CGnutellaSettingsPage::m_nG1Hubs, CGnutellaSettingsPage::m_nG1Leafs, CGnutellaSettingsPage::m_nG1Peers, CGnutellaSettingsPage::m_nG2Hubs, CGnutellaSettingsPage::m_nG2Leafs, CGnutellaSettingsPage::m_nG2Peers, m_sDLTotal, m_sInTotal, m_sLInLimit, m_sLInMax, m_sLInTotal, m_sLOutLimit, m_sLOutMax, m_sLOutTotal, m_sOutTotal, m_sPInLimit, m_sPInMax, m_sPInTotal, m_sPOutLimit, m_sPOutMax, m_sPOutTotal, m_sUDPTotal, m_sULTotal, m_sUPInLimit, m_sUPInMax, m_sUPInTotal, m_sUPOutLimit, m_sUPOutMax, m_sUPOutTotal, CSettings::sGnutella2::NumHubs, CSettings::sGnutella1::NumHubs, CSettings::sGnutella2::NumLeafs, CSettings::sGnutella1::NumLeafs, CSettings::sGnutella2::NumPeers, CSettings::sGnutella1::NumPeers, Settings, and ToString().

Referenced by OnInitDialog(), OnSetActive(), and OnTimer().

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

Reimplemented from CSettingsPage.

Definition at line 78 of file PageSettingsBandwidth.cpp.

References CSettingsPage::DoDataExchange(), IDC_DL_TOTAL, IDC_HEAD_RECEIVE, IDC_HEAD_TRANSMIT, IDC_IN_TOTAL, IDC_LIN_LIMIT, IDC_LIN_MAX, IDC_LIN_TOTAL, IDC_LOUT_LIMIT, IDC_LOUT_MAX, IDC_LOUT_TOTAL, IDC_OUT_TOTAL, IDC_PIN_LIMIT, IDC_PIN_MAX, IDC_PIN_TOTAL, IDC_POUT_LIMIT, IDC_POUT_MAX, IDC_POUT_TOTAL, IDC_UDP_TOTAL, IDC_UL_TOTAL, IDC_UPIN_LIMIT, IDC_UPIN_MAX, IDC_UPIN_TOTAL, IDC_UPOUT_LIMIT, IDC_UPOUT_MAX, IDC_UPOUT_TOTAL, m_sDLTotal, m_sInTotal, m_sLInLimit, m_sLInMax, m_sLInTotal, m_sLOutLimit, m_sLOutMax, m_sLOutTotal, m_sOutTotal, m_sPInLimit, m_sPInMax, m_sPInTotal, m_sPOutLimit, m_sPOutMax, m_sPOutTotal, m_sUDPTotal, m_sULTotal, m_sUPInLimit, m_sUPInMax, m_sUPInTotal, m_sUPOutLimit, m_sUPOutMax, m_sUPOutTotal, m_wndHeadReceive, and m_wndHeadTransmit.

BOOL CBandwidthSettingsPage::OnCommand WPARAM  wParam,
LPARAM  lParam
[protected, virtual]
 

Definition at line 264 of file PageSettingsBandwidth.cpp.

References IDC_DL_TOTAL, IDC_LIN_LIMIT, IDC_LIN_TOTAL, IDC_LOUT_LIMIT, IDC_LOUT_TOTAL, IDC_PIN_LIMIT, IDC_PIN_TOTAL, IDC_POUT_LIMIT, IDC_POUT_TOTAL, IDC_UDP_TOTAL, IDC_UL_TOTAL, IDC_UPIN_LIMIT, IDC_UPIN_TOTAL, IDC_UPOUT_LIMIT, IDC_UPOUT_TOTAL, and m_bActive.

HBRUSH CBandwidthSettingsPage::OnCtlColor CDC *  pDC,
CWnd *  pWnd,
UINT  nCtlColor
[protected]
 

Reimplemented from CSettingsPage.

Definition at line 331 of file PageSettingsBandwidth.cpp.

References CShareazaApp::m_gdiFontBold, m_wndHeadReceive, m_wndHeadTransmit, CSettingsPage::OnCtlColor(), and theApp.

BOOL CBandwidthSettingsPage::OnInitDialog  )  [protected, virtual]
 

Reimplemented from CSettingsPage.

Definition at line 111 of file PageSettingsBandwidth.cpp.

References CSettings::Bandwidth, Calculate(), CSettings::sBandwidth::Downloads, CSettings::General, CSettings::sBandwidth::HubIn, CSettings::sBandwidth::HubOut, CSettings::sBandwidth::LeafIn, CSettings::sBandwidth::LeafOut, m_bBytes, m_sDLTotal, m_sLInLimit, m_sLOutLimit, m_sPInLimit, m_sPOutLimit, m_sUDPTotal, m_sULTotal, m_sUPInLimit, m_sUPOutLimit, CSettingsPage::OnInitDialog(), CSettings::sBandwidth::PeerIn, CSettings::sBandwidth::PeerOut, CSettings::sGeneral::RatesInBytes, Settings, ToString(), CSettings::sBandwidth::UdpOut, and CSettings::sBandwidth::Uploads.

BOOL CBandwidthSettingsPage::OnNotify WPARAM  wParam,
LPARAM  lParam,
LRESULT *  pResult
[protected, virtual]
 

Definition at line 296 of file PageSettingsBandwidth.cpp.

References m_bBytes, ToSpeed(), and ToString().

void CBandwidthSettingsPage::OnOK  )  [virtual]
 

Reimplemented from CSettingsPage.

Definition at line 343 of file PageSettingsBandwidth.cpp.

References CSettings::Bandwidth, CSettings::sBandwidth::Downloads, CSettings::sBandwidth::HubIn, CSettings::sBandwidth::HubOut, CSettings::sBandwidth::LeafIn, CSettings::sBandwidth::LeafOut, m_sDLTotal, m_sLInLimit, m_sLOutLimit, m_sPInLimit, m_sPOutLimit, m_sUDPTotal, m_sULTotal, m_sUPInLimit, m_sUPOutLimit, CSettingsPage::OnOK(), CSettings::sBandwidth::PeerIn, CSettings::sBandwidth::PeerOut, Settings, ToSpeed(), CSettings::sBandwidth::UdpOut, and CSettings::sBandwidth::Uploads.

BOOL CBandwidthSettingsPage::OnSetActive  )  [virtual]
 

Reimplemented from CSettingsPage.

Definition at line 146 of file PageSettingsBandwidth.cpp.

References Calculate(), and CSettingsPage::OnSetActive().

void CBandwidthSettingsPage::OnTimer UINT  nIDEvent  )  [protected]
 

Definition at line 325 of file PageSettingsBandwidth.cpp.

References Calculate().

void CBandwidthSettingsPage::SwapBytesBits CString &  str  ) 
 

Definition at line 256 of file PageSettingsBandwidth.cpp.

References m_bBytes, ToSpeed(), and ToString().

DWORD CBandwidthSettingsPage::ToSpeed CString &  str  ) 
 

Definition at line 207 of file PageSettingsBandwidth.cpp.

References m_bBytes.

Referenced by AddString(), Calculate(), OnNotify(), OnOK(), and SwapBytesBits().

CString CBandwidthSettingsPage::ToString DWORD  nSpeed,
BOOL  bUnlimited = TRUE,
BOOL  bUnit = FALSE
 

Definition at line 216 of file PageSettingsBandwidth.cpp.

References m_bBytes.

Referenced by Calculate(), OnInitDialog(), OnNotify(), and SwapBytesBits().


Member Data Documentation

BOOL CBandwidthSettingsPage::m_bActive [protected]
 

Definition at line 78 of file PageSettingsBandwidth.h.

Referenced by Calculate(), and OnCommand().

BOOL CBandwidthSettingsPage::m_bBytes [protected]
 

Definition at line 79 of file PageSettingsBandwidth.h.

Referenced by OnInitDialog(), OnNotify(), SwapBytesBits(), ToSpeed(), and ToString().

CString CBandwidthSettingsPage::m_sDLTotal
 

Definition at line 49 of file PageSettingsBandwidth.h.

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

CString CBandwidthSettingsPage::m_sInTotal
 

Definition at line 50 of file PageSettingsBandwidth.h.

Referenced by Calculate(), and DoDataExchange().

CString CBandwidthSettingsPage::m_sLInLimit
 

Definition at line 59 of file PageSettingsBandwidth.h.

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

CString CBandwidthSettingsPage::m_sLInMax
 

Definition at line 60 of file PageSettingsBandwidth.h.

Referenced by Calculate(), and DoDataExchange().

CString CBandwidthSettingsPage::m_sLInTotal
 

Definition at line 61 of file PageSettingsBandwidth.h.

Referenced by Calculate(), and DoDataExchange().

CString CBandwidthSettingsPage::m_sLOutLimit
 

Definition at line 62 of file PageSettingsBandwidth.h.

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

CString CBandwidthSettingsPage::m_sLOutMax
 

Definition at line 63 of file PageSettingsBandwidth.h.

Referenced by Calculate(), and DoDataExchange().

CString CBandwidthSettingsPage::m_sLOutTotal
 

Definition at line 64 of file PageSettingsBandwidth.h.

Referenced by Calculate(), and DoDataExchange().

CString CBandwidthSettingsPage::m_sOutTotal
 

Definition at line 51 of file PageSettingsBandwidth.h.

Referenced by Calculate(), and DoDataExchange().

CString CBandwidthSettingsPage::m_sPInLimit
 

Definition at line 57 of file PageSettingsBandwidth.h.

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

CString CBandwidthSettingsPage::m_sPInMax
 

Definition at line 58 of file PageSettingsBandwidth.h.

Referenced by Calculate(), and DoDataExchange().

CString CBandwidthSettingsPage::m_sPInTotal
 

Definition at line 52 of file PageSettingsBandwidth.h.

Referenced by Calculate(), and DoDataExchange().

CString CBandwidthSettingsPage::m_sPOutLimit
 

Definition at line 53 of file PageSettingsBandwidth.h.

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

CString CBandwidthSettingsPage::m_sPOutMax
 

Definition at line 54 of file PageSettingsBandwidth.h.

Referenced by Calculate(), and DoDataExchange().

CString CBandwidthSettingsPage::m_sPOutTotal
 

Definition at line 55 of file PageSettingsBandwidth.h.

Referenced by Calculate(), and DoDataExchange().

CString CBandwidthSettingsPage::m_sUDPTotal
 

Definition at line 65 of file PageSettingsBandwidth.h.

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

CString CBandwidthSettingsPage::m_sULTotal
 

Definition at line 56 of file PageSettingsBandwidth.h.

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

CString CBandwidthSettingsPage::m_sUPInLimit
 

Definition at line 43 of file PageSettingsBandwidth.h.

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

CString CBandwidthSettingsPage::m_sUPInMax
 

Definition at line 44 of file PageSettingsBandwidth.h.

Referenced by Calculate(), and DoDataExchange().

CString CBandwidthSettingsPage::m_sUPInTotal
 

Definition at line 45 of file PageSettingsBandwidth.h.

Referenced by Calculate(), and DoDataExchange().

CString CBandwidthSettingsPage::m_sUPOutLimit
 

Definition at line 46 of file PageSettingsBandwidth.h.

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

CString CBandwidthSettingsPage::m_sUPOutMax
 

Definition at line 47 of file PageSettingsBandwidth.h.

Referenced by Calculate(), and DoDataExchange().

CString CBandwidthSettingsPage::m_sUPOutTotal
 

Definition at line 48 of file PageSettingsBandwidth.h.

Referenced by Calculate(), and DoDataExchange().

CStatic CBandwidthSettingsPage::m_wndHeadReceive
 

Definition at line 42 of file PageSettingsBandwidth.h.

Referenced by DoDataExchange(), and OnCtlColor().

CStatic CBandwidthSettingsPage::m_wndHeadTransmit
 

Definition at line 41 of file PageSettingsBandwidth.h.

Referenced by DoDataExchange(), and OnCtlColor().

CStatic CBandwidthSettingsPage::m_wndHeadUP1
 

Definition at line 40 of file PageSettingsBandwidth.h.

CStatic CBandwidthSettingsPage::m_wndHeadUP2
 

Definition at line 39 of file PageSettingsBandwidth.h.


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