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

CDownloadsSettingsPage Class Reference

#include <PageSettingsDownloads.h>

Inheritance diagram for CDownloadsSettingsPage:

CSettingsPage List of all members.

Public Types

enum  { IDD = IDD_SETTINGS_DOWNLOADS }

Public Member Functions

 CDownloadsSettingsPage ()
virtual ~CDownloadsSettingsPage ()
virtual void OnOK ()
virtual BOOL OnKillActive ()

Public Attributes

CSpinButtonCtrl m_wndMaxDownTransfers
CSpinButtonCtrl m_wndMaxFileTransfers
CSpinButtonCtrl m_wndMaxDownFiles
CIconButtonCtrl m_wndIncompletePath
CIconButtonCtrl m_wndDownloadsPath
CComboBox m_wndBandwidthLimit
CComboBox m_wndQueueLimit
CString m_sDownloadsPath
CString m_sIncompletePath
int m_nMaxDownFiles
int m_nMaxFileTransfers
int m_nMaxDownTransfers
CString m_sBandwidthLimit
CString m_sQueueLimit
BOOL m_bRequireConnect
BOOL m_bDownloadsChanged

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
BOOL IsNotLimited (LPCTSTR pText)
virtual BOOL OnInitDialog ()
afx_msg void OnDownloadsBrowse ()
afx_msg void OnIncompleteBrowse ()
afx_msg void OnShowWindow (BOOL bShow, UINT nStatus)

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
IDD 

Definition at line 44 of file PageSettingsDownloads.h.


Constructor & Destructor Documentation

CDownloadsSettingsPage::CDownloadsSettingsPage  ) 
 

Definition at line 55 of file PageSettingsDownloads.cpp.

CDownloadsSettingsPage::~CDownloadsSettingsPage  )  [virtual]
 

Definition at line 69 of file PageSettingsDownloads.cpp.


Member Function Documentation

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

Reimplemented from CSettingsPage.

Definition at line 73 of file PageSettingsDownloads.cpp.

References CSettingsPage::DoDataExchange(), IDC_DOWNLOADS_BANDWIDTH_LIMIT, IDC_DOWNLOADS_BROWSE, IDC_DOWNLOADS_FOLDER, IDC_DOWNLOADS_QUEUE_LIMIT, IDC_INCOMPLETE_BROWSE, IDC_INCOMPLETE_FOLDER, IDC_MAX_FILES, IDC_MAX_FILES_SPIN, IDC_MAX_TPF, IDC_MAX_TPF_SPIN, IDC_MAX_TRANSFERS, IDC_MAX_TRANSFERS_SPIN, IDC_REQUIRE_CONNECT, m_bRequireConnect, m_nMaxDownFiles, m_nMaxDownTransfers, m_nMaxFileTransfers, m_sBandwidthLimit, m_sDownloadsPath, m_sIncompletePath, m_sQueueLimit, m_wndBandwidthLimit, m_wndDownloadsPath, m_wndIncompletePath, m_wndMaxDownFiles, m_wndMaxDownTransfers, m_wndMaxFileTransfers, and m_wndQueueLimit.

BOOL CDownloadsSettingsPage::IsNotLimited LPCTSTR  pText  )  [protected]
 

Definition at line 443 of file PageSettingsDownloads.cpp.

References _tcsistr(), and NULL.

Referenced by OnKillActive(), and OnOK().

void CDownloadsSettingsPage::OnDownloadsBrowse  )  [protected]
 

Definition at line 156 of file PageSettingsDownloads.cpp.

References IDS_SETTINGS_FILEPATH_NOT_SAME, IDS_SETTINGS_FILEPATH_TOO_LONG, LoadString(), m_bDownloadsChanged, m_sDownloadsPath, m_sIncompletePath, and NULL.

void CDownloadsSettingsPage::OnIncompleteBrowse  )  [protected]
 

Definition at line 202 of file PageSettingsDownloads.cpp.

References IDS_SETTINGS_FILEPATH_NOT_SAME, IDS_SETTINGS_FILEPATH_TOO_LONG, IDS_SETTINGS_INCOMPLETE_LIBRARY, CLibraryFolders::IsFolderShared(), LibraryFolders, LoadString(), m_sDownloadsPath, m_sIncompletePath, and NULL.

BOOL CDownloadsSettingsPage::OnInitDialog  )  [protected, virtual]
 

Reimplemented from CSettingsPage.

Definition at line 99 of file PageSettingsDownloads.cpp.

References CSettings::Bandwidth, CSettings::sDownloads::CompletePath, CSettings::Connection, CSettings::sBandwidth::Downloads, CSettings::Downloads, CSettings::GetOutgoingBandwidth(), IDI_BROWSE, CSettings::sDownloads::IncompletePath, m_bDownloadsChanged, CShareazaApp::m_bNT, m_bRequireConnect, m_nMaxDownFiles, m_nMaxDownTransfers, m_nMaxFileTransfers, m_sBandwidthLimit, m_sDownloadsPath, m_sIncompletePath, m_sQueueLimit, m_wndDownloadsPath, m_wndIncompletePath, m_wndMaxDownFiles, m_wndMaxDownTransfers, m_wndMaxFileTransfers, CSettings::sDownloads::MaxFiles, CSettings::sDownloads::MaxFileTransfers, CSettings::sDownloads::MaxTransfers, CSettingsPage::OnInitDialog(), CSettings::sDownloads::QueueLimit, CSettings::sConnection::RequireForTransfers, CIconButtonCtrl::SetIcon(), Settings, CSettings::SmartVolume(), and theApp.

