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

CUploadsWnd Class Reference

#include <WndUploads.h>

Inheritance diagram for CUploadsWnd:

CPanelWnd CChildWnd List of all members.

Public Member Functions

 CUploadsWnd ()
virtual ~CUploadsWnd ()
virtual void OnSkinChange ()
virtual BOOL OnCmdMsg (UINT nID, int nCode, void *pExtra, AFX_CMDHANDLERINFO *pHandlerInfo)
virtual BOOL PreTranslateMessage (MSG *pMsg)
afx_msg void OnUpdateUploadsFilterTorrent (CCmdUI *pCmdUI)
afx_msg void OnUploadsFilterTorrent ()

Public Attributes

CUploadsCtrl m_wndUploads
CCoolBarCtrl m_wndToolBar

Protected Member Functions

BOOL IsSelected (CUploadFile *pFile)
void Prepare ()
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnDestroy ()
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnTimer (UINT nIDEvent)
afx_msg void OnContextMenu (CWnd *pWnd, CPoint point)
afx_msg void OnMDIActivate (BOOL bActivate, CWnd *pActivateWnd, CWnd *pDeactivateWnd)
afx_msg void OnUpdateUploadsDisconnect (CCmdUI *pCmdUI)
afx_msg void OnUploadsDisconnect ()
afx_msg void OnUpdateUploadsLaunch (CCmdUI *pCmdUI)
afx_msg void OnUploadsLaunch ()
afx_msg void OnUpdateUploadsClear (CCmdUI *pCmdUI)
afx_msg void OnUploadsClear ()
afx_msg void OnUploadsClearCompleted ()
afx_msg void OnUpdateUploadsChat (CCmdUI *pCmdUI)
afx_msg void OnUploadsChat ()
afx_msg void OnUpdateUploadsAutoClear (CCmdUI *pCmdUI)
afx_msg void OnUploadsAutoClear ()
afx_msg void OnUpdateSecurityBan (CCmdUI *pCmdUI)
afx_msg void OnSecurityBan ()
afx_msg void OnUpdateBrowseLaunch (CCmdUI *pCmdUI)
afx_msg void OnBrowseLaunch ()
afx_msg void OnUpdateUploadsStart (CCmdUI *pCmdUI)
afx_msg void OnUploadsStart ()
afx_msg void OnUpdateEditQueue (CCmdUI *pCmdUI)
afx_msg void OnEditQueue ()
afx_msg void OnUploadsHelp ()
afx_msg void OnUploadsSettings ()
afx_msg void OnUpdateUploadsFilterAll (CCmdUI *pCmdUI)
afx_msg void OnUploadsFilterAll ()
afx_msg void OnUpdateUploadsFilterActive (CCmdUI *pCmdUI)
afx_msg void OnUploadsFilterActive ()
afx_msg void OnUpdateUploadsFilterQueued (CCmdUI *pCmdUI)
afx_msg void OnUploadsFilterQueued ()
afx_msg void OnUpdateUploadsFilterHistory (CCmdUI *pCmdUI)
afx_msg void OnUploadsFilterHistory ()
afx_msg void OnUploadsFilterMenu ()

Protected Attributes

DWORD m_tLastUpdate
DWORD m_tSel
BOOL m_bSelFile
BOOL m_bSelUpload
BOOL m_bSelActive
BOOL m_bSelQueued
BOOL m_bSelHttp
BOOL m_bSelDonkey
BOOL m_bSelSourceAcceptConnections
BOOL m_bSelSourceExtended

Constructor & Destructor Documentation

CUploadsWnd::CUploadsWnd  ) 
 

Definition at line 102 of file WndUploads.cpp.

References IDR_UPLOADSFRAME.

CUploadsWnd::~CUploadsWnd  )  [virtual]
 

Definition at line 107 of file WndUploads.cpp.


Member Function Documentation

BOOL CUploadsWnd::IsSelected CUploadFile pFile  )  [inline, protected]
 

Definition at line 246 of file WndUploads.cpp.

References CSettings::sUploads::FilterMask, NULL, PROTOCOL_BT, Settings, ULF_ACTIVE, ULF_HISTORY, ULF_QUEUED, ULF_TORRENT, and CSettings::Uploads.

