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

CMatchFile Class Reference

#include <MatchObjects.h>

List of all members.

Public Member Functions

 CMatchFile (CMatchList *pList, CQueryHit *pHit=NULL)
virtual ~CMatchFile ()
BOOL Add (CQueryHit *pHit, BOOL bForce=FALSE)
BOOL Check (CQueryHit *pHit) const
BOOL Expand (BOOL bExpand=TRUE)
int Compare (CMatchFile *pFile) const
CString GetURN () const
void Serialize (CArchive &ar, int nVersion)
DWORD GetFilteredCount () const
DWORD GetItemCount () const
int GetRating () const

Public Attributes

CMatchListm_pList
CQueryHitm_pHits
CQueryHitm_pBest
DWORD m_nTotal
DWORD m_nFiltered
DWORD m_nSources
CMatchFilem_pNextSize
CMatchFilem_pNextSHA1
CMatchFilem_pNextTiger
CMatchFilem_pNextED2K
BOOL m_bSHA1
SHA1 m_pSHA1
BOOL m_bTiger
TIGEROOT m_pTiger
BOOL m_bED2K
MD4 m_pED2K
QWORD m_nSize
CString m_sSize
TRISTATE m_bBusy
TRISTATE m_bPush
TRISTATE m_bStable
BOOL m_bPreview
DWORD m_nSpeed
CString m_sSpeed
int m_nRating
int m_nRated
BOOL m_bDRM
BOOL m_bCollection
BOOL m_bExpanded
BOOL m_bSelected
BOOL m_bExisting
BOOL m_bDownload
BOOL m_bNew
BOOL m_bOneValid
int m_nShellIndex
CString * m_pColumns
int m_nColumns
BYTE * m_pPreview
DWORD m_nPreview

Protected Member Functions

DWORD Filter ()
void Added (CQueryHit *pHit)
void ClearNew ()

Friends

class CMatchList


Constructor & Destructor Documentation

CMatchFile::CMatchFile CMatchList pList,
CQueryHit pHit = NULL
 

Definition at line 1079 of file MatchObjects.cpp.

References Add(), CSettings::sSearch::ExpandMatches, m_bBusy, m_bCollection, m_bDownload, m_bDRM, m_bED2K, m_bExisting, m_bExpanded, m_bNew, m_bOneValid, m_bPreview, m_bPush, m_bSelected, m_bSHA1, m_bStable, m_bTiger, m_nColumns, m_nFiltered, m_nPreview, m_nRated, m_nRating, m_nShellIndex, CQueryHit::m_nSize, m_nSize, m_nSources, m_nSpeed, m_nTotal, m_pBest, m_pColumns, m_pHits, m_pList, m_pNextED2K, m_pNextSHA1, m_pNextSize, m_pNextTiger, m_pPreview, m_sSize, NULL, CSettings::Search, Settings, CSettings::SmartVolume(), and TS_UNKNOWN.

CMatchFile::~CMatchFile  )  [virtual]
 

Definition at line 1124 of file MatchObjects.cpp.

References m_pColumns, m_pHits, CQueryHit::m_pNext, and m_pPreview.


Member Function Documentation

BOOL CMatchFile::Add CQueryHit pHit,
BOOL  bForce = FALSE
 

Definition at line 1140 of file MatchObjects.cpp.

References Added(), Downloads, CDownloads::FindByED2K(), CDownloads::FindBySHA1(), CDownloads::FindByTiger(), CSettings::General, CSettings::sGeneral::HashIntegrity, Library, LibraryMaps, CLibraryMaps::LookupFileByED2K(), CLibraryMaps::LookupFileBySHA1(), CLibraryMaps::LookupFileByTiger(), m_bDownload, m_bED2K, m_bExisting, m_bOneValid, m_bSHA1, m_bTiger, m_nFiltered, m_nSize, m_nSources, m_nSpeed, m_nTotal, m_pED2K, m_pHits, CTransfers::m_pSection, CLibrary::m_pSection, m_pSHA1, m_pTiger, NULL, Settings, and Transfers.

Referenced by CMatchList::AddHits(), and CMatchFile().

void CMatchFile::Added CQueryHit pHit  )  [inline, protected]
 

Definition at line 1353 of file MatchObjects.cpp.

