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

CBrowseHostWnd Class Reference

#include <WndBrowseHost.h>

Inheritance diagram for CBrowseHostWnd:

CBaseMatchWnd CPanelWnd CChildWnd List of all members.

Public Member Functions

 CBrowseHostWnd (SOCKADDR_IN *pHost, GGUID *pClientID=NULL)
 CBrowseHostWnd (IN_ADDR *pAddress=NULL, WORD nPort=0, BOOL bMustPush=FALSE, GGUID *pClientID=NULL)
virtual ~CBrowseHostWnd ()
virtual void OnSkinChange ()
virtual void OnProfileReceived ()
virtual void OnBrowseHits (CQueryHit *pHits)
virtual void OnHeadPacket (CG2Packet *pPacket)
virtual void OnPhysicalTree (CG2Packet *pPacket)
virtual void OnVirtualTree (CG2Packet *pPacket)
virtual BOOL OnPush (GGUID *pClientID, CConnection *pConnection)
virtual void UpdateMessages (BOOL bActive=TRUE)
virtual BOOL OnCmdMsg (UINT nID, int nCode, void *pExtra, AFX_CMDHANDLERINFO *pHandlerInfo)

Protected Member Functions

afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnDestroy ()
afx_msg void OnContextMenu (CWnd *pWnd, CPoint point)
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnUpdateBrowseHostStop (CCmdUI *pCmdUI)
afx_msg void OnBrowseHostStop ()
afx_msg void OnBrowseHostRefresh ()
afx_msg void OnUpdateBrowseProfile (CCmdUI *pCmdUI)
afx_msg void OnBrowseProfile ()
afx_msg void OnUpdateBrowseFiles (CCmdUI *pCmdUI)
afx_msg void OnBrowseFiles ()
afx_msg void OnUpdateSearchChat (CCmdUI *pCmdUI)
afx_msg void OnSearchChat ()
afx_msg void OnSelChangeMatches ()

Protected Attributes

CHostBrowserm_pBrowser
CBrowseHeaderCtrl m_wndHeader
CBrowseProfileCtrl m_wndProfile
CBrowseFrameCtrl m_wndFrame
BOOL m_bOnFiles

Constructor & Destructor Documentation

CBrowseHostWnd::CBrowseHostWnd SOCKADDR_IN *  pHost,
GGUID pClientID = NULL
 

Definition at line 66 of file WndBrowseHost.cpp.

References IDR_BROWSEHOSTFRAME.

CBrowseHostWnd::CBrowseHostWnd IN_ADDR *  pAddress = NULL,
WORD  nPort = 0,
BOOL  bMustPush = FALSE,
GGUID pClientID = NULL
 

Definition at line 72 of file WndBrowseHost.cpp.

References CChildWnd::Create(), IDR_BROWSEHOSTFRAME, and m_pBrowser.

CBrowseHostWnd::~CBrowseHostWnd  )  [virtual]
 

Definition at line 78 of file WndBrowseHost.cpp.

References m_pBrowser.


Member Function Documentation

void CBrowseHostWnd::OnBrowseFiles  )  [protected]
 

Definition at line 206 of file WndBrowseHost.cpp.

References m_bOnFiles, m_wndFrame, and m_wndProfile.

void CBrowseHostWnd::OnBrowseHits CQueryHit pHits  )  [virtual]
 

Definition at line 338 of file WndBrowseHost.cpp.

References CMatchList::AddHits(), CBaseMatchWnd::m_bPaused, CBaseMatchWnd::m_bUpdate, CBaseMatchWnd::m_pMatches, CMatchList::m_pSection, and NULL.

Referenced by CHostBrowser::OnPacket(), and CHostBrowser::StreamHTML().

void CBrowseHostWnd::OnBrowseHostRefresh  )  [protected]
 

Definition at line 223 of file WndBrowseHost.cpp.

References CHostBrowser::Browse(), CMatchList::Clear(), CMatchCtrl::DestructiveUpdate(), CBaseMatchWnd::m_bUpdate, m_pBrowser, CBaseMatchWnd::m_pMatches, CBaseMatchWnd::m_wndList, and CHostBrowser::Stop().

void CBrowseHostWnd::OnBrowseHostStop  )  [protected]
 

Definition at line 218 of file WndBrowseHost.cpp.

References m_pBrowser, and CHostBrowser::Stop().

void CBrowseHostWnd::OnBrowseProfile  )  [protected]
 

Definition at line 194 of file WndBrowseHost.cpp.

References m_pBrowser, m_wndFrame, m_wndProfile, and CBrowseProfileCtrl::Update().

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

