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

CSecurityWnd Class Reference

#include <WndSecurity.h>

Inheritance diagram for CSecurityWnd:

CPanelWnd CChildWnd List of all members.

Public Member Functions

 CSecurityWnd ()
virtual ~CSecurityWnd ()
void Update (int nColumn=-1, BOOL bSort=TRUE)
CSecureRuleGetItem (int nItem)
virtual void OnSkinChange ()
virtual BOOL PreTranslateMessage (MSG *pMsg)

Protected Member Functions

afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnDestroy ()
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnTimer (UINT nIDEvent)
afx_msg void OnCustomDrawList (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnDblClkList (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnSortList (NMHDR *pNotifyStruct, LRESULT *pResult)
afx_msg void OnUpdateSecurityEdit (CCmdUI *pCmdUI)
afx_msg void OnSecurityEdit ()
afx_msg void OnUpdateSecurityReset (CCmdUI *pCmdUI)
afx_msg void OnSecurityReset ()
afx_msg void OnUpdateSecurityRemove (CCmdUI *pCmdUI)
afx_msg void OnSecurityRemove ()
afx_msg void OnSecurityAdd ()
afx_msg void OnUpdateSecurityPolicyAccept (CCmdUI *pCmdUI)
afx_msg void OnSecurityPolicyAccept ()
afx_msg void OnUpdateSecurityPolicyDeny (CCmdUI *pCmdUI)
afx_msg void OnSecurityPolicyDeny ()
afx_msg void OnContextMenu (CWnd *pWnd, CPoint point)
afx_msg void OnUpdateSecurityMoveUp (CCmdUI *pCmdUI)
afx_msg void OnSecurityMoveUp ()
afx_msg void OnUpdateSecurityMoveDown (CCmdUI *pCmdUI)
afx_msg void OnSecurityMoveDown ()
afx_msg void OnUpdateSecurityExport (CCmdUI *pCmdUI)
afx_msg void OnSecurityExport ()
afx_msg void OnSecurityImport ()

Protected Attributes

CListCtrl m_wndList
CImageList m_gdiImageList
CLiveListSizer m_pSizer
DWORD tLastUpdate

Constructor & Destructor Documentation

CSecurityWnd::CSecurityWnd  ) 
 

Definition at line 75 of file WndSecurity.cpp.

References IDR_SECURITYFRAME.

CSecurityWnd::~CSecurityWnd  )  [virtual]
 

Definition at line 80 of file WndSecurity.cpp.


Member Function Documentation

CSecureRule * CSecurityWnd::GetItem int  nItem  ) 
 

Definition at line 229 of file WndSecurity.cpp.

References CSecurity::Check(), m_wndList, NULL, and Security.

Referenced by OnSecurityEdit(), OnSecurityExport(), OnSecurityMoveDown(), OnSecurityMoveUp(), OnSecurityRemove(), and OnSecurityReset().

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

Definition at line 308 of file WndSecurity.cpp.

References ID_SECURITY_EDIT, and CChildWnd::TrackPopupMenu().

int CSecurityWnd::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Reimplemented from CPanelWnd.

Definition at line 87 of file WndSecurity.cpp.

References CLiveListSizer::Attach(), CreateMirroredBitmap(), IDB_SECURITY, IDC_RULES, CChildWnd::LoadState(), LVS_EX_LABELTIP, CShareazaApp::m_bRTL, CShareazaApp::m_gdiFont, m_gdiImageList, CNetwork::m_pSection, m_pSizer, m_wndList, Network, CPanelWnd::OnCreate(), theApp, and Update().

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

Definition at line 265 of file WndSecurity.cpp.

References CShareazaApp::m_bRTL, m_wndList, CSecureRule::srAccept, CSecureRule::srDeny, and theApp.

void CSecurityWnd::OnDblClkList NMHDR *  pNMHDR,
LRESULT *  pResult
[protected]
 

Definition at line 295 of file WndSecurity.cpp.

References OnSecurityEdit().

void CSecurityWnd::OnDestroy  )  [protected]
 

Reimplemented from CChildWnd.

Definition at line 127 of file WndSecurity.cpp.

References m_wndList, CChildWnd::OnDestroy(), CSecurity::Save(), CSettings::SaveList(), CChildWnd::SaveState(), Security, and Settings.

void CSecurityWnd::OnSecurityAdd  )  [protected]
 

Definition at line 424 of file WndSecurity.cpp.

References CSecurity::Save(), Security, and Update().

void CSecurityWnd::OnSecurityEdit  )  [protected]
 

Definition at line 318 of file WndSecurity.cpp.

References GetItem(), CNetwork::m_pSection, m_wndList, Network, NULL, CSecurity::Save(), Security, and Update().

Referenced by OnDblClkList().

void CSecurityWnd::OnSecurityExport  )  [protected]
 

Definition at line 440 of file WndSecurity.cpp.

References CXMLElement::AddAttribute(), CXMLElement::AddElement(), GetItem(), m_wndList, NULL, CXMLElement::ToString(), and CSecurity::xmlns.

void CSecurityWnd::OnSecurityImport  )  [protected]
 

Definition at line 509 of file WndSecurity.cpp.

References CSecurity::Import(), NULL, CSecurity::Save(), and Security.

void CSecurityWnd::OnSecurityMoveDown  )  [protected]
 

Definition at line 404 of file WndSecurity.cpp.

References GetItem(), CNetwork::m_pSection, m_wndList, CSecurity::MoveDown(), Network, CSecurity::Save(), Security, and Update().

Referenced by PreTranslateMessage().

void CSecurityWnd::OnSecurityMoveUp  )  [protected]
 

Definition at line 383 of file WndSecurity.cpp.

