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

CPacketWnd Class Reference

#include <WndPacket.h>

Inheritance diagram for CPacketWnd:

CPanelWnd CChildWnd List of all members.

Public Member Functions

 CPacketWnd (CChildWnd *pOwner=NULL)
virtual ~CPacketWnd ()
void Process (const CNeighbour *pNeighbour, const IN_ADDR *pUDP, BOOL bOutgoing, const CPacket *pPacket)
void OnSkinChange ()

Public Attributes

CChildWndm_pOwner
DWORD m_nInputFilter
DWORD m_nOutputFilter
BOOL m_bTypeG1 [16]
BOOL m_bTypeG2 [64]
BOOL m_bPaused

Protected Member Functions

void AddNeighbour (CMenu *pMenus, int nGroup, UINT nID, DWORD nTarget, LPCTSTR pszText)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnCustomDrawList (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnContextMenu (CWnd *pWnd, CPoint point)
afx_msg void OnMeasureItem (int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct)
afx_msg void OnDrawItem (int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct)
afx_msg void OnUpdateSystemClear (CCmdUI *pCmdUI)
afx_msg void OnDestroy ()
afx_msg void OnTimer (UINT nIDEvent)
afx_msg void OnUpdateBlocker (CCmdUI *pCmdUI)

Protected Attributes

CListCtrl m_wndList
CLiveListSizer m_pSizer
CFont m_pFont
CCoolMenum_pCoolMenu
CPtrList m_pQueue
CCriticalSection m_pSection

Static Protected Attributes

static LPCSTR m_pszG2 [] = { "PI", "PO", "LNI", "KHL", "HAW", "QKR", "QKA", "Q1", "QH1", "Q2", "QH2", "QA", "QHT", "PUSH", "UPROC", "UPROD", NULL }

Constructor & Destructor Documentation

CPacketWnd::CPacketWnd CChildWnd pOwner = NULL  ) 
 

Definition at line 65 of file WndPacket.cpp.

References CChildWnd::Create(), IDR_PACKETFRAME, m_bPaused, and m_pOwner.

CPacketWnd::~CPacketWnd  )  [virtual]
 

Definition at line 72 of file WndPacket.cpp.


Member Function Documentation

void CPacketWnd::AddNeighbour CMenu *  pMenus,
int  nGroup,
UINT  nID,
DWORD  nTarget,
LPCTSTR  pszText
[protected]
 

Definition at line 473 of file WndPacket.cpp.

References m_nInputFilter, and m_nOutputFilter.

Referenced by OnContextMenu().

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

Definition at line 315 of file WndPacket.cpp.

References CCoolMenu::AddMenu(), AddNeighbour(), G1_PACKTYPE_MAX, CNeighboursBase::GetIterator(), CNeighboursBase::GetNext(), CSkin::GetWatermark(), ID_SEPARATOR, ID_SYSTEM_CLEAR, m_bPaused, m_bTypeG1, m_bTypeG2, m_nInputFilter, m_nOutputFilter, CNeighbour::m_nState, CNeighbour::m_nUnique, m_pCoolMenu, CNetwork::m_pSection, m_pszG2, CG1Packet::m_pszPackets, CConnection::m_sAddress, m_wndList, Neighbours, Network, nrsConnected, NULL, CCoolMenu::SetWatermark(), and Skin.

int CPacketWnd::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Reimplemented from CPanelWnd.

Definition at line 79 of file WndPacket.cpp.

References CLiveListSizer::Attach(), G1_PACKTYPE_MAX, IDC_PACKETS, CChildWnd::LoadState(), LVS_EX_LABELTIP, m_bPaused, m_bTypeG1, m_bTypeG2, CShareazaApp::m_gdiFont, CShareazaApp::m_nDefaultFontSize, m_nInputFilter, m_nOutputFilter, m_pCoolMenu, m_pFont, m_pSizer, CShareazaApp::m_sPacketDumpFont, m_wndList, NULL, CPanelWnd::OnCreate(), and theApp.

void CPacketWnd::OnCustomDrawList NMHDR *  pNMHDR,
LRESULT *  pResult
[protected]
 

Definition at line 294 of file WndPacket.cpp.

References m_nInputFilter, and m_nOutputFilter.

void CPacketWnd::OnDestroy  )  [protected]
 

Reimplemented from CChildWnd.

Definition at line 125 of file WndPacket.cpp.

References m_bPaused, m_pQueue, m_pSection, m_wndList, CChildWnd::OnDestroy(), CSettings::SaveList(), CChildWnd::SaveState(), and Settings.

void CPacketWnd::OnDrawItem int  nIDCtl,
LPDRAWITEMSTRUCT  lpDrawItemStruct
[protected]
 

Definition at line 487 of file WndPacket.cpp.

References m_pCoolMenu, and CCoolMenu::OnDrawItem().

