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

WndSecurity.h

Go to the documentation of this file.
00001 //
00002 // WndSecurity.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_WNDSECURITY_H__195AD96B_E718_476E_8307_52239D37E7DC__INCLUDED_)
00023 #define AFX_WNDSECURITY_H__195AD96B_E718_476E_8307_52239D37E7DC__INCLUDED_
00024 
00025 #pragma once
00026 
00027 #include "WndPanel.h"
00028 
00029 class CSecureRule;
00030 
00031 
00032 class CSecurityWnd : public CPanelWnd
00033 {
00034 public:
00035         CSecurityWnd();
00036         virtual ~CSecurityWnd();
00037 
00038         DECLARE_SERIAL(CSecurityWnd)
00039 
00040 // Attributes
00041 protected:
00042         CListCtrl               m_wndList;
00043         CImageList              m_gdiImageList;
00044         CLiveListSizer  m_pSizer;
00045         DWORD                   tLastUpdate;
00046 
00047 // Operations
00048 public:
00049         void                    Update(int nColumn = -1, BOOL bSort = TRUE);
00050         CSecureRule*    GetItem(int nItem);
00051         virtual void    OnSkinChange();
00052 
00053 // Overrides
00054 public:
00055         //{{AFX_VIRTUAL(CSecurityWnd)
00056         public:
00057         virtual BOOL PreTranslateMessage(MSG* pMsg);
00058         //}}AFX_VIRTUAL
00059 
00060 // Implementation
00061 protected:
00062         //{{AFX_MSG(CSecurityWnd)
00063         afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00064         afx_msg void OnDestroy();
00065         afx_msg void OnSize(UINT nType, int cx, int cy);
00066         afx_msg void OnTimer(UINT nIDEvent);
00067         afx_msg void OnCustomDrawList(NMHDR* pNMHDR, LRESULT* pResult);
00068         afx_msg void OnDblClkList(NMHDR* pNMHDR, LRESULT* pResult);
00069         afx_msg void OnSortList(NMHDR* pNotifyStruct, LRESULT *pResult);
00070         afx_msg void OnUpdateSecurityEdit(CCmdUI* pCmdUI);
00071         afx_msg void OnSecurityEdit();
00072         afx_msg void OnUpdateSecurityReset(CCmdUI* pCmdUI);
00073         afx_msg void OnSecurityReset();
00074         afx_msg void OnUpdateSecurityRemove(CCmdUI* pCmdUI);
00075         afx_msg void OnSecurityRemove();
00076         afx_msg void OnSecurityAdd();
00077         afx_msg void OnUpdateSecurityPolicyAccept(CCmdUI* pCmdUI);
00078         afx_msg void OnSecurityPolicyAccept();
00079         afx_msg void OnUpdateSecurityPolicyDeny(CCmdUI* pCmdUI);
00080         afx_msg void OnSecurityPolicyDeny();
00081         afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
00082         afx_msg void OnUpdateSecurityMoveUp(CCmdUI* pCmdUI);
00083         afx_msg void OnSecurityMoveUp();
00084         afx_msg void OnUpdateSecurityMoveDown(CCmdUI* pCmdUI);
00085         afx_msg void OnSecurityMoveDown();
00086         afx_msg void OnUpdateSecurityExport(CCmdUI* pCmdUI);
00087         afx_msg void OnSecurityExport();
00088         afx_msg void OnSecurityImport();
00089         //}}AFX_MSG
00090         DECLARE_MESSAGE_MAP()
00091 
00092 };
00093 
00094 //{{AFX_INSERT_LOCATION}}
00095 
00096 #define IDC_RULES               100
00097 
00098 #endif // !defined(AFX_WNDSECURITY_H__195AD96B_E718_476E_8307_52239D37E7DC__INCLUDED_)

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