#include <LibraryBuilder.h>
Public Member Functions | |
CLibraryBuilder () | |
virtual | ~CLibraryBuilder () |
void | Add (CLibraryFile *pFile) |
void | Remove (CLibraryFile *pFile) |
int | GetRemaining () |
CString | GetCurrentFile () |
void | RequestPriority (LPCTSTR pszPath) |
void | Clear () |
BOOL | StartThread () |
void | StopThread () |
void | BoostPriority (BOOL bPriority) |
BOOL | GetBoostPriority () |
void | UpdateStatus (CString *pStr, int *pRemaining) |
Protected Member Functions | |
void | OnRun () |
BOOL | HashFile (HANDLE hFile, BOOL bPriority, SHA1 *pSHA1) |
BOOL | SubmitMetadata (LPCTSTR pszSchemaURI, CXMLElement *&pXML) |
BOOL | SubmitCorrupted () |
BOOL | DetectVirtualFile (HANDLE hFile, QWORD &nOffset, QWORD &nLength) |
BOOL | DetectVirtualID3v1 (HANDLE hFile, QWORD &nOffset, QWORD &nLength) |
BOOL | DetectVirtualID3v2 (HANDLE hFile, QWORD &nOffset, QWORD &nLength) |
Static Protected Member Functions | |
static UINT | ThreadStart (LPVOID pParam) |
Protected Attributes | |
CCriticalSection | m_pSection |
CPtrList | m_pFiles |
CStringList | m_pPriority |
HANDLE | m_hThread |
BOOL | m_bThread |
BOOL | m_bPriority |
DWORD | m_nHashSleep |
DWORD | m_nIndex |
CString | m_sPath |
DWORD | m_tActive |
BYTE * | m_pBuffer |
CLibraryBuilderInternals * | m_pInternals |
CLibraryBuilderPlugins * | m_pPlugins |
Friends | |
class | CLibraryBuilderInternals |
class | CLibraryBuilderPlugins |
|
Definition at line 55 of file LibraryBuilder.cpp. References CLibraryBuilderInternals, CLibraryBuilderPlugins, m_bPriority, m_bThread, m_hThread, m_nHashSleep, m_nIndex, m_pBuffer, m_pInternals, m_pPlugins, m_tActive, and NULL. |
|
Definition at line 69 of file LibraryBuilder.cpp. References Clear(), m_pBuffer, m_pInternals, m_pPlugins, and StopThread(). |
|
Definition at line 82 of file LibraryBuilder.cpp. References m_bThread, m_pFiles, m_pSection, NULL, and StartThread(). Referenced by CLibrary::AddFile(). |
|
Definition at line 220 of file LibraryBuilder.cpp. References m_bPriority, m_bThread, m_hThread, and NULL. Referenced by CLibrary::Load(), CMainWnd::OnLibraryHashPriority(), and CLibrarySettingsPage::OnOK(). |
|
Definition at line 157 of file LibraryBuilder.cpp. References m_pFiles, m_pPriority, and m_pSection. Referenced by ~CLibraryBuilder(). |
|
Definition at line 528 of file LibraryBuilder.cpp. References _tcsistr(), DetectVirtualID3v1(), DetectVirtualID3v2(), m_sPath, and NULL. Referenced by HashFile(). |
|
Definition at line 541 of file LibraryBuilder.cpp. References ID3V1_TAG, and NULL. Referenced by DetectVirtualFile(). |
|
Definition at line 562 of file LibraryBuilder.cpp. References ID3_DESYNC_SIZE, ID3V2_FOOTERPRESENT, ID3V2_KNOWNMASK, ID3V2_TAG, ID3V2_UNSYNCHRONISED, NULL, and SWAP_LONG. Referenced by DetectVirtualFile(). |
|
Definition at line 232 of file LibraryBuilder.cpp. References m_bPriority. Referenced by CMainWnd::OnLibraryHashPriority(), CMainWnd::OnUpdateLibraryHashPriority(), and CHomeLibraryBox::Update(). |
|
Definition at line 118 of file LibraryBuilder.cpp. References m_bThread, m_pSection, and m_sPath. |
|
Definition at line 109 of file LibraryBuilder.cpp. References m_bThread, m_pFiles, and m_pSection. Referenced by CHomeLibraryBox::Update(). |
|
|
Definition at line 267 of file LibraryBuilder.cpp. References CLibraryBuilderPlugins::Cleanup(), CLibraryBuilderInternals::ExtractMetadata(), CLibraryBuilderPlugins::ExtractMetadata(), HashFile(), Library, CLibrary::LookupFile(), m_bThread, m_nIndex, m_pBuffer, m_pFiles, m_pInternals, m_pPlugins, m_pPriority, CLibrary::m_pSection, m_pSection, m_sPath, m_tActive, CShareazaApp::Message(), MSG_DEBUG, NULL, and theApp. Referenced by ThreadStart(). |
|
Definition at line 92 of file LibraryBuilder.cpp. References CLibraryFile::GetPath(), CLibraryFile::m_nIndex, m_pFiles, m_pPriority, and m_pSection. Referenced by CLibrary::RemoveFile(). |
|
Definition at line 146 of file LibraryBuilder.cpp. References m_pPriority, m_pSection, and NULL. Referenced by CLibraryWnd::OnCollection(), and CDownload::OnMoved(). |
|
Definition at line 168 of file LibraryBuilder.cpp. References CLibraryBuilderInternals::LoadSettings(), m_bPriority, m_bThread, m_hThread, m_pFiles, m_pInternals, m_pSection, m_tActive, NULL, and ThreadStart(). Referenced by Add(), and CLibrary::StartThread(). |
|
Definition at line 191 of file LibraryBuilder.cpp. References m_bThread, m_hThread, m_tActive, CShareazaApp::Message(), MSG_DEBUG, NULL, and theApp. Referenced by CLibrary::StopThread(), and ~CLibraryBuilder(). |
|
Definition at line 513 of file LibraryBuilder.cpp. References Library, CLibrary::LookupFile(), m_nIndex, and CLibrary::m_pSection. Referenced by CLibraryBuilderPlugins::ExtractMetadata(), and CLibraryBuilderInternals::SubmitCorrupted(). |
|
Definition at line 464 of file LibraryBuilder.cpp. References CXMLElement::AddElement(), CLibrary::AddFile(), CXMLElement::Detach(), CSchemaCache::Get(), CSchema::Instantiate(), Library, CLibrary::LookupFile(), m_nIndex, CLibrary::m_pSection, NULL, CLibrary::RemoveFile(), SchemaCache, CLibrary::Update(), and CSchema::Validate(). Referenced by CLibraryBuilderPlugins::ExtractMetadata(), and CLibraryBuilderInternals::SubmitMetadata(). |
|
Definition at line 260 of file LibraryBuilder.cpp. References OnRun(). Referenced by StartThread(). |
|
Definition at line 127 of file LibraryBuilder.cpp. References m_bThread, m_pFiles, m_pSection, m_sPath, and NULL. Referenced by CHashProgressBar::Run(). |
|
Definition at line 81 of file LibraryBuilder.h. Referenced by CLibraryBuilder(). |
|
Definition at line 82 of file LibraryBuilder.h. Referenced by CLibraryBuilder(). |
|
Definition at line 47 of file LibraryBuilder.h. Referenced by BoostPriority(), CLibraryBuilder(), GetBoostPriority(), HashFile(), CLibraryBuilderInternals::ScanMP3Frame(), and StartThread(). |
|
Definition at line 46 of file LibraryBuilder.h. Referenced by Add(), BoostPriority(), CLibraryBuilder(), GetCurrentFile(), GetRemaining(), HashFile(), OnRun(), CLibraryBuilderInternals::ReadOGG(), CLibraryBuilderInternals::ScanMP3Frame(), StartThread(), StopThread(), and UpdateStatus(). |
|
Definition at line 45 of file LibraryBuilder.h. Referenced by BoostPriority(), CLibraryBuilder(), StartThread(), and StopThread(). |
|
Definition at line 48 of file LibraryBuilder.h. Referenced by CLibraryBuilder(), and HashFile(). |
|
Definition at line 49 of file LibraryBuilder.h. Referenced by CLibraryBuilder(), HashFile(), OnRun(), SubmitCorrupted(), and SubmitMetadata(). |
|
Definition at line 52 of file LibraryBuilder.h. Referenced by CLibraryBuilder(), HashFile(), OnRun(), and ~CLibraryBuilder(). |
|
Definition at line 43 of file LibraryBuilder.h. Referenced by Add(), Clear(), GetRemaining(), OnRun(), Remove(), StartThread(), and UpdateStatus(). |
|
Definition at line 54 of file LibraryBuilder.h. Referenced by CLibraryBuilder(), OnRun(), StartThread(), and ~CLibraryBuilder(). |
|
Definition at line 55 of file LibraryBuilder.h. Referenced by CLibraryBuilder(), OnRun(), and ~CLibraryBuilder(). |
|
Definition at line 44 of file LibraryBuilder.h. Referenced by Clear(), OnRun(), Remove(), and RequestPriority(). |
|
Definition at line 42 of file LibraryBuilder.h. Referenced by Add(), Clear(), GetCurrentFile(), GetRemaining(), OnRun(), Remove(), RequestPriority(), StartThread(), and UpdateStatus(). |
|
Definition at line 50 of file LibraryBuilder.h. Referenced by DetectVirtualFile(), GetCurrentFile(), OnRun(), and UpdateStatus(). |
|
Definition at line 51 of file LibraryBuilder.h. Referenced by CLibraryBuilder(), OnRun(), StartThread(), and StopThread(). |