BOOL CDownloadsSettingsPage::OnKillActive  )  [virtual]
 

Reimplemented from CSettingsPage.

Definition at line 256 of file PageSettingsDownloads.cpp.

References IDC_DOWNLOADS_BANDWIDTH_LIMIT, IDS_SETTINGS_NEED_BANDWIDTH, IsNotLimited(), LoadString(), m_sBandwidthLimit, CSettingsPage::OnKillActive(), CSettings::ParseVolume(), and Settings.

void CDownloadsSettingsPage::OnOK  )  [virtual]
 

Reimplemented from CSettingsPage.

Definition at line 272 of file PageSettingsDownloads.cpp.

References CLibraryFolders::AddFolder(), CSettings::Bandwidth, CLibraryFolders::CheckFolder(), CSettings::sDownloads::CompletePath, CSettings::Connection, CSettings::sBandwidth::Downloads, CSettings::Downloads, CSettings::eDonkey, CSettings::seDonkey::EnableAlways, CSettings::seDonkey::EnableToday, CLibraryFolders::GetFolderCount(), CSettings::GetOutgoingBandwidth(), IDS_LIBRARY_DOWNLOADS_ADD, IDS_LIBRARY_DOWNLOADS_SHARE, IDS_SETTINGS_WARN_QUEUELIMIT, CSettings::sDownloads::IncompletePath, CLibraryFolders::IsFolderShared(), IsNotLimited(), Library, LibraryFolders, CSettings::Live, LoadString(), m_bDownloadsChanged, CShareazaApp::m_bNT, m_bRequireConnect, m_nMaxDownFiles, m_nMaxDownTransfers, m_nMaxFileTransfers, CLibrary::m_pSection, m_sBandwidthLimit, m_sDownloadsPath, m_sIncompletePath, m_sQueueLimit, CSettings::sDownloads::MaxFiles, CSettings::sDownloads::MaxFileTransfers, CSettings::sDownloads::MaxTransfers, NULL, CSettingsPage::OnOK(), CSettings::ParseVolume(), CSettings::sDownloads::QueueLimit, CSettings::sLive::QueueLimitWarning, CSettings::sConnection::RequireForTransfers, Settings, theApp, TS_FALSE, TS_TRUE, and CLibrary::Update().

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

Definition at line 403 of file PageSettingsDownloads.cpp.

References CSettings::Connection, CSettings::eDonkey, CSettings::seDonkey::EnableAlways, CSettings::seDonkey::EnableToday, CSettings::sConnection::InSpeed, m_wndBandwidthLimit, m_wndQueueLimit, Settings, and CSettings::SmartVolume().


Member Data Documentation

BOOL CDownloadsSettingsPage::m_bDownloadsChanged
 

Definition at line 62 of file PageSettingsDownloads.h.

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

BOOL CDownloadsSettingsPage::m_bRequireConnect
 

Definition at line 59 of file PageSettingsDownloads.h.

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

int CDownloadsSettingsPage::m_nMaxDownFiles
 

Definition at line 54 of file PageSettingsDownloads.h.

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

int CDownloadsSettingsPage::m_nMaxDownTransfers
 

Definition at line 56 of file PageSettingsDownloads.h.

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

int CDownloadsSettingsPage::m_nMaxFileTransfers
 

Definition at line 55 of file PageSettingsDownloads.h.

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

CString CDownloadsSettingsPage::m_sBandwidthLimit
 

Definition at line 57 of file PageSettingsDownloads.h.

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

CString CDownloadsSettingsPage::m_sDownloadsPath
 

Definition at line 52 of file PageSettingsDownloads.h.

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

CString CDownloadsSettingsPage::m_sIncompletePath
 

Definition at line 53 of file PageSettingsDownloads.h.

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

CString CDownloadsSettingsPage::m_sQueueLimit
 

Definition at line 58 of file PageSettingsDownloads.h.

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

CComboBox CDownloadsSettingsPage::m_wndBandwidthLimit
 

Definition at line 50 of file PageSettingsDownloads.h.

Referenced by DoDataExchange(), and OnShowWindow().

CIconButtonCtrl CDownloadsSettingsPage::m_wndDownloadsPath
 

Definition at line 49 of file PageSettingsDownloads.h.

Referenced by DoDataExchange(), and OnInitDialog().

CIconButtonCtrl CDownloadsSettingsPage::m_wndIncompletePath
 

Definition at line 48 of file PageSettingsDownloads.h.

Referenced by DoDataExchange(), and OnInitDialog().

CSpinButtonCtrl CDownloadsSettingsPage::m_wndMaxDownFiles
 

Definition at line 47 of file PageSettingsDownloads.h.

Referenced by DoDataExchange(), and OnInitDialog().

CSpinButtonCtrl CDownloadsSettingsPage::m_wndMaxDownTransfers
 

Definition at line 45 of file PageSettingsDownloads.h.

Referenced by DoDataExchange(), and OnInitDialog().

CSpinButtonCtrl CDownloadsSettingsPage::m_wndMaxFileTransfers
 

Definition at line 46 of file PageSettingsDownloads.h.

Referenced by DoDataExchange(), and OnInitDialog().

CComboBox CDownloadsSettingsPage::m_wndQueueLimit
 

Definition at line 51 of file PageSettingsDownloads.h.

Referenced by DoDataExchange(), and OnShowWindow().


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