void CPacketWnd::OnMeasureItem int  nIDCtl,
LPMEASUREITEMSTRUCT  lpMeasureItemStruct
[protected]
 

Definition at line 482 of file WndPacket.cpp.

References m_pCoolMenu, and CCoolMenu::OnMeasureItem().

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

Reimplemented from CPanelWnd.

Definition at line 287 of file WndPacket.cpp.

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

void CPacketWnd::OnSkinChange  )  [virtual]
 

Reimplemented from CChildWnd.

Definition at line 146 of file WndPacket.cpp.

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

void CPacketWnd::OnTimer UINT  nIDEvent  )  [protected]
 

Definition at line 243 of file WndPacket.cpp.

References CLiveItem::Add(), m_pQueue, m_pSection, m_wndList, CSettings::sSearch::MonitorQueue, CSettings::Search, and Settings.

void CPacketWnd::OnUpdateBlocker CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 492 of file WndPacket.cpp.

References m_pCoolMenu.

void CPacketWnd::OnUpdateSystemClear CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 498 of file WndPacket.cpp.

void CPacketWnd::Process const CNeighbour pNeighbour,
const IN_ADDR *  pUDP,
BOOL  bOutgoing,
const CPacket pPacket
 

Definition at line 155 of file WndPacket.cpp.

References CLiveItem::Format(), CPacket::GetType(), m_bPaused, m_bTypeG1, m_bTypeG2, m_nInputFilter, m_nOutputFilter, CLiveItem::m_nParam, CPacket::m_nProtocol, m_pQueue, m_pSection, m_pszG2, NULL, PROTOCOL_ED2K, PROTOCOL_G1, PROTOCOL_G2, CLiveItem::Set(), CPacket::ToASCII(), and CPacket::ToHex().

Referenced by CPacket::SmartDump().


Member Data Documentation

BOOL CPacketWnd::m_bPaused
 

Definition at line 50 of file WndPacket.h.

Referenced by CPacketWnd(), OnContextMenu(), OnCreate(), OnDestroy(), CNeighboursWnd::OpenPacketWnd(), and Process().

BOOL CPacketWnd::m_bTypeG1[16]
 

Definition at line 48 of file WndPacket.h.

Referenced by OnContextMenu(), OnCreate(), and Process().

BOOL CPacketWnd::m_bTypeG2[64]
 

Definition at line 49 of file WndPacket.h.

Referenced by OnContextMenu(), OnCreate(), and Process().

DWORD CPacketWnd::m_nInputFilter
 

Definition at line 46 of file WndPacket.h.

Referenced by AddNeighbour(), OnContextMenu(), OnCreate(), OnCustomDrawList(), CNeighboursWnd::OpenPacketWnd(), and Process().

DWORD CPacketWnd::m_nOutputFilter
 

Definition at line 47 of file WndPacket.h.

Referenced by AddNeighbour(), OnContextMenu(), OnCreate(), OnCustomDrawList(), CNeighboursWnd::OpenPacketWnd(), and Process().

CCoolMenu* CPacketWnd::m_pCoolMenu [protected]
 

Definition at line 55 of file WndPacket.h.

Referenced by OnContextMenu(), OnCreate(), OnDrawItem(), OnMeasureItem(), and OnUpdateBlocker().

CFont CPacketWnd::m_pFont [protected]
 

Definition at line 54 of file WndPacket.h.

Referenced by OnCreate().

CChildWnd* CPacketWnd::m_pOwner
 

Definition at line 45 of file WndPacket.h.

Referenced by CPacketWnd(), and CNeighboursWnd::OpenPacketWnd().

CPtrList CPacketWnd::m_pQueue [protected]
 

Definition at line 56 of file WndPacket.h.

Referenced by OnDestroy(), OnTimer(), and Process().

CCriticalSection CPacketWnd::m_pSection [protected]
 

Definition at line 57 of file WndPacket.h.

Referenced by OnDestroy(), OnTimer(), and Process().

CLiveListSizer CPacketWnd::m_pSizer [protected]
 

Definition at line 53 of file WndPacket.h.

Referenced by OnCreate(), and OnSize().

LPCSTR CPacketWnd::m_pszG2 = { "PI", "PO", "LNI", "KHL", "HAW", "QKR", "QKA", "Q1", "QH1", "Q2", "QH2", "QA", "QHT", "PUSH", "UPROC", "UPROD", NULL } [static, protected]
 

Definition at line 59 of file WndPacket.cpp.

Referenced by OnContextMenu(), and Process().

CListCtrl CPacketWnd::m_wndList [protected]
 

Definition at line 52 of file WndPacket.h.

Referenced by OnContextMenu(), OnCreate(), OnDestroy(), OnSize(), OnSkinChange(), and OnTimer().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:10 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2