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

CUploadsSettingsPage Class Reference

#include <PageSettingsUploads.h>

Inheritance diagram for CUploadsSettingsPage:

CSettingsPage List of all members.

Public Types

enum  { IDD = IDD_SETTINGS_UPLOADS }

Public Member Functions

 CUploadsSettingsPage ()
virtual ~CUploadsSettingsPage ()
void UpdateQueues ()
virtual void OnOK ()
virtual BOOL OnSetActive ()
virtual BOOL OnKillActive ()
virtual void DoDataExchange (CDataExchange *pDX)

Public Attributes

CSpinButtonCtrl m_wndMaxPerHost
CComboBox m_wndAgentList
CButton m_wndAgentAdd
CButton m_wndAgentRemove
CComboBox m_wndBandwidthLimit
CDragListCtrl m_wndQueues
CButton m_wndQueueDelete
CButton m_wndQueueEdit
BOOL m_bSharePartials
BOOL m_bHubUnshare
BOOL m_bSharePreviews
DWORD m_nMaxPerHost
CString m_sBandwidthLimit
int m_bThrottleMode
BOOL m_bQueuesChanged

Protected Member Functions

BOOL IsNotLimited (LPCTSTR pText)
virtual BOOL OnInitDialog ()
afx_msg void OnSelChangeAgentList ()
afx_msg void OnEditChangeAgentList ()
afx_msg void OnAgentAdd ()
afx_msg void OnAgentRemove ()
afx_msg void OnItemChangedQueues (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnQueueNew ()
afx_msg void OnQueueEdit ()
afx_msg void OnQueueDelete ()
afx_msg void OnDblClkQueues (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnQueueDrop (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnShowWindow (BOOL bShow, UINT nStatus)

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
IDD 

Definition at line 39 of file PageSettingsUploads.h.


Constructor & Destructor Documentation

CUploadsSettingsPage::CUploadsSettingsPage  ) 
 

Definition at line 57 of file PageSettingsUploads.cpp.

CUploadsSettingsPage::~CUploadsSettingsPage  )  [virtual]
 

Definition at line 66 of file PageSettingsUploads.cpp.


Member Function Documentation

void CUploadsSettingsPage::DoDataExchange CDataExchange *  pDX  )  [virtual]
 

Reimplemented from CSettingsPage.

Definition at line 70 of file PageSettingsUploads.cpp.

References CSettingsPage::DoDataExchange(), IDC_AGENT_ADD, IDC_AGENT_LIST, IDC_AGENT_REMOVE, IDC_HUB_UNSHARE, IDC_MAX_HOST, IDC_MAX_HOST_SPIN, IDC_QUEUE_DELETE, IDC_QUEUE_EDIT, IDC_QUEUES, IDC_SHARE_PARTIALS, IDC_SHARE_PREVIEW, IDC_THROTTLE_MODE, IDC_UPLOADS_BANDWIDTH_LIMIT, m_bHubUnshare, m_bSharePartials, m_bSharePreviews, m_bThrottleMode, m_nMaxPerHost, m_sBandwidthLimit, m_wndAgentAdd, m_wndAgentList, m_wndAgentRemove, m_wndBandwidthLimit, m_wndMaxPerHost, m_wndQueueDelete, m_wndQueueEdit, and m_wndQueues.

BOOL CUploadsSettingsPage::IsNotLimited LPCTSTR  pText  )  [protected]
 

Definition at line 458 of file PageSettingsUploads.cpp.

References _tcsistr(), and NULL.

Referenced by OnKillActive().

void CUploadsSettingsPage::OnAgentAdd  )  [protected]
 

Definition at line 239 of file PageSettingsUploads.cpp.

References m_wndAgentList.

void CUploadsSettingsPage::OnAgentRemove  )  [protected]
 

Definition at line 256 of file PageSettingsUploads.cpp.

References m_wndAgentList, and m_wndAgentRemove.

void CUploadsSettingsPage::OnDblClkQueues NMHDR *  pNMHDR,
LRESULT *  pResult
[protected]
 

Definition at line 271 of file PageSettingsUploads.cpp.

References IDC_QUEUE_EDIT.

void CUploadsSettingsPage::OnEditChangeAgentList  )  [protected]
 

Definition at line 234 of file PageSettingsUploads.cpp.

References m_wndAgentAdd, and m_wndAgentList.

BOOL CUploadsSettingsPage::OnInitDialog  )  [protected, virtual]
 

Reimplemented from CSettingsPage.

Definition at line 97 of file PageSettingsUploads.cpp.

