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

CAdultFilter Class Reference

#include <Security.h>

List of all members.

Public Member Functions

 CAdultFilter ()
virtual ~CAdultFilter ()
void Load ()
BOOL IsHitAdult (LPCTSTR)
BOOL IsSearchFiltered (LPCTSTR)
BOOL IsChatFiltered (LPCTSTR)
BOOL Censor (TCHAR *)

Private Member Functions

BOOL IsFiltered (LPCTSTR)

Private Attributes

LPTSTR m_pszBlockedWords
LPTSTR m_pszDubiousWords


Constructor & Destructor Documentation

CAdultFilter::CAdultFilter  ) 
 

Definition at line 1102 of file Security.cpp.

References m_pszBlockedWords, m_pszDubiousWords, and NULL.

CAdultFilter::~CAdultFilter  )  [virtual]
 

Definition at line 1108 of file Security.cpp.

References m_pszBlockedWords, m_pszDubiousWords, and NULL.


Member Function Documentation

BOOL CAdultFilter::Censor TCHAR *   ) 
 

Definition at line 1275 of file Security.cpp.

References _tcsistr(), m_pszBlockedWords, and NULL.

Referenced by CPrivateChatFrame::OnLocalMessage(), and CPrivateChatFrame::OnRemoteMessage().

BOOL CAdultFilter::IsChatFiltered LPCTSTR   ) 
 

Definition at line 1266 of file Security.cpp.

References CSettings::sCommunity::ChatCensor, CSettings::Community, IsFiltered(), and Settings.

Referenced by CPrivateChatFrame::OnLocalMessage(), and CPrivateChatFrame::OnRemoteMessage().

BOOL CAdultFilter::IsFiltered LPCTSTR   )  [private]
 

Definition at line 1309 of file Security.cpp.

References _tcsistr(), m_pszBlockedWords, m_pszDubiousWords, and NULL.

Referenced by IsChatFiltered(), IsHitAdult(), and IsSearchFiltered().

BOOL CAdultFilter::IsHitAdult LPCTSTR   ) 
 

Definition at line 1248 of file Security.cpp.

References IsFiltered().

Referenced by CMatchList::FilterHit().

BOOL CAdultFilter::IsSearchFiltered LPCTSTR   ) 
 

Definition at line 1257 of file Security.cpp.

References CSettings::sSearch::AdultFilter, IsFiltered(), CSettings::Search, and Settings.

Referenced by CSearchWnd::ExecuteSearch(), and CHomeSearchCtrl::OnSearchCreate().

void CAdultFilter::Load  ) 
 

Definition at line 1117 of file Security.cpp.

References CBuffer::EnsureBuffer(), CSettings::General, CBuffer::m_nLength, CBuffer::m_pBuffer, m_pszBlockedWords, NULL, CSettings::sGeneral::Path, CBuffer::ReadLine(), and Settings.

Referenced by CShareazaApp::InitInstance().


Member Data Documentation

LPTSTR CAdultFilter::m_pszBlockedWords [private]
 

Definition at line 134 of file Security.h.

Referenced by CAdultFilter(), Censor(), IsFiltered(), Load(), and ~CAdultFilter().

LPTSTR CAdultFilter::m_pszDubiousWords [private]
 

Definition at line 135 of file Security.h.

Referenced by CAdultFilter(), IsFiltered(), and ~CAdultFilter().


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