Reimplemented from CBaseMatchWnd.

Definition at line 141 of file WndBrowseHost.cpp.

References m_wndFrame, m_wndHeader, m_wndProfile, NULL, and CBaseMatchWnd::OnCmdMsg().

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

Reimplemented from CBaseMatchWnd.

Definition at line 177 of file WndBrowseHost.cpp.

References ID_SEARCH_DOWNLOAD, CBaseMatchWnd::m_bContextMenu, CBaseMatchWnd::OnContextMenu(), and CChildWnd::TrackPopupMenu().

int CBrowseHostWnd::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Reimplemented from CBaseMatchWnd.

Definition at line 86 of file WndBrowseHost.cpp.

References CSettings::sSearch::BlankSchemaURI, CHostBrowser::Browse(), CBrowseFrameCtrl::Create(), CBrowseProfileCtrl::Create(), CBrowseHeaderCtrl::Create(), CSchemaCache::Get(), CSchemaColumnsDlg::LoadColumns(), CChildWnd::LoadState(), m_bOnFiles, m_pBrowser, m_wndFrame, m_wndHeader, CBaseMatchWnd::m_wndList, m_wndProfile, CBaseMatchWnd::OnCreate(), OnSkinChange(), SchemaCache, CSettings::Search, CMatchCtrl::SelectSchema(), and Settings.

void CBrowseHostWnd::OnDestroy  )  [protected]
 

Reimplemented from CBaseMatchWnd.

Definition at line 112 of file WndBrowseHost.cpp.

References CSettings::sSearch::BlankSchemaURI, m_pBrowser, CMatchCtrl::m_pSchema, CSchema::m_sURI, CBaseMatchWnd::m_wndList, NULL, CBaseMatchWnd::OnDestroy(), CChildWnd::SaveState(), CSettings::Search, Settings, and CHostBrowser::Stop().

void CBrowseHostWnd::OnHeadPacket CG2Packet pPacket  )  [virtual]
 

Definition at line 351 of file WndBrowseHost.cpp.

References CBaseMatchWnd::m_bPaused, m_wndProfile, NULL, and CBrowseProfileCtrl::OnHeadPacket().

Referenced by CHostBrowser::OnPacket().

void CBrowseHostWnd::OnPhysicalTree CG2Packet pPacket  )  [virtual]
 

Definition at line 358 of file WndBrowseHost.cpp.

References CBaseMatchWnd::m_bPaused, m_wndFrame, NULL, and CBrowseFrameCtrl::OnPhysicalTree().

Referenced by CHostBrowser::OnPacket().

void CBrowseHostWnd::OnProfileReceived  )  [virtual]
 

Definition at line 325 of file WndBrowseHost.cpp.

References ID_BROWSE_PROFILE, m_bOnFiles, CBaseMatchWnd::m_bPaused, CBaseMatchWnd::m_bUpdate, m_wndProfile, and NULL.

Referenced by CHostBrowser::OnPacket(), and CHostBrowser::ReadContent().

BOOL CBrowseHostWnd::OnPush GGUID pClientID,
CConnection pConnection
[virtual]
 

Reimplemented from CChildWnd.

Definition at line 372 of file WndBrowseHost.cpp.

References m_pBrowser, NULL, and CHostBrowser::OnPush().

void CBrowseHostWnd::OnSearchChat  )  [protected]
 

Reimplemented from CBaseMatchWnd.

Definition at line 240 of file WndBrowseHost.cpp.

References ChatWindows, CHostBrowser::m_bMustPush, CHostBrowser::m_nPort, CHostBrowser::m_nProtocol, CHostBrowser::m_pAddress, m_pBrowser, CHostBrowser::m_pClientID, NULL, and CChatWindows::OpenPrivate().

void CBrowseHostWnd::OnSelChangeMatches  )  [protected]
 

Definition at line 249 of file WndBrowseHost.cpp.

References m_wndFrame, and CBrowseFrameCtrl::OnSelChangeMatches().

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

Reimplemented from CBaseMatchWnd.

Definition at line 161 of file WndBrowseHost.cpp.

References m_wndFrame, m_wndHeader, m_wndProfile, CBaseMatchWnd::m_wndToolBar, NULL, and CPanelWnd::OnSize().

void CBrowseHostWnd::OnSkinChange  )  [virtual]
 

Reimplemented from CChildWnd.

Definition at line 129 of file WndBrowseHost.cpp.

