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

WndPacket.h

Go to the documentation of this file.
00001 //
00002 // WndPacket.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_WNDPACKET_H__83132A9A_A3A0_4850_A3D9_DCF825D2F273__INCLUDED_)
00023 #define AFX_WNDPACKET_H__83132A9A_A3A0_4850_A3D9_DCF825D2F273__INCLUDED_
00024 
00025 #pragma once
00026 
00027 #include "WndPanel.h"
00028 
00029 class CNeighbour;
00030 class CPacket;
00031 class CCoolMenu;
00032 
00033 
00034 class CPacketWnd : public CPanelWnd
00035 {
00036 // Construction
00037 public:
00038         CPacketWnd(CChildWnd* pOwner = NULL);
00039         virtual ~CPacketWnd();
00040 
00041         DECLARE_SERIAL(CPacketWnd)
00042 
00043 // Attributes
00044 public:
00045         CChildWnd*              m_pOwner;
00046         DWORD                   m_nInputFilter;
00047         DWORD                   m_nOutputFilter;
00048         BOOL                    m_bTypeG1[16];
00049         BOOL                    m_bTypeG2[64];
00050         BOOL                    m_bPaused;
00051 protected:
00052         CListCtrl                       m_wndList;
00053         CLiveListSizer          m_pSizer;
00054         CFont                           m_pFont;
00055         CCoolMenu*                      m_pCoolMenu;
00056         CPtrList                        m_pQueue;
00057         CCriticalSection        m_pSection;
00058 
00059         static LPCSTR m_pszG2[];
00060 
00061 // Operations
00062 public:
00063         void            Process(const CNeighbour* pNeighbour, const IN_ADDR* pUDP, BOOL bOutgoing, const CPacket* pPacket);
00064         void            OnSkinChange();
00065 protected:
00066         void            AddNeighbour(CMenu* pMenus, int nGroup, UINT nID, DWORD nTarget, LPCTSTR pszText);
00067 
00068 // Overrides
00069 public:
00070         //{{AFX_VIRTUAL(CPacketWnd)
00071         //}}AFX_VIRTUAL
00072 
00073 // Implementation
00074 protected:
00075         //{{AFX_MSG(CPacketWnd)
00076         afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00077         afx_msg void OnSize(UINT nType, int cx, int cy);
00078         afx_msg void OnCustomDrawList(NMHDR* pNMHDR, LRESULT* pResult);
00079         afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
00080         afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct);
00081         afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
00082         afx_msg void OnUpdateSystemClear(CCmdUI* pCmdUI);
00083         afx_msg void OnDestroy();
00084         afx_msg void OnTimer(UINT nIDEvent);
00085         //}}AFX_MSG
00086         afx_msg void OnUpdateBlocker(CCmdUI* pCmdUI);
00087         DECLARE_MESSAGE_MAP()
00088 
00089 };
00090 
00091 //{{AFX_INSERT_LOCATION}}
00092 
00093 #define IDC_PACKETS             100
00094 
00095 #endif // !defined(AFX_WNDPACKET_H__83132A9A_A3A0_4850_A3D9_DCF825D2F273__INCLUDED_)

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