References CSchema::CheckURI(), CShellIcons::Get(), CSHA::HashToString(), m_bBusy, m_bCollection, m_bDownload, m_bDRM, m_bPreview, m_bPush, m_bStable, CMatchList::m_nColumns, m_nColumns, m_nFiltered, m_nRated, m_nRating, m_nShellIndex, m_nSources, m_nSpeed, m_pBest, CMatchList::m_pColumns, m_pColumns, m_pList, CMatchList::m_pSchema, m_pSHA1, m_sSpeed, NULL, Settings, ShellIcons, CSettings::SmartVolume(), TS_FALSE, TS_TRUE, and TS_UNKNOWN.

Referenced by Add(), and Filter().

BOOL CMatchFile::Check CQueryHit pHit  )  const
 

Definition at line 1272 of file MatchObjects.cpp.

References m_pHits, and CQueryHit::m_pNext.

void CMatchFile::ClearNew  )  [inline, protected]
 

Definition at line 1449 of file MatchObjects.cpp.

References m_bNew, m_pHits, and CQueryHit::m_pNext.

Referenced by CMatchList::ClearNew().

int CMatchFile::Compare CMatchFile pFile  )  const [inline]
 

Definition at line 1459 of file MatchObjects.cpp.

References m_bBusy, m_bPush, m_bStable, m_nColumns, m_nFiltered, m_nRated, m_nRating, m_nSize, CMatchList::m_nSortColumn, m_nSources, m_nSpeed, m_pColumns, m_pHits, m_pList, CQueryHit::m_pVendor, CVendor::m_sName, CQueryHit::m_sName, MATCH_COL_CLIENT, MATCH_COL_COUNT, MATCH_COL_MAX, MATCH_COL_NAME, MATCH_COL_RATING, MATCH_COL_SIZE, MATCH_COL_SPEED, MATCH_COL_STATUS, MATCH_COL_TYPE, NULL, CLiveList::SortProc(), and TS_TRUE.

Referenced by CMatchList::SetSortColumn().

BOOL CMatchFile::Expand BOOL  bExpand = TRUE  ) 
 

Definition at line 1285 of file MatchObjects.cpp.

References CMatchList::FileToItem(), GetItemCount(), m_bExpanded, CMatchList::m_nItems, m_pHits, m_pList, CQueryHit::m_pNext, CMatchList::Select(), and CMatchList::UpdateRange().

Referenced by CMatchCtrl::DoExpand(), and CMatchCtrl::OnLButtonDown().

DWORD CMatchFile::Filter  )  [inline, protected]
 

Definition at line 1309 of file MatchObjects.cpp.

References Added(), CMatchList::FilterHit(), m_bBusy, m_bCollection, m_bDRM, m_bExisting, m_bExpanded, CMatchList::m_bFilterDRM, CMatchList::m_bFilterLocal, m_bPreview, m_bPush, m_bStable, m_nFiltered, m_nRated, m_nRating, m_nSources, m_nSpeed, m_pBest, m_pHits, m_pList, CQueryHit::m_pNext, NULL, CMatchList::Select(), and TS_UNKNOWN.

DWORD CMatchFile::GetFilteredCount  )  const [inline]
 

Definition at line 178 of file MatchObjects.h.

References m_bExisting, CMatchList::m_bFilterLocal, m_nFiltered, m_pBest, m_pList, and NULL.

Referenced by CMatchCtrl::DrawItem(), CMatchCtrl::GetItemRect(), CMatchCtrl::HitTest(), CMatchCtrl::OnLButtonDown(), CMatchCtrl::OnPaint(), and CRemote::PageSearch().

DWORD CMatchFile::GetItemCount  )  const [inline]
 

Definition at line 187 of file MatchObjects.h.

References m_bExisting, m_bExpanded, CMatchList::m_bFilterLocal, m_nFiltered, m_pBest, m_pList, and NULL.

Referenced by CMatchList::AddHits(), Expand(), and CMatchCtrl::MoveFocus().

int CMatchFile::GetRating  )  const [inline]
 

Definition at line 199 of file MatchObjects.h.

References m_bBusy, m_bPush, m_bStable, and TS_TRUE.

CString CMatchFile::GetURN  )  const
 

Definition at line 1563 of file MatchObjects.cpp.

References CED2K::HashToString(), CTigerNode::HashToString(), CSHA::HashToString(), m_bED2K, m_bSHA1, m_bTiger, m_pED2K, m_pSHA1, and m_pTiger.

