#include <Security.h>
Public Member Functions | |
CSecurity () | |
virtual | ~CSecurity () |
POSITION | GetIterator () const |
CSecureRule * | GetNext (POSITION &pos) const |
int | GetCount () |
BOOL | Check (CSecureRule *pRule) const |
CSecureRule * | GetGUID (const GUID &pGUID) const |
void | Add (CSecureRule *pRule) |
void | Remove (CSecureRule *pRule) |
void | MoveUp (CSecureRule *pRule) |
void | MoveDown (CSecureRule *pRule) |
void | Ban (IN_ADDR *pAddress, int nBanLength, BOOL bMessage=TRUE) |
void | Clear () |
BOOL | IsDenied (IN_ADDR *pAddress, LPCTSTR pszContent=NULL) |
BOOL | IsAccepted (IN_ADDR *pAddress, LPCTSTR pszContent=NULL) |
void | Expire () |
BOOL | Load () |
BOOL | Save (BOOL bLock=FALSE) |
BOOL | Import (LPCTSTR pszFile) |
CXMLElement * | ToXML (BOOL bRules=TRUE) |
BOOL | FromXML (CXMLElement *pXML) |
Public Attributes | |
BOOL | m_bDenyPolicy |
Static Public Attributes | |
static LPCTSTR | xmlns = _T("http://www.shareaza.com/schemas/Security.xsd") |
Protected Member Functions | |
void | Serialize (CArchive &ar) |
Protected Attributes | |
CPtrList | m_pRules |
|
Definition at line 44 of file Security.cpp. References m_bDenyPolicy. |
|
Definition at line 49 of file Security.cpp. References Clear(). |
|
Definition at line 91 of file Security.cpp. References m_pRules, and NULL. Referenced by Ban(), and CSecureRuleDlg::OnOK(). |
|
|
Definition at line 72 of file Security.cpp. References m_pRules, and NULL. Referenced by CSecurityWnd::GetItem(), CSecureRuleDlg::OnInitDialog(), and CSecureRuleDlg::OnOK(). |
|
Definition at line 136 of file Security.cpp. References GetIterator(), GetNext(), and m_pRules. Referenced by Serialize(), and ~CSecurity(). |
|
Definition at line 342 of file Security.cpp. References GetIterator(), GetNext(), CSecureRule::IsExpired(), CSecureRule::m_nExpire, m_pRules, and NULL. Referenced by CSecurityWnd::Update(). |
|
Definition at line 469 of file Security.cpp. References GUIDX::Decode(), CSecureRule::FromXML(), CXMLElement::GetAttributeValue(), CXMLElement::GetElementIterator(), GetGUID(), CXMLElement::GetNextElement(), CXMLNode::IsNamed(), CSecureRule::m_pGUID, m_pRules, and NULL. Referenced by Import(). |
|
Definition at line 67 of file Security.cpp. References m_pRules. Referenced by CSecurityWnd::OnTimer(), and Serialize(). |
|
Definition at line 77 of file Security.cpp. References CSecureRule::m_pGUID, m_pRules, and NULL. Referenced by FromXML(). |
|
Definition at line 57 of file Security.cpp. References m_pRules. Referenced by Ban(), Clear(), Expire(), IsDenied(), Serialize(), ToXML(), and CSecurityWnd::Update(). |
|
Definition at line 62 of file Security.cpp. References m_pRules. Referenced by Ban(), Clear(), Expire(), IsDenied(), Serialize(), ToXML(), and CSecurityWnd::Update(). |
|
Definition at line 519 of file Security.cpp. References CBuffer::EnsureBuffer(), CXMLElement::FromBytes(), CSecureRule::FromGnucleusString(), FromXML(), CBuffer::m_nLength, CBuffer::m_pBuffer, m_pRules, CNetwork::m_pSection, Network, NULL, and CBuffer::ReadLine(). Referenced by CSecurityWnd::OnSecurityImport(). |
|
Definition at line 334 of file Security.cpp. References IsDenied(). Referenced by CDatagrams::TryRead(). |
|
|
Definition at line 362 of file Security.cpp. References CSettings::General, Serialize(), Settings, and CSettings::sGeneral::UserPath. Referenced by CShareazaApp::InitInstance(). |
|
Definition at line 121 of file Security.cpp. References m_pRules, and NULL. Referenced by CSecurityWnd::OnSecurityMoveDown(). |
|
Definition at line 106 of file Security.cpp. References m_pRules, and NULL. Referenced by CSecurityWnd::OnSecurityMoveUp(). |
|
Definition at line 99 of file Security.cpp. References m_pRules. Referenced by CSecurityWnd::OnSecurityRemove(), and CSecureRule::Remove(). |
|
|
Definition at line 409 of file Security.cpp. References Clear(), GetCount(), GetIterator(), GetNext(), CSecureRule::IsExpired(), m_bDenyPolicy, m_pRules, NULL, and CSecureRule::Serialize(). |
|
Definition at line 453 of file Security.cpp. References CXMLElement::AddAttribute(), CXMLElement::AddElement(), GetIterator(), GetNext(), NULL, and xmlns. |
|
Definition at line 40 of file Security.h. Referenced by CSecureRule::CSecureRule(), CSecurity(), IsDenied(), CSecurityWnd::OnSecurityPolicyAccept(), CSecurityWnd::OnSecurityPolicyDeny(), CSecurityWnd::OnUpdateSecurityPolicyAccept(), CSecurityWnd::OnUpdateSecurityPolicyDeny(), Serialize(), and CSecurityWnd::Update(). |
|
Definition at line 42 of file Security.h. Referenced by Add(), Check(), Clear(), Expire(), FromXML(), GetCount(), GetGUID(), GetIterator(), GetNext(), Import(), IsDenied(), MoveDown(), MoveUp(), Remove(), and Serialize(). |
|
Definition at line 451 of file Security.cpp. Referenced by CSecurityWnd::OnSecurityExport(), and ToXML(). |