Referenced by OnBrowseLaunch(), OnSecurityBan(), OnUploadsChat(), OnUploadsClear(), OnUploadsDisconnect(), OnUploadsLaunch(), OnUploadsStart(), and Prepare().

void CUploadsWnd::OnBrowseLaunch  )  [protected]
 

Definition at line 549 of file WndUploads.cpp.

References CUploadFiles::Check(), CUploadFile::GetActive(), CUploadFiles::GetIterator(), CUploadFiles::GetNext(), IsSelected(), CTransfers::m_pSection, NULL, Transfers, and UploadFiles.

BOOL CUploadsWnd::OnCmdMsg UINT  nID,
int  nCode,
void *  pExtra,
AFX_CMDHANDLERINFO *  pHandlerInfo
[virtual]
 

Reimplemented from CChildWnd.

Definition at line 145 of file WndUploads.cpp.

References m_wndToolBar, and CChildWnd::OnCmdMsg().

void CUploadsWnd::OnContextMenu CWnd *  pWnd,
CPoint  point
[protected]
 

Definition at line 211 of file WndUploads.cpp.

References CSettings::General, GUI_BASIC, CSettings::sGeneral::GUIMode, CUploadsCtrl::HitTest(), ID_UPLOADS_EDIT_QUEUE, ID_UPLOADS_HELP, ID_UPLOADS_LAUNCH, CUploadQueues::m_pHistoryQueue, CTransfers::m_pSection, CUploadQueues::m_pTorrentQueue, m_tSel, m_wndUploads, NULL, Settings, CChildWnd::TrackPopupMenu(), Transfers, and UploadQueues.

int CUploadsWnd::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Reimplemented from CPanelWnd.

Definition at line 114 of file WndUploads.cpp.

References CCoolBarCtrl::Create(), CUploadsCtrl::Create(), IDC_UPLOADS, CChildWnd::LoadState(), CTransfers::m_pSection, m_tLastUpdate, m_tSel, m_wndToolBar, m_wndUploads, NULL, CPanelWnd::OnCreate(), CCoolBarCtrl::SetSyncObject(), and Transfers.

void CUploadsWnd::OnDestroy  )  [protected]
 

Reimplemented from CChildWnd.

Definition at line 138 of file WndUploads.cpp.

References CChildWnd::OnDestroy(), and CChildWnd::SaveState().

void CUploadsWnd::OnEditQueue  )  [protected]
 

Definition at line 604 of file WndUploads.cpp.

References CUploadQueues::GetIterator(), CUploadQueues::GetNext(), CUploadQueue::m_bSelected, CTransfers::m_pSection, CSettingsManagerDlg::Run(), Transfers, and UploadQueues.

void CUploadsWnd::OnMDIActivate BOOL  bActivate,
CWnd *  pActivateWnd,
CWnd *  pDeactivateWnd
[protected]
 

Reimplemented from CChildWnd.

Definition at line 240 of file WndUploads.cpp.

References m_wndUploads, and CChildWnd::OnMDIActivate().

void CUploadsWnd::OnSecurityBan  )  [protected]
 

Definition at line 515 of file WndUploads.cpp.

References CSecurity::Ban(), banSession, CUploadFiles::Check(), CUploadFile::GetActive(), CUploadFiles::GetIterator(), CUploadFiles::GetNext(), IsSelected(), CConnection::m_pHost, CTransfers::m_pSection, NULL, CUploadTransfer::Remove(), Security, Transfers, and UploadFiles.

void CUploadsWnd::OnSize UINT  nType,
int  cx,
int  cy
[protected]
 

Reimplemented from CPanelWnd.

Definition at line 155 of file WndUploads.cpp.

References m_wndToolBar, m_wndUploads, CPanelWnd::OnSize(), and CChildWnd::SizeListAndBar().

void CUploadsWnd::OnSkinChange  )  [virtual]
 

Reimplemented from CChildWnd.

Definition at line 161 of file WndUploads.cpp.

References CSkin::CreateToolBar(), CUploadsCtrl::m_wndHeader, m_wndToolBar, m_wndUploads, CChildWnd::OnSkinChange(), Skin, and CSkin::Translate().