Referenced by CRemote::PageSearch(), and CRemote::PageSearchRowColumn().

void CMatchFile::Serialize CArchive &  ar,
int  nVersion
 

Definition at line 1592 of file MatchObjects.cpp.

References m_bBusy, m_bDownload, m_bED2K, m_bExisting, m_bExpanded, m_bOneValid, m_bPush, m_bSHA1, m_bStable, m_bTiger, m_nPreview, m_nSize, m_nSpeed, m_nTotal, m_pED2K, m_pHits, CQueryHit::m_pNext, m_pPreview, m_pSHA1, m_pTiger, m_sSize, m_sSpeed, NULL, PROTOCOL_NULL, and CQueryHit::Serialize().

Referenced by CMatchList::Serialize().


Friends And Related Function Documentation

friend class CMatchList [friend]
 

Definition at line 210 of file MatchObjects.h.


Member Data Documentation

TRISTATE CMatchFile::m_bBusy
 

Definition at line 140 of file MatchObjects.h.

Referenced by Added(), CMatchFile(), Compare(), CMatchCtrl::DrawStatus(), Filter(), GetRating(), CMatchTipCtrl::LoadFromFile(), CRemote::PageSearch(), and Serialize().

BOOL CMatchFile::m_bCollection
 

Definition at line 149 of file MatchObjects.h.

Referenced by Added(), CMatchFile(), CMatchCtrl::DrawItem(), and Filter().

BOOL CMatchFile::m_bDownload
 

Definition at line 154 of file MatchObjects.h.

Referenced by Add(), CDownloads::Add(), Added(), CMatchFile(), CMatchCtrl::DrawItem(), CMatchTipCtrl::LoadFromFile(), CMatchTipCtrl::LoadFromHit(), and Serialize().

BOOL CMatchFile::m_bDRM
 

Definition at line 148 of file MatchObjects.h.

Referenced by Added(), CMatchFile(), CMatchCtrl::DrawItem(), and Filter().

BOOL CMatchFile::m_bED2K
 

Definition at line 135 of file MatchObjects.h.

Referenced by Add(), CDownloads::Add(), CMatchList::AddHits(), CMatchFile(), CRelatedSearch::CRelatedSearch(), CMatchListView::GetNext(), GetURN(), CMatchTipCtrl::LoadFromFile(), CBaseMatchWnd::OnSearchDownload(), CBaseMatchWnd::OnSearchDownloadNow(), Serialize(), and CMatchList::Serialize().

BOOL CMatchFile::m_bExisting
 

Definition at line 153 of file MatchObjects.h.

Referenced by Add(), CMatchFile(), CMatchCtrl::DrawItem(), Filter(), GetFilteredCount(), GetItemCount(), CMatchTipCtrl::LoadFromFile(), CMatchTipCtrl::LoadFromHit(), and Serialize().

BOOL CMatchFile::m_bExpanded
 

Definition at line 151 of file MatchObjects.h.

Referenced by CMatchFile(), CMatchCtrl::DrawItem(), Expand(), Filter(), GetItemCount(), CMatchCtrl::GetItemRect(), CMatchCtrl::HitTest(), CMatchCtrl::OnLButtonDown(), CMatchCtrl::OnPaint(), CRemote::PageSearch(), and Serialize().

BOOL CMatchFile::m_bNew
 

Definition at line 155 of file MatchObjects.h.

Referenced by CMatchList::AddHits(), ClearNew(), CMatchFile(), and CMatchCtrl::DrawItem().

BOOL CMatchFile::m_bOneValid
 

Definition at line 156 of file MatchObjects.h.

Referenced by Add(), CMatchFile(), CMatchCtrl::DrawItem(), CMatchTipCtrl::LoadFromFile(), and Serialize().

BOOL CMatchFile::m_bPreview
 

Definition at line 143 of file MatchObjects.h.

Referenced by Added(), CMatchFile(), CMatchCtrl::DrawStatus(), and Filter().

TRISTATE CMatchFile::m_bPush
 

Definition at line 141 of file MatchObjects.h.

Referenced by Added(), CMatchFile(), Compare(), CMatchCtrl::DrawStatus(), Filter(), GetRating(), CMatchTipCtrl::LoadFromFile(), CRemote::PageSearch(), and Serialize().

BOOL CMatchFile::m_bSelected
 

Definition at line 152 of file MatchObjects.h.