References CSettings::Bandwidth, CSettings::sUploads::BlockAgents, CoolInterface, CSettings::sUploads::HubUnshare, LVS_EX_LABELTIP, m_bHubUnshare, m_bQueuesChanged, m_bSharePartials, m_bSharePreviews, m_bThrottleMode, m_nMaxPerHost, CCoolInterface::m_pImages, m_sBandwidthLimit, m_wndAgentAdd, m_wndAgentList, m_wndAgentRemove, m_wndMaxPerHost, m_wndQueueDelete, m_wndQueueEdit, m_wndQueues, CSettings::sUploads::MaxPerHost, CSettingsPage::OnInitDialog(), Settings, CSettings::sUploads::SharePartials, CSettings::sUploads::SharePreviews, Skin, CSettings::SmartVolume(), CLiveList::Sort(), CSettings::sUploads::ThrottleMode, CSkin::Translate(), UpdateQueues(), CSettings::sBandwidth::Uploads, and CSettings::Uploads.

void CUploadsSettingsPage::OnItemChangedQueues NMHDR *  pNMHDR,
LRESULT *  pResult
[protected]
 

Definition at line 263 of file PageSettingsUploads.cpp.

References m_wndQueueDelete, m_wndQueueEdit, and m_wndQueues.

BOOL CUploadsSettingsPage::OnKillActive  )  [virtual]
 

Reimplemented from CSettingsPage.

Definition at line 348 of file PageSettingsUploads.cpp.

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

void CUploadsSettingsPage::OnOK  )  [virtual]
 

Reimplemented from CSettingsPage.

Definition at line 364 of file PageSettingsUploads.cpp.

References CSettings::Bandwidth, CSettings::sUploads::BlockAgents, CSettings::Connection, CUploadQueues::CreateDefault(), CSettings::sBandwidth::Downloads, CUploadQueues::GetCount(), CSettings::sUploads::HubUnshare, CSettings::sConnection::InSpeed, LibraryDictionary, CSettings::Live, m_bHubUnshare, m_bQueuesChanged, m_bSharePartials, m_bSharePreviews, m_bThrottleMode, m_nMaxPerHost, m_sBandwidthLimit, m_wndAgentList, CSettings::sUploads::MaxPerHost, CSettings::sConnection::OutSpeed, CSettings::ParseVolume(), CLibraryDictionary::RebuildHashTable(), Settings, CSettings::sUploads::SharePartials, CSettings::sUploads::SharePreviews, CHelpDlg::Show(), CSettings::sUploads::ThrottleMode, UpdateQueues(), CSettings::sLive::UploadLimitWarning, UploadQueues, CSettings::Uploads, CSettings::sBandwidth::Uploads, and CUploadQueues::Validate().

void CUploadsSettingsPage::OnQueueDelete  )  [protected]
 

Definition at line 307 of file PageSettingsUploads.cpp.

References CUploadQueues::Delete(), m_bQueuesChanged, m_wndQueues, CUploadQueues::Save(), UpdateQueues(), and UploadQueues.

void CUploadsSettingsPage::OnQueueDrop NMHDR *  pNMHDR,
LRESULT *  pResult
[protected]
 

Definition at line 320 of file PageSettingsUploads.cpp.

References CUploadQueues::Check(), CTransfers::m_pSection, m_wndQueues, NULL, CUploadQueues::Reorder(), CUploadQueues::Save(), Transfers, UpdateQueues(), and UploadQueues.

void CUploadsSettingsPage::OnQueueEdit  )  [protected]
 

Definition at line 292 of file PageSettingsUploads.cpp.

References m_bQueuesChanged, m_wndQueues, CUploadQueues::Save(), UpdateQueues(), and UploadQueues.

void CUploadsSettingsPage::OnQueueNew  )  [protected]
 

Definition at line 277 of file PageSettingsUploads.cpp.

References CUploadQueues::Create(), CUploadQueues::Delete(), IDS_UPLOAD_QUEUE_NEW, LoadString(), m_bQueuesChanged, CUploadQueues::Save(), UpdateQueues(), and UploadQueues.

void CUploadsSettingsPage::OnSelChangeAgentList  )  [protected]
 

Definition at line 229 of file PageSettingsUploads.cpp.

References m_wndAgentList, and m_wndAgentRemove.

BOOL CUploadsSettingsPage::OnSetActive  )  [virtual]
 

Reimplemented from CSettingsPage.

Definition at line 165 of file PageSettingsUploads.cpp.

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

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

Definition at line 435 of file PageSettingsUploads.cpp.

