#include <Library.h>
Inheritance diagram for CLibrary:
Public Member Functions | |
CLibrary () | |
virtual | ~CLibrary () |
BOOL (WINAPI *m_pfnGFAEW)(LPCWSTR | |
BOOL (WINAPI *m_pfnGFAEA)(LPCSTR | |
void | Update () |
void | Inhibit (BOOL bInhibit) |
CLibraryFile * | LookupFile (DWORD nIndex, BOOL bSharedOnly=FALSE, BOOL bAvailableOnly=FALSE) |
CAlbumFolder * | GetAlbumRoot () |
CPtrList * | Search (CQuerySearch *pSearch, int nMaximum=0, BOOL bLocal=FALSE) |
void | Clear () |
BOOL | Load () |
void | Save () |
void | StartThread () |
void | StopThread () |
Public Attributes | |
CMutex | m_pSection |
DWORD | m_nUpdateCookie |
DWORD | m_nScanCount |
HINSTANCE | m_hKernel |
GET_FILEEX_INFO_LEVELS | |
LPVOID | |
Protected Member Functions | |
void | AddFile (CLibraryFile *pFile) |
void | RemoveFile (CLibraryFile *pFile) |
void | OnFileDelete (CLibraryFile *pFile) |
void | Serialize (CArchive &ar) |
Protected Attributes | |
DWORD | m_nScanCookie |
DWORD | m_nUpdateSaved |
int | m_nFileSwitch |
DWORD | m_nInhibit |
HANDLE | m_hThread |
BOOL | m_bThread |
CEvent | m_pWakeup |
STDMETHOD( | get_Application )(IApplication FAR *FAR *ppApplication) |
STDMETHOD( | get_Library )(ILibrary FAR *FAR *ppLibrary) |
STDMETHOD( | get_Folders )(ILibraryFolders FAR *FAR *ppFolders) |
STDMETHOD( | get_Albums )(IUnknown FAR *FAR *ppAlbums) |
STDMETHOD( | get_Files )(ILibraryFiles FAR *FAR *ppFiles) |
STDMETHOD( | FindByName )(BSTR sName, ILibraryFile FAR *FAR *ppFile) |
STDMETHOD( | FindByPath )(BSTR sPath, ILibraryFile FAR *FAR *ppFile) |
STDMETHOD( | FindByURN )(BSTR sURN, ILibraryFile FAR *FAR *ppFile) |
STDMETHOD( | FindByIndex )(LONG nIndex, ILibraryFile FAR *FAR *ppFile) |
Private Member Functions | |
void | OnRun () |
BOOL | ThreadScan () |
Static Private Member Functions | |
static UINT | ThreadStart (LPVOID pParam) |
Friends | |
class | CLibraryFolder |
class | CLibraryFile |
class | CLibraryBuilder |
|
Definition at line 59 of file Library.cpp. References CComObject::EnableDispatch(), and NULL. |
|
Definition at line 84 of file Library.cpp. |
|
|
|
|
Referenced by Load(), and ThreadScan(). |
|
Definition at line 179 of file Library.cpp. References CLibraryMaps::Clear(), CLibraryFolders::Clear(), CLibraryDictionary::Clear(), CLibraryHistory::Clear(), LibraryDictionary, LibraryFolders, LibraryHistory, LibraryMaps, m_nUpdateCookie, m_pSection, and StopThread(). Referenced by CShareazaApp::ExitInstance(), Load(), and Serialize(). |
|
Definition at line 108 of file Library.cpp. References CLibraryFolders::GetAlbumRoot(), and LibraryFolders. Referenced by AddFile(), CLibraryFrame::Display(), CLibraryHeaderPanel::GetSelectedAlbum(), Load(), CLibraryTreeView::OnLibraryFolderNew(), CLibraryFrame::RunLocalSearch(), CLibraryTileView::Update(), CLibraryTreeView::UpdateVirtual(), and CLocalSearch::WriteVirtualTree(). |
|
Definition at line 92 of file Library.cpp. References m_nInhibit. |
|
|
|
Definition at line 148 of file Library.cpp. References CHashDatabase::DeleteAll(), LibraryFolders, LibraryHashDB, LibraryHistory, NULL, CLibraryHistory::OnFileDelete(), and CLibraryFolders::OnFileDelete(). Referenced by CLibraryFile::Ghost(), and CLibraryFile::OnDelete(). |
|
Definition at line 397 of file Library.cpp. References m_bThread, m_nInhibit, m_pWakeup, and ThreadScan(). Referenced by ThreadStart(). |
|
|
Definition at line 287 of file Library.cpp. References CSettings::General, m_nFileSwitch, m_pSection, Serialize(), Settings, and CSettings::sGeneral::UserPath. Referenced by CShareazaApp::ExitInstance(), CLibraryTreeView::OnLibraryRemove(), and ThreadScan(). |
|
Definition at line 160 of file Library.cpp. References LibraryDictionary, LibraryMaps, m_pSection, NULL, CLibraryDictionary::Search(), and CLibraryMaps::Search(). Referenced by CLocalSearch::ExecuteSharedFiles(), and CLibraryFrame::RunLocalSearch(). |
|
Definition at line 322 of file Library.cpp. References Clear(), LIBRARY_SER_VERSION, LibraryFolders, LibraryHistory, LibraryMaps, CLibraryHistory::Serialize(), CLibraryFolders::Serialize(), CLibraryMaps::Serialize1(), and CLibraryMaps::Serialize2(). |
|
Definition at line 346 of file Library.cpp. References LibraryBuilder, m_bThread, m_hThread, NULL, CLibraryBuilder::StartThread(), and ThreadStart(). Referenced by CLibraryFolders::AddFolder(), Load(), and ThreadScan(). |
|
Definition at line 358 of file Library.cpp. References LibraryBuilder, m_bThread, m_hThread, m_pWakeup, CShareazaApp::Message(), MSG_DEBUG, NULL, CLibraryBuilder::StopThread(), and theApp. Referenced by Clear(), CShareazaApp::ExitInstance(), and CMainWnd::OnClose(). |
|
Definition at line 409 of file Library.cpp. References BOOL(), CLibraryDictionary::BuildHashTable(), LibraryDictionary, LibraryFolders, m_bThread, m_nScanCount, m_nUpdateCookie, m_nUpdateSaved, m_pSection, Save(), StartThread(), and CLibraryFolders::ThreadScan(). Referenced by OnRun(). |
|
Definition at line 390 of file Library.cpp. References OnRun(). Referenced by StartThread(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 54 of file Library.h. Referenced by OnRun(), StartThread(), StopThread(), CLibraryFolder::ThreadScan(), and ThreadScan(). |
|
Definition at line 57 of file Library.h. Referenced by ~CLibrary(). |
|
Definition at line 53 of file Library.h. Referenced by StartThread(), and StopThread(). |
|
Definition at line 50 of file Library.h. Referenced by Save(). |
|
|
|
Definition at line 48 of file Library.h. Referenced by CLibraryFolder::ThreadScan(). |
|
Definition at line 46 of file Library.h. Referenced by CFolderScanDlg::CFolderScanDlg(), CFolderScanDlg::OnTimer(), and ThreadScan(). |
|
|
Definition at line 49 of file Library.h. Referenced by ThreadScan(). |
|
|
Definition at line 55 of file Library.h. Referenced by OnRun(), CLibraryFolder::Scan(), and StopThread(). |