Referenced by CMatchFile(), CMatchCtrl::DrawItem(), CMatchCtrl::OnLButtonDown(), and CMatchList::Select().

BOOL CMatchFile::m_bSHA1
 

Definition at line 131 of file MatchObjects.h.

Referenced by Add(), CDownloads::Add(), CMatchList::AddHits(), CMatchFile(), CRelatedSearch::CRelatedSearch(), CMatchListView::GetNext(), GetURN(), CMatchTipCtrl::LoadFromFile(), CBaseMatchWnd::OnSearchDownload(), CBaseMatchWnd::OnSearchDownloadNow(), Serialize(), and CMatchList::Serialize().

TRISTATE CMatchFile::m_bStable
 

Definition at line 142 of file MatchObjects.h.

Referenced by Added(), CMatchFile(), Compare(), CMatchCtrl::DrawStatus(), Filter(), GetRating(), CMatchTipCtrl::LoadFromFile(), CRemote::PageSearch(), and Serialize().

BOOL CMatchFile::m_bTiger
 

Definition at line 133 of file MatchObjects.h.

Referenced by Add(), CDownloads::Add(), CMatchList::AddHits(), CMatchFile(), CRelatedSearch::CRelatedSearch(), CMatchListView::GetNext(), GetURN(), CMatchTipCtrl::LoadFromFile(), CBaseMatchWnd::OnSearchDownload(), CBaseMatchWnd::OnSearchDownloadNow(), Serialize(), and CMatchList::Serialize().

int CMatchFile::m_nColumns
 

Definition at line 160 of file MatchObjects.h.

Referenced by Added(), CMatchFile(), and Compare().

DWORD CMatchFile::m_nFiltered
 

Definition at line 124 of file MatchObjects.h.

Referenced by Add(), Added(), CMatchList::AddHits(), CMatchFile(), Compare(), Filter(), GetFilteredCount(), GetItemCount(), CMatchList::GetSelectedHit(), and CMatchTipCtrl::LoadFromFile().

DWORD CMatchFile::m_nPreview
 

Definition at line 162 of file MatchObjects.h.

Referenced by CSearchDetailPanel::CachePreviewImage(), CMatchFile(), CSearchDetailPanel::DrawThumbnail(), Serialize(), and CSearchDetailPanel::Update().

int CMatchFile::m_nRated
 

Definition at line 147 of file MatchObjects.h.

Referenced by Added(), CMatchFile(), Compare(), CMatchCtrl::DrawItem(), Filter(), CMatchTipCtrl::LoadFromFile(), CRemote::PageSearch(), and CSearchDetailPanel::Update().

int CMatchFile::m_nRating
 

Definition at line 146 of file MatchObjects.h.

Referenced by Added(), CMatchFile(), Compare(), CMatchCtrl::DrawItem(), Filter(), CMatchTipCtrl::LoadFromFile(), CRemote::PageSearch(), and CSearchDetailPanel::Update().

int CMatchFile::m_nShellIndex
 

Definition at line 157 of file MatchObjects.h.

Referenced by Added(), CMatchFile(), and CMatchCtrl::DrawItem().

QWORD CMatchFile::m_nSize
 

Definition at line 137 of file MatchObjects.h.

Referenced by Add(), CMatchList::AddHits(), CMatchFile(), Compare(), CMatchTipCtrl::LoadFromFile(), CRemote::PageSearch(), Serialize(), and CMatchList::Serialize().

DWORD CMatchFile::m_nSources
 

Definition at line 125 of file MatchObjects.h.

Referenced by Add(), Added(), CMatchFile(), Compare(), CMatchCtrl::DrawItem(), Filter(), and CSearchDetailPanel::Update().

DWORD CMatchFile::m_nSpeed
 

Definition at line 144 of file MatchObjects.h.

Referenced by Add(), Added(), CMatchFile(), Compare(), Filter(), and Serialize().

DWORD CMatchFile::m_nTotal
 

Definition at line 123 of file MatchObjects.h.

Referenced by Add(), CMatchFile(), and Serialize().

CQueryHit* CMatchFile::m_pBest
 

Definition at line 122 of file MatchObjects.h.

Referenced by CDownloads::Add(), Added(), CMatchFile(), CRelatedSearch::CRelatedSearch(), CMatchCtrl::DrawItem(), Filter(), GetFilteredCount(), GetItemCount(), CMatchTipCtrl::LoadFromFile(), CRemote::PageSearch(), and CSearchDetailPanel::Update().

