#include <LibraryMaps.h>
Inheritance diagram for CLibraryMaps:

Public Member Functions | |
| CLibraryMaps () | |
| virtual | ~CLibraryMaps () |
| POSITION | GetFileIterator () const |
| CLibraryFile * | GetNextFile (POSITION &pos) const |
| int | GetFileCount () const |
| void | GetStatistics (DWORD *pnFiles, QWORD *pnVolume) |
| CLibraryFile * | LookupFile (DWORD nIndex, BOOL bSharedOnly=FALSE, BOOL bAvailableOnly=FALSE) |
| CLibraryFile * | LookupFileByName (LPCTSTR pszName, BOOL bSharedOnly=FALSE, BOOL bAvailableOnly=FALSE) |
| CLibraryFile * | LookupFileByPath (LPCTSTR pszPath, BOOL bSharedOnly=FALSE, BOOL bAvailableOnly=FALSE) |
| CLibraryFile * | LookupFileByURN (LPCTSTR pszURN, BOOL bSharedOnly=FALSE, BOOL bAvailableOnly=FALSE) |
| CLibraryFile * | LookupFileBySHA1 (const SHA1 *pSHA1, BOOL bSharedOnly=FALSE, BOOL bAvailableOnly=FALSE) |
| CLibraryFile * | LookupFileByTiger (const TIGEROOT *pTiger, BOOL bSharedOnly=FALSE, BOOL bAvailableOnly=FALSE) |
| CLibraryFile * | LookupFileByED2K (const MD4 *pED2K, BOOL bSharedOnly=FALSE, BOOL bAvailableOnly=FALSE) |
Protected Member Functions | |
| void | Clear () |
| DWORD | AllocateIndex () |
| void | OnFileAdd (CLibraryFile *pFile) |
| void | OnFileRemove (CLibraryFile *pFile) |
| void | CullDeletedFiles (CLibraryFile *pMatch) |
| CPtrList * | Search (CQuerySearch *pSearch, int nMaximum, BOOL bLocal) |
| void | Serialize1 (CArchive &ar, int nVersion) |
| void | Serialize2 (CArchive &ar, int nVersion) |
Protected Attributes | |
| CMapPtrToPtr | m_pIndexMap |
| CMapStringToOb | m_pNameMap |
| CMapStringToOb | m_pPathMap |
| CLibraryFile ** | m_pSHA1Map |
| CLibraryFile ** | m_pTigerMap |
| CLibraryFile ** | m_pED2KMap |
| CPtrList | m_pDeleted |
| DWORD | m_nNextIndex |
| DWORD | m_nFiles |
| QWORD | m_nVolume |
| STDMETHOD( | get_Application )(IApplication FAR *FAR *ppApplication) |
| STDMETHOD( | get_Library )(ILibrary FAR *FAR *ppLibrary) |
| STDMETHOD( | get__NewEnum )(IUnknown FAR *FAR *ppEnum) |
| STDMETHOD( | get_Item )(VARIANT vIndex, ILibraryFile FAR *FAR *ppFile) |
| STDMETHOD( | get_Count )(LONG FAR *pnCount) |
Friends | |
| class | CLibrary |
| class | CLibraryBuilder |
| class | CLibraryFile |
|
|
Definition at line 51 of file LibraryMaps.cpp. References HASH_SIZE. |
|
|
Definition at line 68 of file LibraryMaps.cpp. References m_pED2KMap, m_pSHA1Map, and m_pTigerMap. |
|
|
Definition at line 280 of file LibraryMaps.cpp. References LookupFile(), and m_nNextIndex. Referenced by OnFileAdd(). |
|
|
Definition at line 261 of file LibraryMaps.cpp. References GetFileIterator(), GetNextFile(), HASH_SIZE, m_nFiles, m_nVolume, m_pED2KMap, m_pIndexMap, m_pNameMap, m_pPathMap, m_pSHA1Map, and m_pTigerMap. Referenced by CLibrary::Clear(). |
|
|
Definition at line 446 of file LibraryMaps.cpp. References CLibraryFile::Delete, CLibraryFile::IsAvailable(), Library, LookupFileByED2K(), LookupFileBySHA1(), LookupFileByTiger(), and CLibrary::m_pSection. Referenced by CLibraryBuilder::HashFile(). |
|
|
Definition at line 91 of file LibraryMaps.cpp. References m_pIndexMap. Referenced by CHashProgressBar::Run(). |
|
|
Definition at line 78 of file LibraryMaps.cpp. References m_pIndexMap. Referenced by CLibraryDictionary::BuildHashTable(), Clear(), CLibraryFolders::CreateAlbumTree(), Search(), CEDNeighbour::SendSharedFiles(), CAlbumFolder::SetCollection(), CLibraryThumbView::Update(), CLibraryDetailView::Update(), and CLibraryAlbumView::Update(). |
|
|
Definition at line 83 of file LibraryMaps.cpp. References m_pIndexMap, and NULL. Referenced by CLibraryDictionary::BuildHashTable(), Clear(), CLibraryFolders::CreateAlbumTree(), Search(), CEDNeighbour::SendSharedFiles(), CAlbumFolder::SetCollection(), CLibraryThumbView::Update(), CLibraryDetailView::Update(), and CLibraryAlbumView::Update(). |
|
||||||||||||
|
Definition at line 96 of file LibraryMaps.cpp. References m_nFiles, and m_nVolume. Referenced by CG1Neighbour::OnPing(), CFolderTipCtrl::OnPrepare(), CG2Neighbour::SendLNI(), CLibraryHeaderPanel::Update(), CHomeLibraryBox::Update(), and CMainWnd::UpdateMessages(). |
|
||||||||||||||||
|
Definition at line 105 of file LibraryMaps.cpp. References Library, m_pIndexMap, CLibrary::m_pSection, and NULL. Referenced by AllocateIndex(), CLibrary::LookupFile(), OnFileAdd(), OnFileRemove(), and CLibraryDictionary::Search(). |
|
||||||||||||||||
|
||||||||||||||||
|
Definition at line 124 of file LibraryMaps.cpp. References Library, m_pNameMap, CLibrary::m_pSection, and NULL. Referenced by OnFileRemove(), and CUploadTransferHTTP::OnHeadersComplete(). |
|
||||||||||||||||
|
Definition at line 141 of file LibraryMaps.cpp. References Library, m_pPathMap, CLibrary::m_pSection, and NULL. Referenced by CMediaListCtrl::Add(), CLibraryWnd::OnCollection(), CDownloadsWnd::OnDownloadsFileDelete(), CDownloadsWnd::OnDownloadsRate(), OnFileRemove(), CUploadTransferED2K::OpenFile(), CMediaFrame::OpenFile(), and CUploadTransferHTTP::OpenFileSendHeaders(). |
|
||||||||||||||||
|
||||||||||||||||
|
Definition at line 210 of file LibraryMaps.cpp. References HASH_MASK, CLibraryFile::IsAvailable(), CLibraryFile::IsShared(), Library, CLibraryFile::m_pNextTiger, CLibrary::m_pSection, CLibraryFile::m_pTiger, m_pTigerMap, and NULL. Referenced by CMatchFile::Add(), CBaseMatchWnd::CheckExisting(), CDeleteFileDlg::Create(), CullDeletedFiles(), CCollectionFile::File::IsComplete(), CMatchTipCtrl::LoadFromFile(), LookupFileByURN(), and Search(). |
|
||||||||||||||||
|
Definition at line 158 of file LibraryMaps.cpp. References CED2K::HashFromURN(), CTigerNode::HashFromURN(), CSHA::HashFromURN(), LookupFileByED2K(), LookupFileBySHA1(), LookupFileByTiger(), NULL, and pTiger. Referenced by CUploadTransferHTTP::OnHeadersComplete(). |
|
|
Definition at line 289 of file LibraryMaps.cpp. References AllocateIndex(), HASH_MASK, LookupFile(), m_nFiles, m_nVolume, m_pDeleted, m_pED2KMap, m_pIndexMap, m_pNameMap, CLibraryFile::m_pNextED2K, CLibraryFile::m_pNextSHA1, CLibraryFile::m_pNextTiger, m_pPathMap, m_pSHA1Map, m_pTigerMap, and NULL. Referenced by CLibrary::AddFile(). |
|
|
Definition at line 359 of file LibraryMaps.cpp. References HASH_MASK, LookupFile(), LookupFileByName(), LookupFileByPath(), m_nFiles, m_nVolume, m_pDeleted, m_pED2KMap, CLibraryFile::m_pFolder, m_pIndexMap, m_pNameMap, CLibraryFile::m_pNextED2K, CLibraryFile::m_pNextSHA1, CLibraryFile::m_pNextTiger, m_pPathMap, m_pSHA1Map, m_pTigerMap, and NULL. Referenced by CLibrary::RemoveFile(). |
|
||||||||||||||||
|
Definition at line 481 of file LibraryMaps.cpp. References GetFileIterator(), GetNextFile(), CLibraryFile::IsAvailable(), CLibraryFile::IsShared(), LookupFileBySHA1(), LookupFileByTiger(), CLibraryFile::m_bED2K, CQuerySearch::m_bED2K, CQuerySearch::m_bSHA1, CLibraryFile::m_bSHA1, CQuerySearch::m_bTiger, CQuerySearch::m_pED2K, CLibraryFile::m_pED2K, CQuerySearch::m_pSHA1, CQuerySearch::m_pTiger, and NULL. Referenced by CLibrary::Search(). |
|
||||||||||||
|
Definition at line 558 of file LibraryMaps.cpp. References m_nNextIndex. Referenced by CLibrary::Serialize(). |
|
||||||||||||
|
Definition at line 570 of file LibraryMaps.cpp. References CLibraryFile, m_pDeleted, NULL, and CLibraryFile::Serialize(). Referenced by CLibrary::Serialize(). |
|
|
Definition at line 89 of file LibraryMaps.h. |
|
|
Definition at line 90 of file LibraryMaps.h. |
|
|
Definition at line 91 of file LibraryMaps.h. Referenced by Serialize2(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 49 of file LibraryMaps.h. Referenced by Clear(), GetStatistics(), OnFileAdd(), and OnFileRemove(). |
|
|
Definition at line 48 of file LibraryMaps.h. Referenced by AllocateIndex(), and Serialize1(). |
|
|
Definition at line 50 of file LibraryMaps.h. Referenced by Clear(), GetStatistics(), OnFileAdd(), and OnFileRemove(). |
|
|
Definition at line 46 of file LibraryMaps.h. Referenced by OnFileAdd(), OnFileRemove(), and Serialize2(). |
|
|
Definition at line 45 of file LibraryMaps.h. Referenced by Clear(), LookupFileByED2K(), OnFileAdd(), OnFileRemove(), and ~CLibraryMaps(). |
|
|
Definition at line 40 of file LibraryMaps.h. Referenced by Clear(), GetFileCount(), GetFileIterator(), GetNextFile(), LookupFile(), OnFileAdd(), and OnFileRemove(). |
|
|
Definition at line 41 of file LibraryMaps.h. Referenced by Clear(), LookupFileByName(), OnFileAdd(), and OnFileRemove(). |
|
|
Definition at line 42 of file LibraryMaps.h. Referenced by Clear(), LookupFileByPath(), OnFileAdd(), and OnFileRemove(). |
|
|
Definition at line 43 of file LibraryMaps.h. Referenced by Clear(), LookupFileBySHA1(), OnFileAdd(), OnFileRemove(), and ~CLibraryMaps(). |
|
|
Definition at line 44 of file LibraryMaps.h. Referenced by Clear(), LookupFileByTiger(), OnFileAdd(), OnFileRemove(), and ~CLibraryMaps(). |
1.4.2