#include <SharedFile.h>
Inheritance diagram for CLibraryFile:
Public Member Functions | |
CLibraryFile (CLibraryFolder *pFolder, LPCTSTR pszName=NULL) | |
virtual | ~CLibraryFile () |
CString | GetPath () const |
CString | GetSearchName () const |
BOOL | IsShared () const |
BOOL | IsGhost () const |
BOOL | IsAvailable () const |
BOOL | IsSchemaURI (LPCTSTR pszURI) const |
BOOL | Rebuild () |
BOOL | Rename (LPCTSTR pszName) |
BOOL | Delete () |
BOOL | SetMetadata (CXMLElement *pXML) |
CString | GetMetadataWords () const |
BOOL | SaveMetadata () |
CTigerTree * | GetTigerTree () |
CED2K * | GetED2K () |
CSharedSource * | AddAlternateSource (LPCTSTR pszURL, BOOL bForce=TRUE) |
CSharedSource * | AddAlternateSources (LPCTSTR pszURL) |
CString | GetAlternateSources (CStringList *pState, int nMaximum, PROTOCOLID nProtocol) |
CString | GetNameLC () const |
QWORD | GetSize () const |
Public Attributes | |
CLibraryFile * | m_pNextSHA1 |
CLibraryFile * | m_pNextTiger |
CLibraryFile * | m_pNextED2K |
DWORD | m_nScanCookie |
DWORD | m_nUpdateCookie |
DWORD | m_nSelectCookie |
DWORD | m_nListCookie |
CLibraryFolder * | m_pFolder |
CString | m_sName |
DWORD | m_nIndex |
QWORD | m_nSize |
FILETIME | m_pTime |
TRISTATE | m_bShared |
QWORD | m_nVirtualBase |
QWORD | m_nVirtualSize |
BOOL | m_bSHA1 |
SHA1 | m_pSHA1 |
BOOL | m_bTiger |
TIGEROOT | m_pTiger |
BOOL | m_bMD5 |
MD5 | m_pMD5 |
BOOL | m_bED2K |
MD4 | m_pED2K |
TRISTATE | m_bVerify |
CSchema * | m_pSchema |
CXMLElement * | m_pMetadata |
BOOL | m_bMetadataAuto |
FILETIME | m_pMetadataTime |
int | m_nRating |
CString | m_sComments |
CString | m_sShareTags |
DWORD | m_nHitsToday |
DWORD | m_nHitsTotal |
DWORD | m_nUploadsToday |
DWORD | m_nUploadsTotal |
BOOL | m_bCachedPreview |
BOOL | m_bBogus |
CPtrList | m_pSources |
DWORD | m_nSearchCookie |
DWORD | m_nSearchWords |
CLibraryFile * | m_pNextHit |
DWORD | m_nCollIndex |
int | m_nIcon16 |
Protected Member Functions | |
void | Serialize (CArchive &ar, int nVersion) |
BOOL | ThreadScan (CSingleLock &pLock, DWORD nScanCookie, QWORD nSize, FILETIME *pTime, LPCTSTR pszMetaData) |
BOOL | LoadMetadata (HANDLE hFile) |
void | OnDelete () |
void | Ghost () |
BOOL | OnVerifyDownload (const SHA1 *pSHA1, const MD4 *pED2K, LPCTSTR pszSources) |
Protected Attributes | |
STDMETHOD( | get_Application )(IApplication FAR *FAR *ppApplication) |
STDMETHOD( | get_Library )(ILibrary FAR *FAR *ppLibrary) |
STDMETHOD( | get_Folder )(ILibraryFolder FAR *FAR *ppFolder) |
STDMETHOD( | get_Path )(BSTR FAR *psPath) |
STDMETHOD( | get_Name )(BSTR FAR *psPath) |
STDMETHOD( | get_Shared )(STRISTATE FAR *pnValue) |
STDMETHOD( | put_Shared )(STRISTATE nValue) |
STDMETHOD( | get_EffectiveShared )(VARIANT_BOOL FAR *pbValue) |
STDMETHOD( | get_Size )(LONG FAR *pnSize) |
STDMETHOD( | get_Index )(LONG FAR *pnIndex) |
STDMETHOD( | get_URN )(BSTR sURN, BSTR FAR *psURN) |
STDMETHOD( | get_MetadataAuto )(VARIANT_BOOL FAR *pbValue) |
STDMETHOD( | get_Metadata )(ISXMLElement FAR *FAR *ppXML) |
STDMETHOD( | put_Metadata )(ISXMLElement FAR *pXML) |
STDMETHOD( | Execute )() |
STDMETHOD( | SmartExecute )() |
STDMETHOD( | Delete )() |
STDMETHOD( | Rename )(BSTR sNewName) |
STDMETHOD( | Copy )(BSTR sNewPath) |
STDMETHOD( | Move )(BSTR sNewPath) |
Friends | |
class | CLibrary |
class | CLibraryFolder |
class | CLibraryMaps |
class | CLibraryRecent |
class | CDeleteFileDlg |
|
Definition at line 67 of file SharedFile.cpp. References NULL, and TS_UNKNOWN. |
|
Definition at line 111 of file SharedFile.cpp. References Library, m_pMetadata, m_pSources, NULL, and CLibrary::RemoveFile(). |
|
Definition at line 522 of file SharedFile.cpp. References CSharedSource::Freshen(), CNetwork::IsFirewalledAddress(), m_bSHA1, CSourceURL::m_bSHA1, CSourceURL::m_pAddress, CNetwork::m_pHost, m_pSHA1, CSourceURL::m_pSHA1, m_pSources, CSharedSource::m_sURL, Network, NULL, CSourceURL::Parse(), and TimeFromString(). Referenced by AddAlternateSources(). |
|
Definition at line 452 of file SharedFile.cpp. References _tcsistr(), AddAlternateSource(), CSHA::HashToString(), CNetwork::IsFirewalledAddress(), m_bSHA1, m_pSHA1, Network, and NULL. Referenced by OnVerifyDownload(), and CUploadTransferHTTP::RequestSharedFile(). |
|
|
|
Definition at line 570 of file SharedFile.cpp. References CSharedSource::IsExpired(), m_pSources, CSharedSource::m_pTime, CSharedSource::m_sURL, NULL, PROTOCOL_HTTP, Replace(), and TimeToString(). Referenced by CUploadTransferHTTP::RequestSharedFile(). |
|
Definition at line 425 of file SharedFile.cpp. References CLibrary::AddFile(), CHashDatabase::DeleteED2K(), CHashDatabase::GetED2K(), CED2K::GetRoot(), Library, LibraryHashDB, m_bED2K, m_nIndex, m_pED2K, m_pFolder, NULL, and CLibrary::RemoveFile(). |
|
Definition at line 386 of file SharedFile.cpp. References CSchema::GetIndexedWords(), m_pMetadata, m_pSchema, and NULL. Referenced by CLibraryDictionary::ProcessFile(). |
|
Definition at line 128 of file SharedFile.h. References m_sName. Referenced by CLibraryFolder::OnFileRename(), CLibraryFolder::Serialize(), and CLibraryFolder::ThreadScan(). |
|
Definition at line 126 of file SharedFile.cpp. References m_pFolder, m_sName, CLibraryFolder::m_sPath, and NULL. Referenced by CLibraryTreeView::OnLibraryFolderEnqueue(), CLibraryTipCtrl::OnPrepare(), OnVerifyDownload(), CLibraryBuilder::Remove(), CUploadTransfer::RequestComplete(), CLibraryRecent::Serialize(), CFileExecutor::ShowBitziTicket(), CLibraryCollectionView::ShowCollection(), CLibraryHistory::Submit(), and CLibraryMetaPanel::Update(). |
|
Definition at line 134 of file SharedFile.cpp. References m_pFolder, CLibraryFolder::m_pParent, m_sName, CLibraryFolder::m_sPath, NULL, and ToLower(). Referenced by CLibraryDictionary::ProcessFile(), and CLibraryDictionary::Search(). |
|
|
Definition at line 401 of file SharedFile.cpp. References CLibrary::AddFile(), CHashDatabase::DeleteTiger(), CTigerTree::GetRoot(), CHashDatabase::GetTiger(), Library, LibraryHashDB, m_bTiger, m_nIndex, m_pFolder, m_pTiger, NULL, pTiger, and CLibrary::RemoveFile(). |
|
Definition at line 1066 of file SharedFile.cpp. References CLibrary::AddFile(), Library, m_pFolder, m_pTime, NULL, CLibrary::OnFileDelete(), and CLibrary::RemoveFile(). Referenced by CDeleteFileDlg::Create(), and OnDelete(). |
|
|
Definition at line 102 of file SharedFile.h. References m_pFolder, and NULL. Referenced by CLibraryDictionary::BuildHashTable(), CUploadQueues::CanUpload(), and CUploadQueues::QueueRank(). |
|
Definition at line 209 of file SharedFile.cpp. References CSchema::CheckURI(), m_pSchema, and NULL. Referenced by CAlbumFolder::OrganiseFile(), CEDNeighbour::SendSharedFiles(), and CLibraryAlbumTrack::Update(). |
|
|
Definition at line 917 of file SharedFile.cpp. References CXMLElement::FromFile(), CSchemaCache::Get(), CXMLElement::GetAttributeValue(), CXMLElement::GetElementByName(), CXMLElement::GetFirstElement(), m_bMetadataAuto, m_nRating, m_pFolder, m_pMetadata, m_pSchema, m_sComments, NULL, Replace(), SchemaCache, CXMLAttribute::schemaName, and CSchema::Validate(). Referenced by ThreadScan(). |
|
Definition at line 1050 of file SharedFile.cpp. References Ghost(), Library, m_nRating, m_pFolder, m_sComments, NULL, and CLibrary::OnFileDelete(). Referenced by CLibraryFolder::ThreadScan(). |
|
Definition at line 1080 of file SharedFile.cpp. References AddAlternateSources(), CVersionChecker::CheckUpgradeHash(), Downloads, CSettings::Downloads, GetPath(), IDS_DOWNLOAD_VERIFY_FAIL, IDS_DOWNLOAD_VERIFY_SUCCESS, m_bED2K, m_bSHA1, m_bShared, CVersionChecker::m_bUpgrade, m_bVerify, m_nVirtualSize, m_pED2K, m_pFolder, m_pSHA1, m_sName, CShareazaApp::Message(), MSG_ERROR, MSG_SYSTEM, NULL, CDownloads::OnVerify(), Settings, theApp, TS_FALSE, TS_TRUE, TS_UNKNOWN, CSettings::sDownloads::VerifyFiles, and VersionChecker. Referenced by CLibraryRecent::RunVerify(). |
|
Definition at line 224 of file SharedFile.cpp. References CLibrary::AddFile(), Library, m_bED2K, m_bMD5, m_bMetadataAuto, m_bSHA1, m_bTiger, m_nVirtualBase, m_nVirtualSize, m_pFolder, m_pMetadata, m_pSchema, NULL, and CLibrary::RemoveFile(). |
|
|
|
Definition at line 965 of file SharedFile.cpp. References CXMLElement::AddAttribute(), CXMLElement::AddElement(), CXMLElement::Clone(), CSchema::Instantiate(), m_bMetadataAuto, m_nRating, m_nUpdateCookie, m_pFolder, m_pMetadata, m_pMetadataTime, m_pSchema, m_sComments, m_sName, CLibraryFolder::m_sPath, NULL, Replace(), CXMLNode::SetValue(), CXMLElement::ToString(), and CXMLAttribute::xmlnsInstance. Referenced by CDeleteFileDlg::Apply(), CLibraryAlbumTrack::LockRating(), and SetMetadata(). |
|
Definition at line 612 of file SharedFile.cpp. References CLibrary::AddFile(), CSchemaCache::Get(), CSharedSource::IsExpired(), Library, m_bBogus, m_bCachedPreview, m_bED2K, m_bMD5, m_bMetadataAuto, m_bSHA1, m_bShared, m_bTiger, m_bVerify, m_nHitsTotal, m_nIndex, m_nRating, m_nSize, m_nUploadsTotal, m_nVirtualBase, m_nVirtualSize, m_pED2K, m_pMD5, m_pMetadata, m_pMetadataTime, m_pSchema, m_pSHA1, m_pSources, m_pTiger, m_pTime, m_sComments, m_sName, m_sShareTags, CSchema::m_sURI, MD5, NULL, SchemaCache, CSharedSource::Serialize(), TS_FALSE, TS_UNKNOWN, and CSchema::uriAudio. Referenced by CLibraryFolder::Serialize(), and CLibraryMaps::Serialize2(). |
|
Definition at line 341 of file SharedFile.cpp. References CLibrary::AddFile(), CXMLElement::Equals(), CSchemaCache::Get(), CXMLElement::GetAttributeValue(), CXMLElement::GetFirstElement(), Library, m_bED2K, m_bMD5, m_bMetadataAuto, m_bSHA1, m_bTiger, m_pFolder, m_pMetadata, m_pSchema, NULL, CLibrary::RemoveFile(), SaveMetadata(), SchemaCache, CXMLAttribute::schemaName, and CSchema::Validate(). Referenced by CAlbumFolder::MetaToFiles(), CDecodeMetadataDlg::OnOK(), and CBitziDownloader::SubmitMetaData(). |
|
Definition at line 786 of file SharedFile.cpp. References CLibrary::AddFile(), Library, LoadMetadata(), m_bED2K, m_bMD5, m_bMetadataAuto, CShareazaApp::m_bNT, m_bSHA1, m_bTiger, m_nScanCookie, m_nSize, m_nUpdateCookie, m_pFolder, m_pMetadata, m_pMetadataTime, m_pSchema, m_pTime, m_sName, NULL, CLibrary::RemoveFile(), theApp, and CFolderScanDlg::Update(). Referenced by CLibraryFolder::ThreadScan(). |
|
Definition at line 147 of file SharedFile.h. |
|
Definition at line 143 of file SharedFile.h. |
|
Definition at line 144 of file SharedFile.h. |
|
Definition at line 145 of file SharedFile.h. |
|
Definition at line 146 of file SharedFile.h. |
|
|
|
Definition at line 291 of file SharedFile.cpp. Referenced by CLibraryMaps::CullDeletedFiles(), and CLibraryFileView::OnLibraryDelete(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 88 of file SharedFile.h. Referenced by CLocalSearch::AddHitG2(), and Serialize(). |
|
Definition at line 87 of file SharedFile.h. Referenced by CLocalSearch::AddHitG2(), and Serialize(). |
|
|
Definition at line 69 of file SharedFile.h. Referenced by CDeleteFileDlg::Create(), CCollectionExportDlg::CreateXML(), CCollectionFile::FindFile(), CFileGeneralPage::OnInitDialog(), Rebuild(), Serialize(), SetMetadata(), and ThreadScan(). |
|
Definition at line 77 of file SharedFile.h. Referenced by CCollectionExportDlg::CreateXML(), LoadMetadata(), CFileCopyDlg::OnRun(), Rebuild(), CUploadTransferHTTP::RequestSharedFile(), SaveMetadata(), Serialize(), SetMetadata(), and ThreadScan(). |
|
|
Definition at line 61 of file SharedFile.h. Referenced by CDeleteFileDlg::Create(), IsShared(), OnVerifyDownload(), and Serialize(). |
|
|
Definition at line 73 of file SharedFile.h. Referenced by CLibraryDetailView::CacheItem(), OnVerifyDownload(), and Serialize(). |
|
Definition at line 94 of file SharedFile.h. Referenced by CLibraryDictionary::Search(). |
|
Definition at line 83 of file SharedFile.h. Referenced by CLibraryDetailView::CacheItem(), CLibraryTipCtrl::OnPrepare(), and CLibraryDictionary::Search(). |
|
Definition at line 84 of file SharedFile.h. Referenced by CLibraryDetailView::CacheItem(), CLibraryDetailView::ListCompare(), CLibraryTipCtrl::OnPrepare(), CLibraryDictionary::Search(), and Serialize(). |
|
Definition at line 95 of file SharedFile.h. Referenced by CLibraryDetailView::CacheItem(). |
|
|
Definition at line 54 of file SharedFile.h. Referenced by CLibraryThumbView::Update(), CLibraryDetailView::Update(), and CLibraryAlbumView::Update(). |
|
Definition at line 79 of file SharedFile.h. Referenced by CLocalSearch::AddHitG2(), CDeleteFileDlg::Apply(), LoadMetadata(), CLibraryAlbumTrack::LockRating(), OnDelete(), CFileCommentsPage::OnInitDialog(), SaveMetadata(), CEDNeighbour::SendSharedFiles(), Serialize(), CLibraryMetaPanel::Update(), and CLibraryAlbumTrack::Update(). |
|
Definition at line 51 of file SharedFile.h. Referenced by CLibraryFolder::ThreadScan(), and ThreadScan(). |
|
Definition at line 91 of file SharedFile.h. Referenced by CLibraryDictionary::Search(). |
|
Definition at line 92 of file SharedFile.h. Referenced by CLibraryDictionary::Search(). |
|
Definition at line 53 of file SharedFile.h. Referenced by CLibraryTreeView::Update(), CLibraryThumbView::Update(), CLibraryDetailView::Update(), and CLibraryAlbumView::Update(). |
|
|
Definition at line 52 of file SharedFile.h. Referenced by CLibraryAlbumTrack::CLibraryAlbumTrack(), SaveMetadata(), ThreadScan(), CLibraryThumbItem::Update(), and CLibraryAlbumTrack::Update(). |
|
Definition at line 85 of file SharedFile.h. Referenced by CLibraryDetailView::CacheItem(), and CLibraryTipCtrl::OnPrepare(). |
|
Definition at line 86 of file SharedFile.h. Referenced by CLibraryDetailView::CacheItem(), CLibraryDetailView::ListCompare(), CLibraryTipCtrl::OnPrepare(), and Serialize(). |
|
Definition at line 62 of file SharedFile.h. Referenced by Rebuild(), CUploadTransfer::RequestComplete(), and Serialize(). |
|
Definition at line 63 of file SharedFile.h. Referenced by GetSize(), OnVerifyDownload(), Rebuild(), CUploadTransfer::RequestComplete(), CUploadTransferHTTP::RequestSharedFile(), and Serialize(). |
|
|
|
Definition at line 70 of file SharedFile.h. Referenced by CDeleteFileDlg::Create(), CCollectionExportDlg::CreateXML(), CCollectionFile::FindFile(), CURLExportDlg::OnCopy(), CFileGeneralPage::OnInitDialog(), CURLExportDlg::OnSave(), and Serialize(). |
|
|
Definition at line 78 of file SharedFile.h. Referenced by SaveMetadata(), Serialize(), and ThreadScan(). |
|
Definition at line 50 of file SharedFile.h. Referenced by CLibraryMaps::LookupFileByED2K(), CLibraryMaps::OnFileAdd(), and CLibraryMaps::OnFileRemove(). |
|
Definition at line 93 of file SharedFile.h. Referenced by CLibraryDictionary::Search(). |
|
Definition at line 48 of file SharedFile.h. Referenced by CLibraryMaps::LookupFileBySHA1(), CLibraryMaps::OnFileAdd(), and CLibraryMaps::OnFileRemove(). |
|
Definition at line 49 of file SharedFile.h. Referenced by CLibraryMaps::LookupFileByTiger(), CLibraryMaps::OnFileAdd(), and CLibraryMaps::OnFileRemove(). |
|
|
|
Definition at line 89 of file SharedFile.h. Referenced by AddAlternateSource(), CLocalSearch::AddHitG2(), GetAlternateSources(), CFileSourcesPage::OnInitDialog(), CFileSourcesPage::OnSourceRemove(), Serialize(), and ~CLibraryFile(). |
|
|
Definition at line 60 of file SharedFile.h. Referenced by CLibraryDetailView::CacheItem(), Ghost(), CLibraryDetailView::ListCompare(), CFileGeneralPage::OnInitDialog(), Serialize(), and ThreadScan(). |
|
Definition at line 80 of file SharedFile.h. Referenced by CLocalSearch::AddHitG2(), CDeleteFileDlg::Apply(), CMatchTipCtrl::LoadFromFile(), LoadMetadata(), OnDelete(), CFileCommentsPage::OnInitDialog(), SaveMetadata(), Serialize(), and CLibraryAlbumTrack::Update(). |
|
|
Definition at line 81 of file SharedFile.h. Referenced by CUploadQueues::CanUpload(), CUploadQueues::QueueRank(), CUploadTransfer::RequestComplete(), CUploadQueues::SelectQueue(), and Serialize(). |
|
|
|
|
|
|
|
Definition at line 248 of file SharedFile.cpp. |
|
|