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

CRelatedSearch Class Reference

#include <RelatedSearch.h>

List of all members.

Public Member Functions

 CRelatedSearch (CMatchFile *pFile)
 CRelatedSearch (CLibraryFile *pFile)
virtual ~CRelatedSearch ()
BOOL CanSearchForThis ()
BOOL RunSearchForThis ()
BOOL CanSearchForSimilar ()
BOOL RunSearchForSimilar ()
BOOL CanSearchForArtist ()
BOOL RunSearchForArtist ()
BOOL CanSearchForAlbum ()
BOOL RunSearchForAlbum ()
BOOL CanSearchForSeries ()
BOOL RunSearchForSeries ()

Public Attributes

BOOL m_bSHA1
SHA1 m_pSHA1
BOOL m_bTiger
TIGEROOT m_pTiger
BOOL m_bED2K
MD4 m_pED2K
CString m_sName
CSchemam_pSchema
CXMLElementm_pXML
BOOL m_bXML

Static Protected Member Functions

static CString Tokenise (LPCTSTR psz)


Constructor & Destructor Documentation

CRelatedSearch::CRelatedSearch CMatchFile pFile  ) 
 

Definition at line 46 of file RelatedSearch.cpp.

References CXMLElement::AddAttribute(), CSchemaCache::Get(), CXMLNode::GetName(), CXMLNode::GetValue(), CMatchFile::m_bED2K, m_bED2K, CMatchFile::m_bSHA1, m_bSHA1, CMatchFile::m_bTiger, m_bTiger, m_bXML, CMatchFile::m_pBest, CMatchFile::m_pED2K, m_pED2K, CMatchFile::m_pHits, CQueryHit::m_pNext, m_pSchema, CMatchFile::m_pSHA1, m_pSHA1, CMatchFile::m_pTiger, m_pTiger, m_pXML, CQueryHit::m_sName, m_sName, CQueryHit::m_sSchemaURI, CSchema::m_sSingular, NULL, and SchemaCache.

CRelatedSearch::CRelatedSearch CLibraryFile pFile  ) 
 

Definition at line 88 of file RelatedSearch.cpp.

References m_bED2K, m_bSHA1, m_bTiger, m_bXML, m_pED2K, m_pSchema, m_pSHA1, m_pTiger, m_pXML, m_sName, and NULL.

CRelatedSearch::~CRelatedSearch  )  [virtual]
 

Definition at line 111 of file RelatedSearch.cpp.

References m_bXML, and m_pXML.


Member Function Documentation

BOOL CRelatedSearch::CanSearchForAlbum  ) 
 

Definition at line 185 of file RelatedSearch.cpp.

References CXMLElement::GetAttributeValue(), m_pSchema, m_pXML, MIN_LENGTH, and NULL.

Referenced by CBaseMatchWnd::OnUpdateSearchForAlbum(), CLibraryFileView::OnUpdateSearchForAlbum(), and RunSearchForAlbum().

BOOL CRelatedSearch::CanSearchForArtist  ) 
 

Definition at line 164 of file RelatedSearch.cpp.

References CXMLElement::GetAttributeValue(), m_pSchema, m_pXML, MIN_LENGTH, and NULL.

Referenced by CBaseMatchWnd::OnUpdateSearchForArtist(), CLibraryFileView::OnUpdateSearchForArtist(), and RunSearchForArtist().

BOOL CRelatedSearch::CanSearchForSeries  ) 
 

Definition at line 206 of file RelatedSearch.cpp.

References CXMLElement::GetAttributeValue(), m_pSchema, m_pXML, MIN_LENGTH, and NULL.

Referenced by CBaseMatchWnd::OnUpdateSearchForSeries(), CLibraryFileView::OnUpdateSearchForSeries(), and RunSearchForSeries().

BOOL CRelatedSearch::CanSearchForSimilar  ) 
 

Definition at line 140 of file RelatedSearch.cpp.

References m_sName, and MIN_LENGTH.

Referenced by CBaseMatchWnd::OnUpdateSearchForSimilar(), CLibraryFileView::OnUpdateSearchForSimilar(), and RunSearchForSimilar().

BOOL CRelatedSearch::CanSearchForThis  ) 
 

Definition at line 119 of file RelatedSearch.cpp.

References m_bED2K, m_bSHA1, and m_bTiger.

Referenced by CBaseMatchWnd::OnUpdateSearchForThis(), CLibraryFileView::OnUpdateSearchForThis(), and RunSearchForThis().

BOOL CRelatedSearch::RunSearchForAlbum  ) 
 

Definition at line 192 of file RelatedSearch.cpp.

References CXMLElement::AddAttribute(), CXMLElement::AddElement(), CanSearchForAlbum(), CSchemaCache::Get(), CXMLElement::GetAttributeValue(), CSchema::Instantiate(), m_pSchema, CQuerySearch::m_pSchema, m_pXML, CQuerySearch::m_pXML, CSchema::m_sSingular, NULL, CQuerySearch::OpenWindow(), SchemaCache, Tokenise(), and CSchema::uriAudio.

Referenced by CBaseMatchWnd::OnSearchForAlbum(), and CLibraryFileView::OnSearchForAlbum().

