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

WndBrowseHost.h

Go to the documentation of this file.
00001 //
00002 // WndBrowseHost.h
00003 //
00004 // Copyright (c) Shareaza Development Team, 2002-2005.
00005 // This file is part of SHAREAZA (www.shareaza.com)
00006 //
00007 // Shareaza is free software; you can redistribute it
00008 // and/or modify it under the terms of the GNU General Public License
00009 // as published by the Free Software Foundation; either version 2 of
00010 // the License, or (at your option) any later version.
00011 //
00012 // Shareaza is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 // GNU General Public License for more details.
00016 //
00017 // You should have received a copy of the GNU General Public License
00018 // along with Shareaza; if not, write to the Free Software
00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020 //
00021 
00022 #pragma once
00023 
00024 #include "WndBaseMatch.h"
00025 #include "CtrlBrowseHeader.h"
00026 #include "CtrlBrowseProfile.h"
00027 #include "CtrlBrowseFrame.h"
00028 
00029 class CHostBrowser;
00030 class CG2Packet;
00031 
00032 
00033 class CBrowseHostWnd : public CBaseMatchWnd
00034 {
00035 // Construction
00036 public:
00037         CBrowseHostWnd(SOCKADDR_IN* pHost, GGUID* pClientID = NULL);
00038         CBrowseHostWnd(IN_ADDR* pAddress = NULL, WORD nPort = 0, BOOL bMustPush = FALSE, GGUID* pClientID = NULL);
00039         virtual ~CBrowseHostWnd();
00040 
00041         DECLARE_DYNCREATE(CBrowseHostWnd)
00042 
00043 // Attributes
00044 protected:
00045         CHostBrowser*           m_pBrowser;
00046         CBrowseHeaderCtrl       m_wndHeader;
00047         CBrowseProfileCtrl      m_wndProfile;
00048         CBrowseFrameCtrl        m_wndFrame;
00049         BOOL                            m_bOnFiles;
00050 
00051 // Operations
00052 public:
00053         virtual void    OnSkinChange();
00054         virtual void    OnProfileReceived();
00055         virtual void    OnBrowseHits(CQueryHit* pHits);
00056         virtual void    OnHeadPacket(CG2Packet* pPacket);
00057         virtual void    OnPhysicalTree(CG2Packet* pPacket);
00058         virtual void    OnVirtualTree(CG2Packet* pPacket);
00059         virtual BOOL    OnPush(GGUID* pClientID, CConnection* pConnection);
00060         virtual void    UpdateMessages(BOOL bActive = TRUE);
00061 
00062 // Implementation
00063 public:
00064         virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
00065 protected:
00066         DECLARE_MESSAGE_MAP()
00067         afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00068         afx_msg void OnDestroy();
00069         afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
00070         afx_msg void OnSize(UINT nType, int cx, int cy);
00071         afx_msg void OnUpdateBrowseHostStop(CCmdUI* pCmdUI);
00072         afx_msg void OnBrowseHostStop();
00073         afx_msg void OnBrowseHostRefresh();
00074         afx_msg void OnUpdateBrowseProfile(CCmdUI* pCmdUI);
00075         afx_msg void OnBrowseProfile();
00076         afx_msg void OnUpdateBrowseFiles(CCmdUI* pCmdUI);
00077         afx_msg void OnBrowseFiles();
00078         afx_msg void OnUpdateSearchChat(CCmdUI* pCmdUI);
00079         afx_msg void OnSearchChat();
00080         afx_msg void OnSelChangeMatches();
00081 
00082 };

Generated on Thu Dec 15 10:39:51 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2