CString* CMatchFile::m_pColumns
 

Definition at line 159 of file MatchObjects.h.

Referenced by Added(), CMatchFile(), Compare(), CMatchCtrl::DrawItem(), and ~CMatchFile().

MD4 CMatchFile::m_pED2K
 

Definition at line 136 of file MatchObjects.h.

Referenced by Add(), CDownloads::Add(), CMatchList::AddHits(), CRelatedSearch::CRelatedSearch(), CMatchListView::GetNext(), GetURN(), CMatchTipCtrl::LoadFromFile(), CBaseMatchWnd::OnSearchDownload(), CBaseMatchWnd::OnSearchDownloadNow(), Serialize(), and CMatchList::Serialize().

CQueryHit* CMatchFile::m_pHits
 

Definition at line 121 of file MatchObjects.h.

Referenced by Add(), CDownloads::Add(), Check(), ClearNew(), CMatchFile(), Compare(), CRelatedSearch::CRelatedSearch(), Expand(), Filter(), CMatchCtrl::GetItemRect(), CMatchList::GetSelectedHit(), CMatchCtrl::HitTest(), CMatchTipCtrl::LoadFromFile(), CMatchCtrl::OnPaint(), CBrowseFrameCtrl::OnTreeSelection(), CRemote::PageSearch(), Serialize(), CSearchDetailPanel::Update(), and ~CMatchFile().

CMatchList* CMatchFile::m_pList
 

Definition at line 120 of file MatchObjects.h.

Referenced by Added(), CMatchFile(), Compare(), Expand(), Filter(), GetFilteredCount(), GetItemCount(), and CSearchDetailPanel::Update().

CMatchFile* CMatchFile::m_pNextED2K
 

Definition at line 129 of file MatchObjects.h.

Referenced by CMatchList::AddHits(), CMatchFile(), and CMatchList::Serialize().

CMatchFile* CMatchFile::m_pNextSHA1
 

Definition at line 127 of file MatchObjects.h.

Referenced by CMatchList::AddHits(), CMatchFile(), and CMatchList::Serialize().

CMatchFile* CMatchFile::m_pNextSize
 

Definition at line 126 of file MatchObjects.h.

Referenced by CMatchList::AddHits(), CMatchFile(), and CMatchList::Serialize().

CMatchFile* CMatchFile::m_pNextTiger
 

Definition at line 128 of file MatchObjects.h.

Referenced by CMatchList::AddHits(), CMatchFile(), and CMatchList::Serialize().

BYTE* CMatchFile::m_pPreview
 

Definition at line 161 of file MatchObjects.h.

Referenced by CSearchDetailPanel::CachePreviewImage(), CMatchFile(), CSearchDetailPanel::DrawThumbnail(), Serialize(), CSearchDetailPanel::Update(), and ~CMatchFile().

SHA1 CMatchFile::m_pSHA1
 

Definition at line 132 of file MatchObjects.h.

Referenced by Add(), CDownloads::Add(), Added(), CMatchList::AddHits(), CRelatedSearch::CRelatedSearch(), CMatchListView::GetNext(), GetURN(), CMatchTipCtrl::LoadFromFile(), CBaseMatchWnd::OnSearchDownload(), CBaseMatchWnd::OnSearchDownloadNow(), Serialize(), CMatchList::Serialize(), and CSearchDetailPanel::Update().

TIGEROOT CMatchFile::m_pTiger
 

Definition at line 134 of file MatchObjects.h.

Referenced by Add(), CDownloads::Add(), CMatchList::AddHits(), CRelatedSearch::CRelatedSearch(), CMatchListView::GetNext(), GetURN(), CMatchTipCtrl::LoadFromFile(), CBaseMatchWnd::OnSearchDownload(), CBaseMatchWnd::OnSearchDownloadNow(), Serialize(), and CMatchList::Serialize().

CString CMatchFile::m_sSize
 

Definition at line 138 of file MatchObjects.h.

Referenced by CMatchFile(), CMatchCtrl::DrawItem(), CMatchTipCtrl::LoadFromFile(), Serialize(), and CSearchDetailPanel::Update().

CString CMatchFile::m_sSpeed
 

Definition at line 145 of file MatchObjects.h.

Referenced by Added(), CMatchCtrl::DrawItem(), CRemote::PageSearch(), and Serialize().


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