void CUploadsWnd::OnTimer UINT  nIDEvent  )  [protected]
 

Definition at line 168 of file WndUploads.cpp.

References CSettings::sUploads::AutoClear, CSettings::sUploads::ClearDelay, CUploads::GetCount(), CUploads::GetIterator(), CUploads::GetNext(), CChildWnd::IsActive(), CUploadTransfer::m_nState, CUploadTransfer::m_nUploaded, CTransfers::m_pSection, CConnection::m_tConnected, m_tLastUpdate, m_tSel, m_wndUploads, NULL, CUploadTransfer::Remove(), Settings, Transfers, CUploadsCtrl::Update(), CSettings::Uploads, Uploads, and upsNull.

Referenced by OnUploadsAutoClear().

void CUploadsWnd::OnUpdateBrowseLaunch CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 543 of file WndUploads.cpp.

References m_bSelHttp, m_bSelSourceExtended, and Prepare().

void CUploadsWnd::OnUpdateEditQueue CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 598 of file WndUploads.cpp.

References m_bSelFile, and Prepare().

void CUploadsWnd::OnUpdateSecurityBan CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 509 of file WndUploads.cpp.

References m_bSelUpload, and Prepare().

void CUploadsWnd::OnUpdateUploadsAutoClear CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 587 of file WndUploads.cpp.

References CSettings::sUploads::AutoClear, Settings, and CSettings::Uploads.

void CUploadsWnd::OnUpdateUploadsChat CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 471 of file WndUploads.cpp.

References CSettings::sCommunity::ChatAllNetworks, CSettings::sCommunity::ChatEnable, CSettings::Community, m_bSelDonkey, m_bSelHttp, m_bSelSourceExtended, Prepare(), and Settings.

void CUploadsWnd::OnUpdateUploadsClear CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 397 of file WndUploads.cpp.

References m_bSelFile, and Prepare().

void CUploadsWnd::OnUpdateUploadsDisconnect CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 334 of file WndUploads.cpp.

References m_bSelActive, and Prepare().

void CUploadsWnd::OnUpdateUploadsFilterActive CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 664 of file WndUploads.cpp.

References CSettings::sUploads::FilterMask, Settings, ULF_ACTIVE, and CSettings::Uploads.

void CUploadsWnd::OnUpdateUploadsFilterAll CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 653 of file WndUploads.cpp.

References CSettings::sUploads::FilterMask, Settings, ULF_ALL, and CSettings::Uploads.

void CUploadsWnd::OnUpdateUploadsFilterHistory CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 686 of file WndUploads.cpp.

References CSettings::sUploads::FilterMask, Settings, ULF_HISTORY, and CSettings::Uploads.

void CUploadsWnd::OnUpdateUploadsFilterQueued CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 675 of file WndUploads.cpp.

References CSettings::sUploads::FilterMask, Settings, ULF_QUEUED, and CSettings::Uploads.

void CUploadsWnd::OnUpdateUploadsFilterTorrent CCmdUI *  pCmdUI  ) 
 

Definition at line 697 of file WndUploads.cpp.

References CSettings::sUploads::FilterMask, Settings, ULF_TORRENT, and CSettings::Uploads.

void CUploadsWnd::OnUpdateUploadsLaunch CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 439 of file WndUploads.cpp.

References m_bSelFile, and Prepare().

void CUploadsWnd::OnUpdateUploadsStart CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 376 of file WndUploads.cpp.

References m_bSelQueued, and Prepare().

void CUploadsWnd::OnUploadsAutoClear  )  [protected]
 

Definition at line 592 of file WndUploads.cpp.

References CSettings::sUploads::AutoClear, OnTimer(), Settings, and CSettings::Uploads.

void CUploadsWnd::OnUploadsChat  )  [protected]
 

Definition at line 487 of file WndUploads.cpp.

References ChatWindows, CUploadFiles::GetIterator(), CUploadFiles::GetNext(), IsSelected(), CTransfers::m_pSection, CShareazaApp::Message(), MSG_ERROR, NULL, CChatWindows::OpenPrivate(), PROTOCOL_ED2K, PROTOCOL_G2, PROTOCOL_HTTP, theApp, Transfers, and UploadFiles.

