#include <BitziDownloader.h>
Public Member Functions | |
CBitziDownloader () | |
virtual | ~CBitziDownloader () |
void | AddFile (DWORD nIndex) |
int | GetFileCount () |
BOOL | Start (CBitziDownloadDlg *pDlg=NULL) |
void | Stop () |
BOOL | IsWorking () |
Protected Member Functions | |
void | OnRun () |
BOOL | BuildRequest () |
BOOL | ExecuteRequest () |
BOOL | DecodeResponse () |
CString | LookupValue (LPCTSTR pszPath) |
CXMLElement * | ImportData (CSchema *pSchema) |
BOOL | SubmitMetaData (CXMLElement *pXML) |
BOOL | MergeMetaData (CXMLElement *pOutput, CXMLElement *pInput) |
Static Protected Member Functions | |
static UINT | ThreadStart (LPVOID pParam) |
Protected Attributes | |
CPtrList | m_pFiles |
CCriticalSection | m_pSection |
CBitziDownloadDlg * | m_pDlg |
HANDLE | m_hThread |
HINTERNET | m_hInternet |
HINTERNET | m_hSession |
HINTERNET | m_hRequest |
BOOL | m_bFinished |
DWORD | m_nDelay |
DWORD | m_nFailures |
DWORD | m_nFileIndex |
CString | m_sFileName |
CString | m_sFileHash |
CString | m_sURL |
CString | m_sResponse |
CXMLElement * | m_pXML |
|
Definition at line 44 of file BitziDownloader.cpp. References m_bFinished, m_hInternet, m_hRequest, m_hSession, m_hThread, m_nDelay, m_nFailures, m_pDlg, m_pXML, and NULL. |
|
Definition at line 57 of file BitziDownloader.cpp. |
|
Definition at line 68 of file BitziDownloader.cpp. References m_pFiles, and m_pSection. Referenced by CBitziDownloadDlg::AddFile(). |
|
Definition at line 235 of file BitziDownloader.cpp. References CSettings::sLibrary::BitziXML, CSHA::HashToString(), CSettings::Library, Library, CLibrary::LookupFile(), CLibraryFile::m_bSHA1, m_nFileIndex, CLibrary::m_pSection, CLibraryFile::m_pSHA1, m_sFileHash, m_sFileName, CLibraryFile::m_sName, m_sURL, Replace(), and Settings. Referenced by OnRun(). |
|
Definition at line 356 of file BitziDownloader.cpp. References CXMLElement::FromString(), CSchemaCache::GetIterator(), CSchemaCache::GetNext(), ImportData(), LookupValue(), m_pXML, CSchema::m_sBitziTest, m_sResponse, NULL, SchemaCache, and SubmitMetaData(). Referenced by OnRun(). |
|
Definition at line 261 of file BitziDownloader.cpp. References m_hInternet, m_hRequest, m_hSession, m_nDelay, m_sResponse, m_sURL, and NULL. Referenced by OnRun(). |
|
Definition at line 74 of file BitziDownloader.cpp. References m_pFiles, and m_pSection. Referenced by CBitziDownloadDlg::OnInitDialog(). |
|
Definition at line 427 of file BitziDownloader.cpp. References CXMLElement::AddAttribute(), CXMLElement::AddElement(), LookupValue(), CSchemaBitzi::m_nFactor, CSchemaBitzi::m_sFrom, CSchemaBitzi::m_sTo, and NULL. Referenced by DecodeResponse(). |
|
Definition at line 142 of file BitziDownloader.cpp. References m_bFinished, m_hThread, and NULL. Referenced by CBitziDownloadDlg::OnTimer(). |
|
Definition at line 383 of file BitziDownloader.cpp. References CXMLElement::GetAttributeValue(), CXMLElement::GetElementByName(), CXMLNode::GetName(), m_pXML, and NULL. Referenced by DecodeResponse(), and ImportData(). |
|
Definition at line 496 of file BitziDownloader.cpp. References CXMLAttribute::Clone(), CXMLElement::Clone(), CXMLElement::GetAttributeIterator(), CXMLElement::GetElementIterator(), CXMLNode::GetName(), CXMLElement::GetNextAttribute(), CXMLElement::GetNextElement(), and NULL. Referenced by SubmitMetaData(). |
|
Definition at line 160 of file BitziDownloader.cpp. References BuildRequest(), DecodeResponse(), ExecuteRequest(), m_bFinished, m_hInternet, m_hRequest, m_hSession, m_nDelay, m_nFailures, m_nFileIndex, m_pDlg, m_pFiles, m_pSection, m_pXML, m_sFileName, m_sResponse, NULL, CBitziDownloadDlg::OnFailure(), CBitziDownloadDlg::OnFinishedFile(), CBitziDownloadDlg::OnNextFile(), CBitziDownloadDlg::OnRequesting(), and CBitziDownloadDlg::OnSuccess(). Referenced by ThreadStart(). |
|
Definition at line 83 of file BitziDownloader.cpp. References m_bFinished, m_hInternet, m_hRequest, m_hSession, m_hThread, m_nDelay, m_nFailures, m_pDlg, NULL, Settings, CSettings::SmartAgent(), and ThreadStart(). Referenced by CBitziDownloadDlg::OnInitDialog(). |
|
Definition at line 108 of file BitziDownloader.cpp. References m_hInternet, m_hSession, m_hThread, m_pDlg, CShareazaApp::Message(), MSG_DEBUG, NULL, and theApp. Referenced by CBitziDownloadDlg::OnCancel(), and ~CBitziDownloader(). |
|
Definition at line 472 of file BitziDownloader.cpp. References Library, CLibrary::LookupFile(), m_nFileIndex, CLibraryFile::m_pMetadata, CLibrary::m_pSection, MergeMetaData(), NULL, and CLibraryFile::SetMetadata(). Referenced by DecodeResponse(). |
|
Definition at line 150 of file BitziDownloader.cpp. References OnRun(). Referenced by Start(). |
|
Definition at line 49 of file BitziDownloader.h. Referenced by CBitziDownloader(), IsWorking(), OnRun(), and Start(). |
|
Definition at line 46 of file BitziDownloader.h. Referenced by CBitziDownloader(), ExecuteRequest(), OnRun(), Start(), and Stop(). |
|
Definition at line 48 of file BitziDownloader.h. Referenced by CBitziDownloader(), ExecuteRequest(), OnRun(), and Start(). |
|
Definition at line 47 of file BitziDownloader.h. Referenced by CBitziDownloader(), ExecuteRequest(), OnRun(), Start(), and Stop(). |
|
Definition at line 45 of file BitziDownloader.h. Referenced by CBitziDownloader(), IsWorking(), Start(), and Stop(). |
|
Definition at line 50 of file BitziDownloader.h. Referenced by CBitziDownloader(), ExecuteRequest(), OnRun(), and Start(). |
|
Definition at line 51 of file BitziDownloader.h. Referenced by CBitziDownloader(), OnRun(), and Start(). |
|
Definition at line 53 of file BitziDownloader.h. Referenced by BuildRequest(), OnRun(), and SubmitMetaData(). |
|
Definition at line 43 of file BitziDownloader.h. Referenced by CBitziDownloader(), OnRun(), Start(), and Stop(). |
|
Definition at line 41 of file BitziDownloader.h. Referenced by AddFile(), GetFileCount(), and OnRun(). |
|
Definition at line 42 of file BitziDownloader.h. Referenced by AddFile(), GetFileCount(), and OnRun(). |
|
Definition at line 58 of file BitziDownloader.h. Referenced by CBitziDownloader(), DecodeResponse(), LookupValue(), OnRun(), and ~CBitziDownloader(). |
|
Definition at line 55 of file BitziDownloader.h. Referenced by BuildRequest(). |
|
Definition at line 54 of file BitziDownloader.h. Referenced by BuildRequest(), and OnRun(). |
|
Definition at line 57 of file BitziDownloader.h. Referenced by DecodeResponse(), ExecuteRequest(), and OnRun(). |
|
Definition at line 56 of file BitziDownloader.h. Referenced by BuildRequest(), and ExecuteRequest(). |