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

CDiscoveryWnd Class Reference

#include <WndDiscovery.h>

Inheritance diagram for CDiscoveryWnd:

CPanelWnd CChildWnd List of all members.

Public Member Functions

 CDiscoveryWnd ()
virtual ~CDiscoveryWnd ()
void Update ()
CDiscoveryServiceGetItem (int nItem)
void OnSkinChange ()

Public Attributes

CListCtrl m_wndList
CImageList m_gdiImageList
CLiveListSizer m_pSizer
BOOL m_bShowGnutella
BOOL m_bShowWebCache
BOOL m_bShowServerMet
BOOL m_bShowBlocked

Protected Member Functions

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 OnDblClkList (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnSortList (NMHDR *pNotifyStruct, LRESULT *pResult)
afx_msg void OnUpdateDiscoveryQuery (CCmdUI *pCmdUI)
afx_msg void OnDiscoveryQuery ()
afx_msg void OnUpdateDiscoveryRemove (CCmdUI *pCmdUI)
afx_msg void OnDiscoveryRemove ()
afx_msg void OnDiscoveryAdd ()
afx_msg void OnDiscoveryEdit ()
afx_msg void OnUpdateDiscoveryEdit (CCmdUI *pCmdUI)
afx_msg void OnContextMenu (CWnd *pWnd, CPoint point)
afx_msg void OnUpdateDiscoveryGnutella (CCmdUI *pCmdUI)
afx_msg void OnDiscoveryGnutella ()
afx_msg void OnUpdateDiscoveryWebcache (CCmdUI *pCmdUI)
afx_msg void OnDiscoveryWebcache ()
afx_msg void OnUpdateDiscoveryServerMet (CCmdUI *pCmdUI)
afx_msg void OnDiscoveryServerMet ()
afx_msg void OnUpdateDiscoveryBlocked (CCmdUI *pCmdUI)
afx_msg void OnDiscoveryBlocked ()
afx_msg void OnUpdateDiscoveryAdvertise (CCmdUI *pCmdUI)
afx_msg void OnDiscoveryAdvertise ()
afx_msg void OnUpdateDiscoveryBrowse (CCmdUI *pCmdUI)
afx_msg void OnDiscoveryBrowse ()

Constructor & Destructor Documentation

CDiscoveryWnd::CDiscoveryWnd  ) 
 

Definition at line 75 of file WndDiscovery.cpp.

References IDR_DISCOVERYFRAME.

CDiscoveryWnd::~CDiscoveryWnd  )  [virtual]
 

Definition at line 80 of file WndDiscovery.cpp.


Member Function Documentation

CDiscoveryService * CDiscoveryWnd::GetItem int  nItem  ) 
 

Definition at line 237 of file WndDiscovery.cpp.

References CDiscoveryServices::Check(), DiscoveryServices, m_wndList, and NULL.

Referenced by OnDiscoveryAdvertise(), OnDiscoveryBrowse(), OnDiscoveryEdit(), OnDiscoveryQuery(), OnDiscoveryRemove(), OnUpdateDiscoveryAdvertise(), and OnUpdateDiscoveryQuery().

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

Definition at line 279 of file WndDiscovery.cpp.

References ID_DISCOVERY_EDIT, and CChildWnd::TrackPopupMenu().

int CDiscoveryWnd::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Reimplemented from CPanelWnd.

Definition at line 87 of file WndDiscovery.cpp.

References CLiveListSizer::Attach(), CreateMirroredIcon(), IDC_SERVICES, IDI_DISCOVERY_BLUE, IDI_DISCOVERY_GRAY, IDI_FIREWALLED, IDI_WEB_URL, IDR_DISCOVERYFRAME, IDR_HOSTCACHEFRAME, CChildWnd::LoadState(), LVS_EX_LABELTIP, CShareazaApp::m_bRTL, m_bShowBlocked, m_bShowGnutella, m_bShowServerMet, m_bShowWebCache, CShareazaApp::m_gdiFont, m_gdiImageList, m_pSizer, m_wndList, CPanelWnd::OnCreate(), theApp, and Update().

void CDiscoveryWnd::OnDblClkList NMHDR *  pNMHDR,
LRESULT *  pResult
[protected]
 

Definition at line 266 of file WndDiscovery.cpp.

References OnDiscoveryEdit().

