#include <QuerySearch.h>
Public Member Functions | |
CQuerySearch (BOOL bGUID=TRUE) | |
CQuerySearch (CQuerySearch *pCopy) | |
virtual | ~CQuerySearch () |
CG1Packet * | ToG1Packet () |
CG2Packet * | ToG2Packet (SOCKADDR_IN *pUDP, DWORD nKey) |
CEDPacket * | ToEDPacket (BOOL bUDP, DWORD nServerFlags=0) |
BOOL | Match (LPCTSTR pszFilename, QWORD nSize, LPCTSTR pszSchemaURI, CXMLElement *pXML, SHA1 *pSHA1=NULL, TIGEROOT *pTiger=NULL, MD4 *pED2K=NULL) |
TRISTATE | MatchMetadata (LPCTSTR pszSchemaURI, CXMLElement *pXML) |
BOOL | MatchMetadataShallow (LPCTSTR pszSchemaURI, CXMLElement *pXML) |
void | BuildWordList () |
void | Serialize (CArchive &ar) |
CSearchWnd * | OpenWindow () |
BOOL | CheckValid () |
Static Public Member Functions | |
static CQuerySearch * | FromPacket (CPacket *pPacket, SOCKADDR_IN *pEndpoint=NULL) |
static BOOL | WordMatch (LPCTSTR pszString, LPCTSTR pszFind) |
static BOOL | NumberMatch (const CString &strValue, const CString &strRange) |
Public Attributes | |
GGUID | m_pGUID |
CString | m_sSearch |
CSchema * | m_pSchema |
CXMLElement * | m_pXML |
QWORD | m_nMinSize |
QWORD | m_nMaxSize |
BOOL | m_bSHA1 |
SHA1 | m_pSHA1 |
BOOL | m_bTiger |
TIGEROOT | m_pTiger |
BOOL | m_bED2K |
MD4 | m_pED2K |
BOOL | m_bBTH |
SHA1 | m_pBTH |
BOOL | m_bSimilarSearch |
MD4 | m_pSimilarED2K |
BOOL | m_bWantURL |
BOOL | m_bWantDN |
BOOL | m_bWantXML |
BOOL | m_bWantCOM |
BOOL | m_bWantPFS |
BOOL | m_bAndG1 |
BOOL | m_bUDP |
SOCKADDR_IN | m_pEndpoint |
DWORD | m_nKey |
BOOL | m_bFirewall |
DWORD | m_nWords |
LPCTSTR * | m_pWordPtr |
DWORD * | m_pWordLen |
Protected Member Functions | |
BOOL | ReadG1Packet (CPacket *pPacket) |
BOOL | ReadG2Packet (CG2Packet *pPacket, SOCKADDR_IN *pEndpoint=NULL) |
void | AddStringToWordList (LPCTSTR pszString) |
BOOL | WriteHashesToEDPacket (CEDPacket *pPacket, BOOL bUDP) |
|
Definition at line 58 of file QuerySearch.cpp. References CNetwork::CreateID(), CSettings::sGnutella1::EnableToday, CSettings::Gnutella1, m_bAndG1, m_bBTH, m_bED2K, m_bFirewall, m_bSHA1, m_bSimilarSearch, m_bTiger, m_bUDP, m_bWantCOM, m_bWantDN, m_bWantPFS, m_bWantURL, m_bWantXML, m_nKey, m_nMaxSize, m_nMinSize, m_nWords, m_pGUID, m_pSchema, m_pWordLen, m_pWordPtr, m_pXML, Network, NULL, and Settings. Referenced by FromPacket(). |
|
Definition at line 90 of file QuerySearch.cpp. References CXMLElement::Clone(), m_bAndG1, m_bBTH, m_bED2K, m_bSHA1, m_bSimilarSearch, m_bTiger, m_bUDP, m_bWantCOM, m_bWantDN, m_bWantPFS, m_bWantURL, m_bWantXML, m_nKey, m_nMaxSize, m_nMinSize, m_nWords, m_pBTH, m_pED2K, m_pEndpoint, m_pGUID, m_pSchema, m_pSHA1, m_pTiger, m_pWordLen, m_pWordPtr, m_pXML, m_sSearch, and NULL. |
|
Definition at line 126 of file QuerySearch.cpp. References m_pWordLen, m_pWordPtr, and m_pXML. |
|
Definition at line 1212 of file QuerySearch.cpp. References IsCharacter(), IsWord(), m_nWords, m_pWordLen, and m_pWordPtr. Referenced by BuildWordList(). |
|
Definition at line 1121 of file QuerySearch.cpp. References AddStringToWordList(), CXMLElement::GetFirstElement(), CSchema::GetMemberIterator(), CSchema::GetNextMember(), CED2K::HashFromURN(), CTigerNode::HashFromURN(), CSHA::HashFromURN(), m_bED2K, CSchemaMember::m_bIndexed, m_bSHA1, m_bTiger, m_nWords, m_pED2K, m_pSchema, m_pSHA1, m_pTiger, m_pXML, CSchemaMember::m_sName, m_sSearch, CXMLNode::m_sValue, NULL, Replace(), and ToLower(). Referenced by CheckValid(), CSearchPanel::GetSearch(), CDownloadWithSearch::PrepareSearch(), and Serialize(). |
|
Definition at line 789 of file QuerySearch.cpp. References BuildWordList(), m_bBTH, m_bED2K, m_bSHA1, m_bTiger, m_nWords, m_pSchema, m_pWordLen, m_pWordPtr, and NULL. Referenced by CSearchWnd::ExecuteSearch(), CSearchPadWnd::GetSearch(), CSearchPanel::GetSearch(), CNewSearchDlg::OnOK(), OpenWindow(), ReadG1Packet(), and ReadG2Packet(). |
|
Definition at line 496 of file QuerySearch.cpp. References CQuerySearch(), G2_PACKET_QUERY_WRAP, CShareazaApp::Message(), MSG_DEBUG, NULL, PROTOCOL_G1, PROTOCOL_G2, ReadG1Packet(), ReadG2Packet(), and theApp. Referenced by CG2Neighbour::OnQuery(), CG1Neighbour::OnQuery(), and CDatagrams::OnQuery(). |
|
Definition at line 895 of file QuerySearch.cpp. References m_bED2K, m_bSHA1, m_bSimilarSearch, m_bTiger, m_nMaxSize, m_pED2K, m_pSHA1, m_pTiger, m_sSearch, MatchMetadata(), MatchMetadataShallow(), NULL, TS_TRUE, TS_UNKNOWN, and WordMatch(). Referenced by CMatchList::AddHits(). |
|
Definition at line 948 of file QuerySearch.cpp. References CSchema::CheckURI(), CXMLElement::GetFirstElement(), CSchema::GetMemberIterator(), CSchema::GetNextMember(), CSchemaMember::GetValueFrom(), CSchemaMember::m_bNumeric, m_pSchema, m_pXML, NumberMatch(), TS_FALSE, TS_TRUE, TS_UNKNOWN, and WordMatch(). Referenced by Match(). |
|
Definition at line 989 of file QuerySearch.cpp. References CSchemaCache::Get(), CXMLElement::GetAttributeIterator(), CXMLElement::GetNextAttribute(), CXMLNode::GetValue(), CSchemaMember::GetValueFrom(), CSchemaMember::m_bSearched, m_sSearch, SchemaCache, and WordMatch(). Referenced by Match(). |
|
Definition at line 1090 of file QuerySearch.cpp. Referenced by MatchMetadata(). |
|
Definition at line 1380 of file QuerySearch.cpp. References CheckValid(), and NULL. Referenced by CMainWnd::OnOpenSearch(), CHomeSearchCtrl::OnSearchCreate(), CSearchMonitorWnd::OnSearchMonitorSearch(), CRelatedSearch::RunSearchForAlbum(), CRelatedSearch::RunSearchForArtist(), CRelatedSearch::RunSearchForSeries(), CRelatedSearch::RunSearchForSimilar(), and CRelatedSearch::RunSearchForThis(). |
|
|
|
Definition at line 1299 of file QuerySearch.cpp. References BuildWordList(), CSchemaCache::Get(), m_bBTH, m_bED2K, m_bSHA1, m_bTiger, m_bWantCOM, m_bWantDN, m_bWantPFS, m_bWantURL, m_bWantXML, m_pBTH, m_pED2K, m_pGUID, m_pSchema, m_pSHA1, m_pTiger, m_pXML, m_sSearch, CSchema::m_sURI, NULL, and SchemaCache. Referenced by CManagedSearch::Serialize(). |
|
|
|
Definition at line 202 of file QuerySearch.cpp. References G2_PACKET_QUERY, CXMLElement::GetFirstElement(), CG2Packet::GetStringLen(), m_bBTH, m_bED2K, m_bSHA1, m_bTiger, m_bWantCOM, m_bWantDN, m_bWantPFS, m_bWantURL, m_bWantXML, m_nMaxSize, m_nMinSize, m_pBTH, m_pED2K, m_pGUID, m_pSHA1, m_pTiger, m_pXML, m_sSearch, CG2Packet::New(), NULL, SIZE_UNKNOWN, CXMLElement::ToString(), CPacket::Write(), CPacket::WriteByte(), CPacket::WriteInt64(), CPacket::WriteLongBE(), CPacket::WriteLongLE(), CG2Packet::WritePacket(), CPacket::WriteShortBE(), and CG2Packet::WriteString(). Referenced by CManagedSearch::ExecuteG2Mesh(), and CManagedSearch::ExecuteNeighbours(). |
|
Definition at line 1021 of file QuerySearch.cpp. References _tcsnistr(). Referenced by CUploadQueue::CanAccept(), CDownloadGroup::Link(), Match(), MatchMetadata(), and MatchMetadataShallow(). |
|
|
Definition at line 71 of file QuerySearch.h. Referenced by CQuerySearch(), CManagedSearch::ExecuteG2Mesh(), CManagedSearch::ExecuteNeighbours(), CDownloadWithSearch::PrepareSearch(), ReadG1Packet(), ReadG2Packet(), and CG1Neighbour::SendQuery(). |
|
Definition at line 60 of file QuerySearch.h. Referenced by CLocalSearch::AddHit(), CQueryHashTable::Check(), CheckValid(), CQuerySearch(), CLocalSearch::ExecutePartialFiles(), CG2Neighbour::OnQuery(), CSearchMonitorWnd::OnQuerySearch(), CDownloadWithSearch::PrepareSearch(), ReadG2Packet(), Serialize(), ToEDPacket(), and ToG2Packet(). |
|
|
Definition at line 76 of file QuerySearch.h. Referenced by CQuerySearch(), and ReadG1Packet(). |
|
|
Definition at line 63 of file QuerySearch.h. Referenced by CQuerySearch(), Match(), CRelatedSearch::RunSearchForSimilar(), and ToEDPacket(). |
|
Definition at line 56 of file QuerySearch.h. Referenced by BuildWordList(), CheckValid(), CQuerySearch(), CLocalSearch::ExecutePartialFiles(), Match(), CSearchMonitorWnd::OnQuerySearch(), CDownloadWithSearch::PrepareSearch(), ReadG1Packet(), ReadG2Packet(), CRelatedSearch::RunSearchForThis(), CLibraryMaps::Search(), Serialize(), ToG1Packet(), and ToG2Packet(). |
|
Definition at line 73 of file QuerySearch.h. Referenced by CQuerySearch(), CG2Neighbour::OnQuery(), CDatagrams::OnQuery(), and ReadG2Packet(). |
|
Definition at line 69 of file QuerySearch.h. Referenced by CLocalSearch::AddHitG2(), CQuerySearch(), CDownloadWithSearch::PrepareSearch(), ReadG1Packet(), ReadG2Packet(), Serialize(), and ToG2Packet(). |
|
Definition at line 67 of file QuerySearch.h. Referenced by CLocalSearch::AddHit(), CLocalSearch::AddHitG2(), CQuerySearch(), CDownloadWithSearch::PrepareSearch(), ReadG2Packet(), CEDNeighbour::SendQuery(), Serialize(), ToEDPacket(), and ToG2Packet(). |
|
Definition at line 70 of file QuerySearch.h. Referenced by CQuerySearch(), CLocalSearch::Execute(), CDownloadWithSearch::PrepareSearch(), ReadG1Packet(), ReadG2Packet(), Serialize(), and ToG2Packet(). |
|
Definition at line 66 of file QuerySearch.h. Referenced by CLocalSearch::AddHit(), CLocalSearch::AddHitG2(), CQuerySearch(), CDownloadWithSearch::PrepareSearch(), ReadG2Packet(), Serialize(), and ToG2Packet(). |
|
Definition at line 68 of file QuerySearch.h. Referenced by CLocalSearch::AddHitG1(), CLocalSearch::AddHitG2(), CQuerySearch(), CDownloadWithSearch::PrepareSearch(), ReadG1Packet(), ReadG2Packet(), Serialize(), ToG1Packet(), and ToG2Packet(). |
|
Definition at line 75 of file QuerySearch.h. Referenced by CQuerySearch(), CDatagrams::OnQuery(), and ReadG2Packet(). |
|
Definition at line 52 of file QuerySearch.h. Referenced by CQuerySearch(), CSearchPanel::GetSearch(), Match(), CDownloadWithSearch::PrepareSearch(), ReadG2Packet(), CSearchPanel::ShowSearch(), ToEDPacket(), and ToG2Packet(). |
|
Definition at line 51 of file QuerySearch.h. Referenced by CQuerySearch(), CSearchPanel::GetSearch(), CDownloadWithSearch::PrepareSearch(), ReadG2Packet(), CSearchPanel::ShowSearch(), ToEDPacket(), and ToG2Packet(). |
|
Definition at line 78 of file QuerySearch.h. Referenced by AddStringToWordList(), BuildWordList(), CQueryHashTable::Check(), CheckValid(), and CQuerySearch(). |
|
Definition at line 61 of file QuerySearch.h. Referenced by CQueryHashTable::Check(), CQuerySearch(), CLocalSearch::ExecutePartialFiles(), CSearchMonitorWnd::OnQuerySearch(), CDownloadWithSearch::PrepareSearch(), ReadG2Packet(), Serialize(), and ToG2Packet(). |
|
|
Definition at line 74 of file QuerySearch.h. Referenced by CQuerySearch(), CG2Neighbour::OnQuery(), CDatagrams::OnQuery(), and ReadG2Packet(). |
|
|
|
|
Definition at line 64 of file QuerySearch.h. Referenced by CRelatedSearch::RunSearchForSimilar(), and ToEDPacket(). |
|
Definition at line 57 of file QuerySearch.h. Referenced by BuildWordList(), CQuerySearch(), CLocalSearch::ExecutePartialFiles(), Match(), CSearchMonitorWnd::OnQuerySearch(), CDownloadWithSearch::PrepareSearch(), ReadG1Packet(), ReadG2Packet(), CRelatedSearch::RunSearchForThis(), CLibraryMaps::Search(), Serialize(), ToG1Packet(), and ToG2Packet(). |
|
Definition at line 80 of file QuerySearch.h. Referenced by AddStringToWordList(), CQueryHashTable::Check(), CheckValid(), CQuerySearch(), and ~CQuerySearch(). |
|
Definition at line 79 of file QuerySearch.h. Referenced by AddStringToWordList(), CQueryHashTable::Check(), CheckValid(), CQuerySearch(), and ~CQuerySearch(). |
|
|