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

WndHostCache.h

Go to the documentation of this file.
00001 //
00002 // WndHostCache.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 #if !defined(AFX_WNDHOSTCACHE_H__CF02C3BA_2D52_49F3_85C1_07365B714B3D__INCLUDED_)
00023 #define AFX_WNDHOSTCACHE_H__CF02C3BA_2D52_49F3_85C1_07365B714B3D__INCLUDED_
00024 
00025 #pragma once
00026 
00027 #include "WndPanel.h"
00028 
00029 class CHostCacheHost;
00030 
00031 
00032 class CHostCacheWnd : public CPanelWnd
00033 {
00034 public:
00035         CHostCacheWnd();
00036         virtual ~CHostCacheWnd();
00037 
00038         DECLARE_SERIAL(CHostCacheWnd)
00039 
00040 // Attributes
00041 public:
00042         PROTOCOLID              m_nMode;
00043         BOOL                    m_bAllowUpdates;
00044 protected:
00045         CCoolBarCtrl    m_wndToolBar;
00046         CListCtrl               m_wndList;
00047         CLiveListSizer  m_pSizer;
00048         CImageList              m_gdiImageList;
00049         DWORD                   m_nCookie;
00050         DWORD                   tLastUpdate;
00051 
00052 // Operations
00053 public:
00054         void                    Update(BOOL bForce = FALSE);
00055         CHostCacheHost* GetItem(int nItem);
00056         virtual void    OnSkinChange();
00057         
00058 // Overrides
00059 public:
00060         //{{AFX_VIRTUAL(CHostCacheWnd)
00061         public:
00062         virtual BOOL PreTranslateMessage(MSG* pMsg);
00063         //}}AFX_VIRTUAL
00064 
00065 // Implementation
00066 protected:
00067         //{{AFX_MSG(CHostCacheWnd)
00068         afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00069         afx_msg void OnSize(UINT nType, int cx, int cy);
00070         afx_msg void OnCustomDrawList(NMHDR* pNMHDR, LRESULT* pResult);
00071         afx_msg void OnDblClkList(NMHDR* pNMHDR, LRESULT* pResult);
00072         afx_msg void OnSortList(NMHDR* pNotifyStruct, LRESULT *pResult);
00073         afx_msg void OnTimer(UINT nIDEvent);
00074         afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
00075         afx_msg void OnNcMouseMove(UINT nHitTest, CPoint point);
00076         afx_msg void OnUpdateHostCacheConnect(CCmdUI* pCmdUI);
00077         afx_msg void OnHostCacheConnect();
00078         afx_msg void OnUpdateHostCacheDisconnect(CCmdUI* pCmdUI);
00079         afx_msg void OnHostCacheDisconnect();
00080         afx_msg void OnUpdateHostCacheRemove(CCmdUI* pCmdUI);
00081         afx_msg void OnHostCacheRemove();
00082         afx_msg void OnDestroy();
00083         afx_msg void OnUpdateHostcacheG2Horizon(CCmdUI* pCmdUI);
00084         afx_msg void OnHostcacheG2Horizon();
00085         afx_msg void OnUpdateHostcacheG2Cache(CCmdUI* pCmdUI);
00086         afx_msg void OnHostcacheG2Cache();
00087         afx_msg void OnUpdateHostcacheG1Cache(CCmdUI* pCmdUI);
00088         afx_msg void OnHostcacheG1Cache();
00089         afx_msg void OnUpdateHostcacheEd2kCache(CCmdUI* pCmdUI);
00090         afx_msg void OnHostcacheEd2kCache();
00091         afx_msg void OnHostcacheImport();
00092         afx_msg void OnHostcacheEd2kDownload();
00093         afx_msg void OnUpdateHostcachePriority(CCmdUI* pCmdUI);
00094         afx_msg void OnHostcachePriority();
00095         //}}AFX_MSG
00096         DECLARE_MESSAGE_MAP()
00097 
00098 protected:
00099         virtual void RecalcLayout(BOOL bNotify = TRUE);
00100 };
00101 
00102 //{{AFX_INSERT_LOCATION}}
00103 
00104 #define IDC_HOSTS               100
00105 
00106 #endif // !defined(AFX_WNDHOSTCACHE_H__CF02C3BA_2D52_49F3_85C1_07365B714B3D__INCLUDED_)

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