void CDiscoveryWnd::OnDestroy  )  [protected]
 

Reimplemented from CChildWnd.

Definition at line 137 of file WndDiscovery.cpp.

References DiscoveryServices, CNetwork::m_pSection, m_wndList, Network, CChildWnd::OnDestroy(), CDiscoveryServices::Save(), CSettings::SaveList(), CChildWnd::SaveState(), and Settings.

void CDiscoveryWnd::OnDiscoveryAdd  )  [protected]
 

Definition at line 449 of file WndDiscovery.cpp.

References Update().

void CDiscoveryWnd::OnDiscoveryAdvertise  )  [protected]
 

Definition at line 331 of file WndDiscovery.cpp.

References GetItem(), CNetwork::m_pSection, m_wndList, Network, and CDiscoveryServices::wcmSubmit.

void CDiscoveryWnd::OnDiscoveryBlocked  )  [protected]
 

Definition at line 443 of file WndDiscovery.cpp.

References m_bShowBlocked, and Update().

void CDiscoveryWnd::OnDiscoveryBrowse  )  [protected]
 

Definition at line 348 of file WndDiscovery.cpp.

References CDiscoveryService::dsWebCache, GetItem(), CDiscoveryService::m_nType, CNetwork::m_pSection, CDiscoveryService::m_sAddress, m_wndList, Network, and NULL.

void CDiscoveryWnd::OnDiscoveryEdit  )  [protected]
 

Definition at line 391 of file WndDiscovery.cpp.

References GetItem(), CNetwork::m_pSection, m_wndList, Network, NULL, and Update().

Referenced by OnDblClkList().

void CDiscoveryWnd::OnDiscoveryGnutella  )  [protected]
 

Definition at line 410 of file WndDiscovery.cpp.

References m_bShowGnutella, and Update().

void CDiscoveryWnd::OnDiscoveryQuery  )  [protected]
 

Definition at line 299 of file WndDiscovery.cpp.

References CDiscoveryService::Execute(), GetItem(), CNetwork::m_pSection, m_wndList, Network, NULL, CDiscoveryServices::wcmCaches, and CDiscoveryServices::wcmHosts.

void CDiscoveryWnd::OnDiscoveryRemove  )  [protected]
 

Definition at line 371 of file WndDiscovery.cpp.

References CDiscoveryServices::CheckMinimumServices(), DiscoveryServices, GetItem(), CNetwork::m_pSection, m_wndList, Network, CDiscoveryService::Remove(), and Update().

void CDiscoveryWnd::OnDiscoveryServerMet  )  [protected]
 

Definition at line 432 of file WndDiscovery.cpp.

References m_bShowServerMet, and Update().

void CDiscoveryWnd::OnDiscoveryWebcache  )  [protected]
 

Definition at line 421 of file WndDiscovery.cpp.

References m_bShowWebCache, and Update().

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

Reimplemented from CPanelWnd.

Definition at line 254 of file WndDiscovery.cpp.

References m_pSizer, m_wndList, NULL, CPanelWnd::OnSize(), and CLiveListSizer::Resize().

void CDiscoveryWnd::OnSkinChange  )  [virtual]
 

Reimplemented from CChildWnd.

Definition at line 248 of file WndDiscovery.cpp.

References CSettings::LoadList(), m_wndList, CChildWnd::OnSkinChange(), and Settings.

void CDiscoveryWnd::OnSortList NMHDR *  pNotifyStruct,
LRESULT *  pResult
[protected]
 

Definition at line 272 of file WndDiscovery.cpp.

References m_wndList, and CLiveList::Sort().

void CDiscoveryWnd::OnTimer UINT  nIDEvent  )  [protected]
 

Definition at line 261 of file WndDiscovery.cpp.

References CChildWnd::IsPartiallyVisible(), and Update().

void CDiscoveryWnd::OnUpdateDiscoveryAdvertise CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 316 of file WndDiscovery.cpp.

References CDiscoveryService::dsWebCache, GetItem(), CDiscoveryService::m_nType, CNetwork::m_pSection, m_wndList, and Network.

Referenced by OnUpdateDiscoveryBrowse().

void CDiscoveryWnd::OnUpdateDiscoveryBlocked CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 438 of file WndDiscovery.cpp.

References m_bShowBlocked.