References CSettings::Connection, m_wndBandwidthLimit, CSettings::sConnection::OutSpeed, Settings, CSettings::SmartVolume(), and UpdateQueues().

void CUploadsSettingsPage::UpdateQueues  ) 
 

Definition at line 171 of file PageSettingsUploads.cpp.

References CLiveList::Add(), CLiveList::Apply(), CSettings::Connection, CoolInterface, CSettings::eDonkey, CSettings::seDonkey::EnableAlways, CSettings::seDonkey::EnableToday, CLiveItem::Format(), CSettings::General, CUploadQueue::GetCriteriaString(), CUploadQueues::GetIterator(), CUploadQueues::GetNext(), CUploadQueues::GetTotalBandwidthPoints(), GUI_BASIC, CSettings::sGeneral::GUIMode, ID_SYSTEM_CLEAR, ID_VIEW_UPLOADS, CCoolInterface::ImageForID(), CUploadQueue::m_bEnable, CUploadQueue::m_nBandwidthPoints, CLiveItem::m_nImage, CUploadQueue::m_nMaxTransfers, CUploadQueue::m_nMinTransfers, CUploadQueue::m_nProtocols, CUploadQueues::m_pSection, m_sBandwidthLimit, CUploadQueue::m_sName, m_wndQueues, CSettings::sConnection::OutSpeed, CSettings::ParseVolume(), PROTOCOL_ED2K, CSettings::sConnection::RequireForTransfers, CLiveItem::Set(), Settings, CSettings::SmartVolume(), and UploadQueues.

Referenced by OnInitDialog(), OnOK(), OnQueueDelete(), OnQueueDrop(), OnQueueEdit(), OnQueueNew(), OnSetActive(), and OnShowWindow().


Member Data Documentation

BOOL CUploadsSettingsPage::m_bHubUnshare
 

Definition at line 52 of file PageSettingsUploads.h.

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

BOOL CUploadsSettingsPage::m_bQueuesChanged
 

Definition at line 60 of file PageSettingsUploads.h.

Referenced by OnInitDialog(), OnOK(), OnQueueDelete(), OnQueueEdit(), and OnQueueNew().

BOOL CUploadsSettingsPage::m_bSharePartials
 

Definition at line 51 of file PageSettingsUploads.h.

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

BOOL CUploadsSettingsPage::m_bSharePreviews
 

Definition at line 53 of file PageSettingsUploads.h.

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

int CUploadsSettingsPage::m_bThrottleMode
 

Definition at line 56 of file PageSettingsUploads.h.

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

DWORD CUploadsSettingsPage::m_nMaxPerHost
 

Definition at line 54 of file PageSettingsUploads.h.

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

CString CUploadsSettingsPage::m_sBandwidthLimit
 

Definition at line 55 of file PageSettingsUploads.h.

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

CButton CUploadsSettingsPage::m_wndAgentAdd
 

Definition at line 43 of file PageSettingsUploads.h.

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

CComboBox CUploadsSettingsPage::m_wndAgentList
 

Definition at line 42 of file PageSettingsUploads.h.

Referenced by DoDataExchange(), OnAgentAdd(), OnAgentRemove(), OnEditChangeAgentList(), OnInitDialog(), OnOK(), and OnSelChangeAgentList().

CButton CUploadsSettingsPage::m_wndAgentRemove
 

Definition at line 44 of file PageSettingsUploads.h.

Referenced by DoDataExchange(), OnAgentRemove(), OnInitDialog(), and OnSelChangeAgentList().

CComboBox CUploadsSettingsPage::m_wndBandwidthLimit
 

Definition at line 45 of file PageSettingsUploads.h.

Referenced by DoDataExchange(), and OnShowWindow().

CSpinButtonCtrl CUploadsSettingsPage::m_wndMaxPerHost
 

Definition at line 41 of file PageSettingsUploads.h.

Referenced by DoDataExchange(), and OnInitDialog().

CButton CUploadsSettingsPage::m_wndQueueDelete
 

Definition at line 47 of file PageSettingsUploads.h.

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

CButton CUploadsSettingsPage::m_wndQueueEdit
 

Definition at line 48 of file PageSettingsUploads.h.

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

CDragListCtrl CUploadsSettingsPage::m_wndQueues
 

Definition at line 46 of file PageSettingsUploads.h.

Referenced by DoDataExchange(), OnInitDialog(), OnItemChangedQueues(), OnQueueDelete(), OnQueueDrop(), OnQueueEdit(), and UpdateQueues().


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