References CSkin::CreateToolBar(), m_wndFrame, m_wndHeader, m_wndProfile, CBaseMatchWnd::m_wndToolBar, CBrowseProfileCtrl::OnSkinChange(), CBrowseHeaderCtrl::OnSkinChange(), CBrowseFrameCtrl::OnSkinChange(), CChildWnd::OnSkinChange(), Skin, and UpdateMessages().

Referenced by OnCreate().

void CBrowseHostWnd::OnUpdateBrowseFiles CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 201 of file WndBrowseHost.cpp.

References CBaseMatchWnd::m_wndList.

void CBrowseHostWnd::OnUpdateBrowseHostStop CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 213 of file WndBrowseHost.cpp.

References CHostBrowser::IsBrowsing(), and m_pBrowser.

void CBrowseHostWnd::OnUpdateBrowseProfile CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 189 of file WndBrowseHost.cpp.

References m_wndProfile.

void CBrowseHostWnd::OnUpdateSearchChat CCmdUI *  pCmdUI  )  [protected]
 

Reimplemented from CBaseMatchWnd.

Definition at line 235 of file WndBrowseHost.cpp.

References CHostBrowser::m_bCanChat, and m_pBrowser.

void CBrowseHostWnd::OnVirtualTree CG2Packet pPacket  )  [virtual]
 

Definition at line 365 of file WndBrowseHost.cpp.

References CBaseMatchWnd::m_bPaused, m_wndFrame, NULL, and CBrowseFrameCtrl::OnVirtualTree().

Referenced by CHostBrowser::OnPacket().

void CBrowseHostWnd::UpdateMessages BOOL  bActive = TRUE  )  [virtual]
 

Reimplemented from CBaseMatchWnd.

Definition at line 257 of file WndBrowseHost.cpp.

References CGProfile::GetNick(), CHostBrowser::GetProgress(), CHostBrowser::hbsConnecting, CHostBrowser::hbsContent, CHostBrowser::hbsHeaders, CHostBrowser::hbsNull, CHostBrowser::hbsRequesting, IDR_BROWSEHOSTFRAME, IDS_BROWSE_CANT_CONNECT, IDS_BROWSE_CONNECTING, IDS_BROWSE_DOWNLOADING, IDS_BROWSE_NOT_SUPPORTED, IDS_BROWSE_PUSHED, IDS_BROWSE_REQUESTING, IDS_SEARCH_FILTERED, CGProfile::IsValid(), LoadString(), CHostBrowser::m_bConnect, CShareazaApp::m_bRTL, CMatchList::m_nFiles, CMatchList::m_nFilteredFiles, CMatchList::m_nFilteredHits, CHostBrowser::m_nPort, CHostBrowser::m_nState, CHostBrowser::m_pAddress, m_pBrowser, CBaseMatchWnd::m_pMatches, CHostBrowser::m_pProfile, CHostBrowser::m_tPushed, m_wndHeader, CBaseMatchWnd::m_wndList, NULL, CMatchCtrl::SetMessage(), theApp, and CBrowseHeaderCtrl::Update().

Referenced by OnSkinChange().


Member Data Documentation

BOOL CBrowseHostWnd::m_bOnFiles [protected]
 

Definition at line 49 of file WndBrowseHost.h.

Referenced by OnBrowseFiles(), OnCreate(), and OnProfileReceived().

CHostBrowser* CBrowseHostWnd::m_pBrowser [protected]
 

Definition at line 45 of file WndBrowseHost.h.

Referenced by CBrowseHostWnd(), OnBrowseHostRefresh(), OnBrowseHostStop(), OnBrowseProfile(), OnCreate(), OnDestroy(), OnPush(), OnSearchChat(), OnUpdateBrowseHostStop(), OnUpdateSearchChat(), UpdateMessages(), and ~CBrowseHostWnd().

CBrowseFrameCtrl CBrowseHostWnd::m_wndFrame [protected]
 

Definition at line 48 of file WndBrowseHost.h.

Referenced by OnBrowseFiles(), OnBrowseProfile(), OnCmdMsg(), OnCreate(), OnPhysicalTree(), OnSelChangeMatches(), OnSize(), OnSkinChange(), and OnVirtualTree().

CBrowseHeaderCtrl CBrowseHostWnd::m_wndHeader [protected]
 

Definition at line 46 of file WndBrowseHost.h.

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

CBrowseProfileCtrl CBrowseHostWnd::m_wndProfile [protected]
 

Definition at line 47 of file WndBrowseHost.h.

Referenced by OnBrowseFiles(), OnBrowseProfile(), OnCmdMsg(), OnCreate(), OnHeadPacket(), OnProfileReceived(), OnSize(), OnSkinChange(), and OnUpdateBrowseProfile().


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