void CUploadsWnd::OnUploadsClear  )  [protected]
 

Definition at line 403 of file WndUploads.cpp.

References CUploadFiles::Check(), CUploadFile::GetActive(), CUploadFiles::GetIterator(), CUploadFiles::GetNext(), IDS_UPLOAD_CANCEL_ED2K, IsSelected(), LoadString(), CUploadTransfer::m_nProtocol, CUploadTransfer::m_nState, CTransfers::m_pSection, CUploadTransfer::m_sFileName, NULL, PROTOCOL_ED2K, CUploadFile::Remove(), Transfers, UploadFiles, and upsNull.

Referenced by PreTranslateMessage().

void CUploadsWnd::OnUploadsClearCompleted  )  [protected]
 

Definition at line 574 of file WndUploads.cpp.

References CUploads::GetIterator(), CUploads::GetNext(), CUploadTransfer::m_nState, CTransfers::m_pSection, m_wndUploads, CUploadTransfer::Remove(), Transfers, CUploadsCtrl::Update(), Uploads, and upsNull.

void CUploadsWnd::OnUploadsDisconnect  )  [protected]
 

Definition at line 340 of file WndUploads.cpp.

References CUploads::Check(), CUploadFiles::Check(), CUploadTransfer::Close(), CUploadFile::GetActive(), CUploadFiles::GetIterator(), CUploadFiles::GetNext(), IDS_UPLOAD_CANCEL_ED2K, IsSelected(), LoadString(), CUploadTransfer::m_nProtocol, CUploadTransfer::m_nState, CTransfers::m_pSection, CUploadTransfer::m_sFileName, NULL, PROTOCOL_ED2K, Transfers, UploadFiles, Uploads, and upsNull.

void CUploadsWnd::OnUploadsFilterActive  )  [protected]
 

Definition at line 669 of file WndUploads.cpp.

References CSettings::sUploads::FilterMask, m_wndUploads, Settings, ULF_ACTIVE, CUploadsCtrl::Update(), and CSettings::Uploads.

void CUploadsWnd::OnUploadsFilterAll  )  [protected]
 

Definition at line 658 of file WndUploads.cpp.

References CSettings::sUploads::FilterMask, m_wndUploads, Settings, ULF_ALL, CUploadsCtrl::Update(), and CSettings::Uploads.

void CUploadsWnd::OnUploadsFilterHistory  )  [protected]
 

Definition at line 691 of file WndUploads.cpp.

References CSettings::sUploads::FilterMask, m_wndUploads, Settings, ULF_HISTORY, CUploadsCtrl::Update(), and CSettings::Uploads.

void CUploadsWnd::OnUploadsFilterMenu  )  [protected]
 

Definition at line 647 of file WndUploads.cpp.

References CSkin::GetMenu(), ID_UPLOADS_FILTER_MENU, m_wndToolBar, NULL, Skin, and CCoolBarCtrl::ThrowMenu().

void CUploadsWnd::OnUploadsFilterQueued  )  [protected]
 

Definition at line 680 of file WndUploads.cpp.

References CSettings::sUploads::FilterMask, m_wndUploads, Settings, ULF_QUEUED, CUploadsCtrl::Update(), and CSettings::Uploads.

void CUploadsWnd::OnUploadsFilterTorrent  ) 
 

Definition at line 702 of file WndUploads.cpp.

References CSettings::sUploads::FilterMask, m_wndUploads, Settings, ULF_TORRENT, CUploadsCtrl::Update(), and CSettings::Uploads.

void CUploadsWnd::OnUploadsHelp  )  [protected]
 

Definition at line 621 of file WndUploads.cpp.

References CHelpDlg::Show().

void CUploadsWnd::OnUploadsLaunch  )  [protected]
 

Definition at line 445 of file WndUploads.cpp.

References CUploadFiles::Check(), CFileExecutor::Execute(), CUploadFiles::GetIterator(), CUploadFiles::GetNext(), IsSelected(), CTransfers::m_pSection, CUploadFile::m_sPath, Transfers, and UploadFiles.

void CUploadsWnd::OnUploadsSettings  )  [protected]
 

Definition at line 626 of file WndUploads.cpp.

References CSettingsManagerDlg::Run().