References GetItem(), CNetwork::m_pSection, m_wndList, CSecurity::MoveUp(), Network, CSecurity::Save(), Security, and Update().

Referenced by PreTranslateMessage().

void CSecurityWnd::OnSecurityPolicyAccept  )  [protected]
 

Definition at line 540 of file WndSecurity.cpp.

References CSecurity::m_bDenyPolicy, m_wndList, Security, and Update().

void CSecurityWnd::OnSecurityPolicyDeny  )  [protected]
 

Definition at line 552 of file WndSecurity.cpp.

References CSecurity::m_bDenyPolicy, m_wndList, Security, and Update().

void CSecurityWnd::OnSecurityRemove  )  [protected]
 

Definition at line 362 of file WndSecurity.cpp.

References GetItem(), CNetwork::m_pSection, m_wndList, Network, CSecurity::Remove(), CSecurity::Save(), Security, and Update().

Referenced by PreTranslateMessage().

void CSecurityWnd::OnSecurityReset  )  [protected]
 

Definition at line 341 of file WndSecurity.cpp.

References GetItem(), CNetwork::m_pSection, m_wndList, Network, CSecurity::Save(), Security, and Update().

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

Reimplemented from CPanelWnd.

Definition at line 243 of file WndSecurity.cpp.

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

void CSecurityWnd::OnSkinChange  )  [virtual]
 

Reimplemented from CChildWnd.

Definition at line 529 of file WndSecurity.cpp.

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

void CSecurityWnd::OnSortList NMHDR *  pNotifyStruct,
LRESULT *  pResult
[protected]
 

Definition at line 301 of file WndSecurity.cpp.

References m_wndList, and CLiveList::Sort().

void CSecurityWnd::OnTimer UINT  nIDEvent  )  [protected]
 

Definition at line 250 of file WndSecurity.cpp.

References CSecurity::GetCount(), CChildWnd::IsPartiallyVisible(), Security, tLastUpdate, and Update().

void CSecurityWnd::OnUpdateSecurityEdit CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 313 of file WndSecurity.cpp.

References m_wndList.

void CSecurityWnd::OnUpdateSecurityExport CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 435 of file WndSecurity.cpp.

References m_wndList.

void CSecurityWnd::OnUpdateSecurityMoveDown CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 399 of file WndSecurity.cpp.

References m_wndList.

void CSecurityWnd::OnUpdateSecurityMoveUp CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 378 of file WndSecurity.cpp.

References m_wndList.

void CSecurityWnd::OnUpdateSecurityPolicyAccept CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 535 of file WndSecurity.cpp.

References CSecurity::m_bDenyPolicy, and Security.

void CSecurityWnd::OnUpdateSecurityPolicyDeny CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 547 of file WndSecurity.cpp.

References CSecurity::m_bDenyPolicy, and Security.

void CSecurityWnd::OnUpdateSecurityRemove CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 357 of file WndSecurity.cpp.

References m_wndList.

void CSecurityWnd::OnUpdateSecurityReset CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 336 of file WndSecurity.cpp.

References m_wndList.

BOOL CSecurityWnd::PreTranslateMessage MSG *  pMsg  )  [virtual]
 

Definition at line 560 of file WndSecurity.cpp.

References ID_SECURITY_ADD, OnSecurityMoveDown(), OnSecurityMoveUp(), and OnSecurityRemove().

void CSecurityWnd::Update int  nColumn = -1,
BOOL  bSort = TRUE
 

Definition at line 140 of file WndSecurity.cpp.

References CLiveList::Add(), CLiveList::Apply(), CSecurity::Expire(), CLiveItem::Format(), CSecurity::GetIterator(), CSecurity::GetNext(), CSecurity::m_bDenyPolicy, CShareazaApp::m_bRTL, CLiveItem::m_nImage, CNetwork::m_pSection, m_wndList, Network, NULL, Security, CLiveItem::Set(), CSecureRule::srAccept, CSecureRule::srAddress, CSecureRule::srContent, CSecureRule::srDeny, CSecureRule::srIndefinite, CSecureRule::srNull, CSecureRule::srSession, theApp, and tLastUpdate.

Referenced by OnCreate(), OnSecurityAdd(), OnSecurityEdit(), OnSecurityMoveDown(), OnSecurityMoveUp(), OnSecurityPolicyAccept(), OnSecurityPolicyDeny(), OnSecurityRemove(), OnSecurityReset(), and OnTimer().


Member Data Documentation

CImageList CSecurityWnd::m_gdiImageList [protected]
 

Definition at line 43 of file WndSecurity.h.

Referenced by OnCreate().

CLiveListSizer CSecurityWnd::m_pSizer [protected]
 

Definition at line 44 of file WndSecurity.h.

Referenced by OnCreate(), and OnSize().

CListCtrl CSecurityWnd::m_wndList [protected]
 

Definition at line 42 of file WndSecurity.h.

Referenced by GetItem(), OnCreate(), OnCustomDrawList(), OnDestroy(), OnSecurityEdit(), OnSecurityExport(), OnSecurityMoveDown(), OnSecurityMoveUp(), OnSecurityPolicyAccept(), OnSecurityPolicyDeny(), OnSecurityRemove(), OnSecurityReset(), OnSize(), OnSkinChange(), OnSortList(), OnUpdateSecurityEdit(), OnUpdateSecurityExport(), OnUpdateSecurityMoveDown(), OnUpdateSecurityMoveUp(), OnUpdateSecurityRemove(), OnUpdateSecurityReset(), and Update().

DWORD CSecurityWnd::tLastUpdate [protected]
 

Definition at line 45 of file WndSecurity.h.

Referenced by OnTimer(), and Update().


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