00001 // 00002 // RelatedSearch.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_RELATEDSEARCH_H__B8423011_3B98_44E5_9B09_40AA1E08EA4A__INCLUDED_) 00023 #define AFX_RELATEDSEARCH_H__B8423011_3B98_44E5_9B09_40AA1E08EA4A__INCLUDED_ 00024 00025 #pragma once 00026 00027 class CSchema; 00028 class CXMLElement; 00029 class CMatchFile; 00030 class CLibraryFile; 00031 00032 00033 class CRelatedSearch 00034 { 00035 // Construction 00036 public: 00037 CRelatedSearch(CMatchFile* pFile); 00038 CRelatedSearch(CLibraryFile* pFile); 00039 virtual ~CRelatedSearch(); 00040 00041 // Attributes 00042 public: 00043 BOOL m_bSHA1; 00044 SHA1 m_pSHA1; 00045 BOOL m_bTiger; 00046 TIGEROOT m_pTiger; 00047 BOOL m_bED2K; 00048 MD4 m_pED2K; 00049 public: 00050 CString m_sName; 00051 CSchema* m_pSchema; 00052 CXMLElement* m_pXML; 00053 BOOL m_bXML; 00054 00055 // Operations 00056 public: 00057 BOOL CanSearchForThis(); 00058 BOOL RunSearchForThis(); 00059 public: 00060 BOOL CanSearchForSimilar(); 00061 BOOL RunSearchForSimilar(); 00062 public: 00063 BOOL CanSearchForArtist(); 00064 BOOL RunSearchForArtist(); 00065 public: 00066 BOOL CanSearchForAlbum(); 00067 BOOL RunSearchForAlbum(); 00068 public: 00069 BOOL CanSearchForSeries(); 00070 BOOL RunSearchForSeries(); 00071 protected: 00072 static CString Tokenise(LPCTSTR psz); 00073 00074 }; 00075 00076 #endif // !defined(AFX_RELATEDSEARCH_H__B8423011_3B98_44E5_9B09_40AA1E08EA4A__INCLUDED_)