void CUploadsWnd::OnUploadsStart  )  [protected]
 

Definition at line 382 of file WndUploads.cpp.

References CUploadFiles::GetIterator(), CUploadFiles::GetNext(), IsSelected(), CTransfers::m_pSection, NULL, Transfers, and UploadFiles.

void CUploadsWnd::Prepare  )  [protected]
 

Definition at line 282 of file WndUploads.cpp.

References CUploadFile::GetActive(), CUploadFiles::GetIterator(), CUploadFiles::GetNext(), IsSelected(), m_bSelActive, m_bSelDonkey, CUploadFile::m_bSelected, m_bSelFile, m_bSelHttp, m_bSelQueued, m_bSelSourceAcceptConnections, m_bSelSourceExtended, m_bSelUpload, CTransfers::m_pSection, m_tSel, NULL, PROTOCOL_ED2K, PROTOCOL_HTTP, Transfers, UploadFiles, and upsNull.

Referenced by OnUpdateBrowseLaunch(), OnUpdateEditQueue(), OnUpdateSecurityBan(), OnUpdateUploadsChat(), OnUpdateUploadsClear(), OnUpdateUploadsDisconnect(), OnUpdateUploadsLaunch(), and OnUpdateUploadsStart().

BOOL CUploadsWnd::PreTranslateMessage MSG *  pMsg  )  [virtual]
 

Definition at line 631 of file WndUploads.cpp.

References CChildWnd::GetManager(), and OnUploadsClear().


Member Data Documentation

BOOL CUploadsWnd::m_bSelActive [protected]
 

Definition at line 57 of file WndUploads.h.

Referenced by OnUpdateUploadsDisconnect(), and Prepare().

BOOL CUploadsWnd::m_bSelDonkey [protected]
 

Definition at line 60 of file WndUploads.h.

Referenced by OnUpdateUploadsChat(), and Prepare().

BOOL CUploadsWnd::m_bSelFile [protected]
 

Definition at line 55 of file WndUploads.h.

Referenced by OnUpdateEditQueue(), OnUpdateUploadsClear(), OnUpdateUploadsLaunch(), and Prepare().

BOOL CUploadsWnd::m_bSelHttp [protected]
 

Definition at line 59 of file WndUploads.h.

Referenced by OnUpdateBrowseLaunch(), OnUpdateUploadsChat(), and Prepare().

BOOL CUploadsWnd::m_bSelQueued [protected]
 

Definition at line 58 of file WndUploads.h.

Referenced by OnUpdateUploadsStart(), and Prepare().

BOOL CUploadsWnd::m_bSelSourceAcceptConnections [protected]
 

Definition at line 61 of file WndUploads.h.

Referenced by Prepare().

BOOL CUploadsWnd::m_bSelSourceExtended [protected]
 

Definition at line 62 of file WndUploads.h.

Referenced by OnUpdateBrowseLaunch(), OnUpdateUploadsChat(), and Prepare().

BOOL CUploadsWnd::m_bSelUpload [protected]
 

Definition at line 56 of file WndUploads.h.

Referenced by OnUpdateSecurityBan(), and Prepare().

DWORD CUploadsWnd::m_tLastUpdate [protected]
 

Definition at line 52 of file WndUploads.h.

Referenced by OnCreate(), and OnTimer().

DWORD CUploadsWnd::m_tSel [protected]
 

Definition at line 54 of file WndUploads.h.

Referenced by OnContextMenu(), OnCreate(), OnTimer(), and Prepare().

CCoolBarCtrl CUploadsWnd::m_wndToolBar
 

Definition at line 50 of file WndUploads.h.

Referenced by OnCmdMsg(), OnCreate(), OnSize(), OnSkinChange(), and OnUploadsFilterMenu().

CUploadsCtrl CUploadsWnd::m_wndUploads
 

Definition at line 49 of file WndUploads.h.

Referenced by OnContextMenu(), OnCreate(), OnMDIActivate(), OnSize(), OnSkinChange(), OnTimer(), OnUploadsClearCompleted(), OnUploadsFilterActive(), OnUploadsFilterAll(), OnUploadsFilterHistory(), OnUploadsFilterQueued(), and OnUploadsFilterTorrent().


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