void CDiscoveryWnd::OnUpdateDiscoveryBrowse CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 343 of file WndDiscovery.cpp.

References OnUpdateDiscoveryAdvertise().

void CDiscoveryWnd::OnUpdateDiscoveryEdit CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 386 of file WndDiscovery.cpp.

References m_wndList.

void CDiscoveryWnd::OnUpdateDiscoveryGnutella CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 405 of file WndDiscovery.cpp.

References m_bShowGnutella.

void CDiscoveryWnd::OnUpdateDiscoveryQuery CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 284 of file WndDiscovery.cpp.

References CDiscoveryService::dsBlocked, GetItem(), CDiscoveryService::m_nType, and m_wndList.

void CDiscoveryWnd::OnUpdateDiscoveryRemove CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 366 of file WndDiscovery.cpp.

References m_wndList.

void CDiscoveryWnd::OnUpdateDiscoveryServerMet CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 427 of file WndDiscovery.cpp.

References m_bShowServerMet.

void CDiscoveryWnd::OnUpdateDiscoveryWebcache CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 416 of file WndDiscovery.cpp.

References m_bShowWebCache.

void CDiscoveryWnd::Update  ) 
 

Definition at line 151 of file WndDiscovery.cpp.

References CLiveList::Add(), CLiveList::Apply(), DiscoveryServices, CDiscoveryService::dsBlocked, CDiscoveryService::dsGnutella, CDiscoveryService::dsServerMet, CDiscoveryService::dsWebCache, CLiveItem::Format(), CDiscoveryServices::GetIterator(), CDiscoveryServices::GetNext(), m_bShowBlocked, m_bShowGnutella, m_bShowServerMet, m_bShowWebCache, CDiscoveryService::m_nAccesses, CDiscoveryService::m_nFailures, CDiscoveryService::m_nHosts, CLiveItem::m_nImage, CDiscoveryService::m_nType, CDiscoveryService::m_nUpdates, CNetwork::m_pSection, CDiscoveryService::m_sAddress, CDiscoveryService::m_tAccessed, m_wndList, Network, NULL, and CLiveItem::Set().

Referenced by OnCreate(), OnDiscoveryAdd(), OnDiscoveryBlocked(), OnDiscoveryEdit(), OnDiscoveryGnutella(), OnDiscoveryRemove(), OnDiscoveryServerMet(), OnDiscoveryWebcache(), and OnTimer().


Member Data Documentation

BOOL CDiscoveryWnd::m_bShowBlocked
 

Definition at line 49 of file WndDiscovery.h.

Referenced by OnCreate(), OnDiscoveryBlocked(), OnUpdateDiscoveryBlocked(), and Update().

BOOL CDiscoveryWnd::m_bShowGnutella
 

Definition at line 46 of file WndDiscovery.h.

Referenced by OnCreate(), OnDiscoveryGnutella(), OnUpdateDiscoveryGnutella(), and Update().

BOOL CDiscoveryWnd::m_bShowServerMet
 

Definition at line 48 of file WndDiscovery.h.

Referenced by OnCreate(), OnDiscoveryServerMet(), OnUpdateDiscoveryServerMet(), and Update().

BOOL CDiscoveryWnd::m_bShowWebCache
 

Definition at line 47 of file WndDiscovery.h.

Referenced by OnCreate(), OnDiscoveryWebcache(), OnUpdateDiscoveryWebcache(), and Update().

CImageList CDiscoveryWnd::m_gdiImageList
 

Definition at line 44 of file WndDiscovery.h.

Referenced by OnCreate().

CLiveListSizer CDiscoveryWnd::m_pSizer
 

Definition at line 45 of file WndDiscovery.h.

Referenced by OnCreate(), and OnSize().

CListCtrl CDiscoveryWnd::m_wndList
 

Definition at line 43 of file WndDiscovery.h.

Referenced by GetItem(), OnCreate(), OnDestroy(), OnDiscoveryAdvertise(), OnDiscoveryBrowse(), OnDiscoveryEdit(), OnDiscoveryQuery(), OnDiscoveryRemove(), OnSize(), OnSkinChange(), OnSortList(), OnUpdateDiscoveryAdvertise(), OnUpdateDiscoveryEdit(), OnUpdateDiscoveryQuery(), OnUpdateDiscoveryRemove(), and Update().


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