BOOL CRelatedSearch::RunSearchForArtist  ) 
 

Definition at line 171 of file RelatedSearch.cpp.

References CXMLElement::AddAttribute(), CXMLElement::AddElement(), CanSearchForArtist(), CSchemaCache::Get(), CXMLElement::GetAttributeValue(), CSchema::Instantiate(), m_pSchema, CQuerySearch::m_pSchema, m_pXML, CQuerySearch::m_pXML, CSchema::m_sSingular, NULL, CQuerySearch::OpenWindow(), SchemaCache, Tokenise(), and CSchema::uriAudio.

Referenced by CBaseMatchWnd::OnSearchForArtist(), and CLibraryFileView::OnSearchForArtist().

BOOL CRelatedSearch::RunSearchForSeries  ) 
 

Definition at line 213 of file RelatedSearch.cpp.

References CXMLElement::AddAttribute(), CXMLElement::AddElement(), CanSearchForSeries(), CSchemaCache::Get(), CXMLElement::GetAttributeValue(), CSchema::Instantiate(), m_pSchema, CQuerySearch::m_pSchema, m_pXML, CQuerySearch::m_pXML, CSchema::m_sSingular, NULL, CQuerySearch::OpenWindow(), SchemaCache, Tokenise(), and CSchema::uriVideo.

Referenced by CBaseMatchWnd::OnSearchForSeries(), and CLibraryFileView::OnSearchForSeries().

BOOL CRelatedSearch::RunSearchForSimilar  ) 
 

Definition at line 145 of file RelatedSearch.cpp.

References CanSearchForSimilar(), m_bED2K, CQuerySearch::m_bSimilarSearch, m_pED2K, CQuerySearch::m_pSimilarED2K, m_sName, CQuerySearch::m_sSearch, NULL, CQuerySearch::OpenWindow(), and Tokenise().

Referenced by CBaseMatchWnd::OnSearchForSimilar(), and CLibraryFileView::OnSearchForSimilar().

BOOL CRelatedSearch::RunSearchForThis  ) 
 

Definition at line 124 of file RelatedSearch.cpp.

References CanSearchForThis(), m_bED2K, CQuerySearch::m_bED2K, m_bSHA1, CQuerySearch::m_bSHA1, m_bTiger, CQuerySearch::m_bTiger, m_pED2K, CQuerySearch::m_pED2K, m_pSHA1, CQuerySearch::m_pSHA1, m_pTiger, CQuerySearch::m_pTiger, NULL, and CQuerySearch::OpenWindow().

Referenced by CBaseMatchWnd::OnSearchForThis(), and CLibraryFileView::OnSearchForThis().

CString CRelatedSearch::Tokenise LPCTSTR  psz  )  [static, protected]
 

Definition at line 227 of file RelatedSearch.cpp.

References CShareazaApp::m_bNT, NULL, and theApp.

Referenced by RunSearchForAlbum(), RunSearchForArtist(), RunSearchForSeries(), and RunSearchForSimilar().


Member Data Documentation

BOOL CRelatedSearch::m_bED2K
 

Definition at line 47 of file RelatedSearch.h.

Referenced by CanSearchForThis(), CRelatedSearch(), RunSearchForSimilar(), and RunSearchForThis().

BOOL CRelatedSearch::m_bSHA1
 

Definition at line 43 of file RelatedSearch.h.

Referenced by CanSearchForThis(), CRelatedSearch(), and RunSearchForThis().

BOOL CRelatedSearch::m_bTiger
 

Definition at line 45 of file RelatedSearch.h.

Referenced by CanSearchForThis(), CRelatedSearch(), and RunSearchForThis().

BOOL CRelatedSearch::m_bXML
 

Definition at line 53 of file RelatedSearch.h.

Referenced by CRelatedSearch(), and ~CRelatedSearch().

MD4 CRelatedSearch::m_pED2K
 

Definition at line 48 of file RelatedSearch.h.

Referenced by CRelatedSearch(), RunSearchForSimilar(), and RunSearchForThis().

CSchema* CRelatedSearch::m_pSchema
 

Definition at line 51 of file RelatedSearch.h.

Referenced by CanSearchForAlbum(), CanSearchForArtist(), CanSearchForSeries(), CRelatedSearch(), RunSearchForAlbum(), RunSearchForArtist(), and RunSearchForSeries().

SHA1 CRelatedSearch::m_pSHA1
 

Definition at line 44 of file RelatedSearch.h.

Referenced by CRelatedSearch(), and RunSearchForThis().

TIGEROOT CRelatedSearch::m_pTiger
 

Definition at line 46 of file RelatedSearch.h.

Referenced by CRelatedSearch(), and RunSearchForThis().

CXMLElement* CRelatedSearch::m_pXML
 

Definition at line 52 of file RelatedSearch.h.

Referenced by CanSearchForAlbum(), CanSearchForArtist(), CanSearchForSeries(), CRelatedSearch(), RunSearchForAlbum(), RunSearchForArtist(), RunSearchForSeries(), and ~CRelatedSearch().

CString CRelatedSearch::m_sName
 

Definition at line 50 of file RelatedSearch.h.

Referenced by CanSearchForSimilar(), CRelatedSearch(), and RunSearchForSimilar().


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