Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CLibraryFile Class Reference

#include <SharedFile.h>

Inheritance diagram for CLibraryFile:

CComObject List of all members.

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 ()
CTigerTreeGetTigerTree ()
CED2KGetED2K ()
CSharedSourceAddAlternateSource (LPCTSTR pszURL, BOOL bForce=TRUE)
CSharedSourceAddAlternateSources (LPCTSTR pszURL)
CString GetAlternateSources (CStringList *pState, int nMaximum, PROTOCOLID nProtocol)
CString GetNameLC () const
QWORD GetSize () const

Public Attributes

CLibraryFilem_pNextSHA1
CLibraryFilem_pNextTiger
CLibraryFilem_pNextED2K
DWORD m_nScanCookie
DWORD m_nUpdateCookie
DWORD m_nSelectCookie
DWORD m_nListCookie
CLibraryFolderm_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
CSchemam_pSchema
CXMLElementm_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
CLibraryFilem_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

Constructor & Destructor Documentation

CLibraryFile::CLibraryFile CLibraryFolder pFolder,
LPCTSTR  pszName = NULL
 

Definition at line 67 of file SharedFile.cpp.

References NULL, and TS_UNKNOWN.

CLibraryFile::~CLibraryFile  )  [virtual]
 

Definition at line 111 of file SharedFile.cpp.

References Library, m_pMetadata, m_pSources, NULL, and CLibrary::RemoveFile().


Member Function Documentation

CSharedSource * CLibraryFile::AddAlternateSource LPCTSTR  pszURL,
BOOL  bForce = TRUE
 

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().

CSharedSource * CLibraryFile::AddAlternateSources LPCTSTR  pszURL  ) 
 

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().

BOOL CLibraryFile::Delete  ) 
 

CString CLibraryFile::GetAlternateSources CStringList *  pState,
int  nMaximum,
PROTOCOLID  nProtocol
 

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().

CED2K * CLibraryFile::GetED2K  ) 
 

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().

CString CLibraryFile::GetMetadataWords  )  const
 

Definition at line 386 of file SharedFile.cpp.

References CSchema::GetIndexedWords(), m_pMetadata, m_pSchema, and NULL.

Referenced by CLibraryDictionary::ProcessFile().

CString CLibraryFile::GetNameLC  )  const [inline]
 

Definition at line 128 of file SharedFile.h.

References m_sName.

Referenced by CLibraryFolder::OnFileRename(), CLibraryFolder::Serialize(), and CLibraryFolder::ThreadScan().

CString CLibraryFile::GetPath  )  const
 

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().

CString CLibraryFile::GetSearchName  )  const
 

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().

QWORD CLibraryFile::GetSize  )  const [inline]
 

Definition at line 136 of file SharedFile.h.

References m_nSize, and m_nVirtualSize.

Referenced by CLocalSearch::AddHitG2(), CLibraryDetailView::CacheItem(), CCollectionExportDlg::CreateXML(), CLibraryDetailView::ListCompare(), CFileGeneralPage::OnInitDialog(), CLibraryFileView::OnLibraryURL(), CLibraryTipCtrl::OnPrepare(), CUploadQueues::SelectQueue(), CEDNeighbour::SendSharedFiles(), CFileExecutor::ShowBitziTicket(), CFilePropertiesDlg::Update(), and CLibraryMetaPanel::Update().

CTigerTree * CLibraryFile::GetTigerTree  ) 
 

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().

void CLibraryFile::Ghost  )  [protected]
 

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().

BOOL CLibraryFile::IsAvailable  )  const [inline]
 

Definition at line 103 of file SharedFile.h.

References m_pFolder, and NULL.

Referenced by CLibrary::AddFile(), CLocalSearch::AddHitG2(), CLibraryFolders::CreateAlbumTree(), CLibraryMaps::CullDeletedFiles(), CLibraryFileView::GetNextSelectedFile(), CLibraryFileView::GetSelectedFile(), CMatchTipCtrl::LoadFromFile(), CLibraryMaps::LookupFileByED2K(), CLibraryMaps::LookupFileBySHA1(), CLibraryMaps::LookupFileByTiger(), CFileCopyDlg::OnRun(), CLibraryFrame::RunLocalSearch(), CLibraryMaps::Search(), CAlbumFolder::SetCollection(), CFilePropertiesDlg::Update(), CLibraryDetailView::Update(), and CLibraryAlbumView::Update().

BOOL CLibraryFile::IsGhost  )  const [inline]
 

Definition at line 102 of file SharedFile.h.

References m_pFolder, and NULL.

Referenced by CLibraryDictionary::BuildHashTable(), CUploadQueues::CanUpload(), and CUploadQueues::QueueRank().

BOOL CLibraryFile::IsSchemaURI LPCTSTR  pszURI  )  const
 

Definition at line 209 of file SharedFile.cpp.

References CSchema::CheckURI(), m_pSchema, and NULL.

Referenced by CAlbumFolder::OrganiseFile(), CEDNeighbour::SendSharedFiles(), and CLibraryAlbumTrack::Update().

BOOL CLibraryFile::IsShared  )  const
 

Definition at line 168 of file SharedFile.cpp.

References _tcsistr(), CSettings::Library, m_bShared, m_pFolder, CLibraryFolder::m_pParent, m_sName, CSettings::sLibrary::PrivateTypes, Settings, TS_FALSE, and TS_TRUE.

Referenced by CLibraryDictionary::BuildHashTable(), CLibraryDetailView::CacheItem(), CLibraryFolder::GetSharedCount(), CAlbumFolder::GetSharedCount(), CLibraryMaps::LookupFileByED2K(), CLibraryMaps::LookupFileBySHA1(), CLibraryMaps::LookupFileByTiger(), CFilesProfilePage::OnInitDialog(), CLibraryMaps::Search(), CLibraryDictionary::Search(), CEDNeighbour::SendSharedFiles(), CLibraryThumbItem::Update(), and CLibraryAlbumTrack::Update().

BOOL CLibraryFile::LoadMetadata HANDLE  hFile  )  [protected]
 

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().

void CLibraryFile::OnDelete  )  [protected]
 

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().

BOOL CLibraryFile::OnVerifyDownload const SHA1 pSHA1,
const MD4 pED2K,
LPCTSTR  pszSources
[protected]
 

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().

BOOL CLibraryFile::Rebuild  ) 
 

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().

BOOL CLibraryFile::Rename LPCTSTR  pszName  ) 
 

BOOL CLibraryFile::SaveMetadata  ) 
 

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().

void CLibraryFile::Serialize CArchive &  ar,
int  nVersion
[protected]
 

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().

BOOL CLibraryFile::SetMetadata CXMLElement pXML  ) 
 

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().

BOOL CLibraryFile::ThreadScan CSingleLock &  pLock,
DWORD  nScanCookie,
QWORD  nSize,
FILETIME *  pTime,
LPCTSTR  pszMetaData
[protected]
 

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().


Friends And Related Function Documentation

friend class CDeleteFileDlg [friend]
 

Definition at line 147 of file SharedFile.h.

friend class CLibrary [friend]
 

Definition at line 143 of file SharedFile.h.

friend class CLibraryFolder [friend]
 

Definition at line 144 of file SharedFile.h.

friend class CLibraryMaps [friend]
 

Definition at line 145 of file SharedFile.h.

friend class CLibraryRecent [friend]
 

Definition at line 146 of file SharedFile.h.


Member Data Documentation

STDMETHOD( CLibraryFile::Copy)(BSTR sNewPath) [protected]
 

BOOL CLibraryFile::Delete [protected]
 

Definition at line 291 of file SharedFile.cpp.

Referenced by CLibraryMaps::CullDeletedFiles(), and CLibraryFileView::OnLibraryDelete().

STDMETHOD( CLibraryFile::Execute)() [protected]
 

STDMETHOD( CLibraryFile::get_Application)(IApplication FAR *FAR *ppApplication) [protected]
 

STDMETHOD( CLibraryFile::get_EffectiveShared)(VARIANT_BOOL FAR *pbValue) [protected]
 

STDMETHOD( CLibraryFile::get_Folder)(ILibraryFolder FAR *FAR *ppFolder) [protected]
 

STDMETHOD( CLibraryFile::get_Index)(LONG FAR *pnIndex) [protected]
 

STDMETHOD( CLibraryFile::get_Library)(ILibrary FAR *FAR *ppLibrary) [protected]
 

STDMETHOD( CLibraryFile::get_Metadata)(ISXMLElement FAR *FAR *ppXML) [protected]
 

STDMETHOD( CLibraryFile::get_MetadataAuto)(VARIANT_BOOL FAR *pbValue) [protected]
 

STDMETHOD( CLibraryFile::get_Name)(BSTR FAR *psPath) [protected]
 

STDMETHOD( CLibraryFile::get_Path)(BSTR FAR *psPath) [protected]
 

STDMETHOD( CLibraryFile::get_Shared)(STRISTATE FAR *pnValue) [protected]
 

STDMETHOD( CLibraryFile::get_Size)(LONG FAR *pnSize) [protected]
 

STDMETHOD( CLibraryFile::get_URN)(BSTR sURN, BSTR FAR *psURN) [protected]
 

BOOL CLibraryFile::m_bBogus
 

Definition at line 88 of file SharedFile.h.

Referenced by CLocalSearch::AddHitG2(), and Serialize().

BOOL CLibraryFile::m_bCachedPreview
 

Definition at line 87 of file SharedFile.h.

Referenced by CLocalSearch::AddHitG2(), and Serialize().

BOOL CLibraryFile::m_bED2K
 

Definition at line 71 of file SharedFile.h.

Referenced by CLocalSearch::AddHitG2(), CLibraryDictionary::BuildHashTable(), CDeleteFileDlg::Create(), CCollectionExportDlg::CreateXML(), CCollectionFile::FindFile(), GetED2K(), CFileGeneralPage::OnInitDialog(), CLibraryFileView::OnLibraryURL(), CLibraryTipCtrl::OnPrepare(), OnVerifyDownload(), Rebuild(), CUploadTransfer::RequestComplete(), CLibraryMaps::Search(), CLibraryDictionary::Search(), CEDNeighbour::SendSharedFiles(), Serialize(), CLibraryRecent::Serialize(), SetMetadata(), and ThreadScan().

BOOL CLibraryFile::m_bMD5
 

Definition at line 69 of file SharedFile.h.

Referenced by CDeleteFileDlg::Create(), CCollectionExportDlg::CreateXML(), CCollectionFile::FindFile(), CFileGeneralPage::OnInitDialog(), Rebuild(), Serialize(), SetMetadata(), and ThreadScan().

BOOL CLibraryFile::m_bMetadataAuto
 

Definition at line 77 of file SharedFile.h.

Referenced by CCollectionExportDlg::CreateXML(), LoadMetadata(), CFileCopyDlg::OnRun(), Rebuild(), CUploadTransferHTTP::RequestSharedFile(), SaveMetadata(), Serialize(), SetMetadata(), and ThreadScan().

BOOL CLibraryFile::m_bSHA1
 

Definition at line 65 of file SharedFile.h.

Referenced by AddAlternateSource(), AddAlternateSources(), CLibrary::AddFile(), CURLExportDlg::AddFile(), CLocalSearch::AddHitG2(), CLibraryDictionary::BuildHashTable(), CBitziDownloader::BuildRequest(), CLibraryDetailView::CacheItem(), CDeleteFileDlg::Create(), CCollectionExportDlg::CreateXML(), CCollectionFile::FindFile(), CFileGeneralPage::OnInitDialog(), CLibraryFileView::OnLibraryURL(), CLibraryTipCtrl::OnPrepare(), OnVerifyDownload(), Rebuild(), CUploadTransfer::RequestComplete(), CLibraryMaps::Search(), CLibraryDictionary::Search(), Serialize(), CLibraryRecent::Serialize(), SetMetadata(), CFileExecutor::ShowBitziTicket(), ThreadScan(), and CFilePropertiesDlg::Update().

TRISTATE CLibraryFile::m_bShared
 

Definition at line 61 of file SharedFile.h.

Referenced by CDeleteFileDlg::Create(), IsShared(), OnVerifyDownload(), and Serialize().

BOOL CLibraryFile::m_bTiger
 

Definition at line 67 of file SharedFile.h.

Referenced by CLocalSearch::AddHitG2(), CDeleteFileDlg::Create(), CCollectionExportDlg::CreateXML(), CCollectionFile::FindFile(), GetTigerTree(), CFileGeneralPage::OnInitDialog(), CLibraryFileView::OnLibraryURL(), CLibraryTipCtrl::OnPrepare(), Rebuild(), CUploadTransfer::RequestComplete(), CLibraryDictionary::Search(), Serialize(), SetMetadata(), CFileExecutor::ShowBitziTicket(), ThreadScan(), and CFilePropertiesDlg::Update().

TRISTATE CLibraryFile::m_bVerify
 

Definition at line 73 of file SharedFile.h.

Referenced by CLibraryDetailView::CacheItem(), OnVerifyDownload(), and Serialize().

DWORD CLibraryFile::m_nCollIndex
 

Definition at line 94 of file SharedFile.h.

Referenced by CLibraryDictionary::Search().

DWORD CLibraryFile::m_nHitsToday
 

Definition at line 83 of file SharedFile.h.

Referenced by CLibraryDetailView::CacheItem(), CLibraryTipCtrl::OnPrepare(), and CLibraryDictionary::Search().

DWORD CLibraryFile::m_nHitsTotal
 

Definition at line 84 of file SharedFile.h.

Referenced by CLibraryDetailView::CacheItem(), CLibraryDetailView::ListCompare(), CLibraryTipCtrl::OnPrepare(), CLibraryDictionary::Search(), and Serialize().

int CLibraryFile::m_nIcon16
 

Definition at line 95 of file SharedFile.h.

Referenced by CLibraryDetailView::CacheItem().

DWORD CLibraryFile::m_nIndex
 

Definition at line 58 of file SharedFile.h.

Referenced by CURLExportDlg::AddFile(), CFileCopyDlg::AddFile(), CDecodeMetadataDlg::AddFile(), CLocalSearch::AddHitG2(), CLocalSearch::AlbumToPacket(), CBaseMatchWnd::CheckExisting(), CLibraryAlbumTrack::CLibraryAlbumTrack(), CLocalSearch::FolderToPacket(), GetED2K(), GetTigerTree(), CFilesProfilePage::OnInitDialog(), CFileGeneralPage::OnInitDialog(), CLibraryTipCtrl::OnPrepare(), CLibraryBuilder::Remove(), Serialize(), CLibraryRecent::Serialize(), CAlbumFolder::Serialize(), CFilePropertiesDlg::Update(), CLibraryMetaPanel::Update(), CLibraryHistoryPanel::Update(), CLibraryDetailView::Update(), and CHomeLibraryBox::Update().

DWORD CLibraryFile::m_nListCookie
 

Definition at line 54 of file SharedFile.h.

Referenced by CLibraryThumbView::Update(), CLibraryDetailView::Update(), and CLibraryAlbumView::Update().

int CLibraryFile::m_nRating
 

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().

DWORD CLibraryFile::m_nScanCookie
 

Definition at line 51 of file SharedFile.h.

Referenced by CLibraryFolder::ThreadScan(), and ThreadScan().

DWORD CLibraryFile::m_nSearchCookie
 

Definition at line 91 of file SharedFile.h.

Referenced by CLibraryDictionary::Search().

DWORD CLibraryFile::m_nSearchWords
 

Definition at line 92 of file SharedFile.h.

Referenced by CLibraryDictionary::Search().

DWORD CLibraryFile::m_nSelectCookie
 

Definition at line 53 of file SharedFile.h.

Referenced by CLibraryTreeView::Update(), CLibraryThumbView::Update(), CLibraryDetailView::Update(), and CLibraryAlbumView::Update().

QWORD CLibraryFile::m_nSize
 

Definition at line 59 of file SharedFile.h.

Referenced by CUploadQueues::CanUpload(), CDeleteFileDlg::Create(), GetSize(), CURLExportDlg::OnCopy(), CURLExportDlg::OnSave(), CUploadQueues::QueueRank(), CUploadTransfer::RequestComplete(), CLibraryDictionary::Search(), CLibraryFolder::Serialize(), Serialize(), CLibraryFolder::ThreadScan(), and ThreadScan().

DWORD CLibraryFile::m_nUpdateCookie
 

Definition at line 52 of file SharedFile.h.

Referenced by CLibraryAlbumTrack::CLibraryAlbumTrack(), SaveMetadata(), ThreadScan(), CLibraryThumbItem::Update(), and CLibraryAlbumTrack::Update().

DWORD CLibraryFile::m_nUploadsToday
 

Definition at line 85 of file SharedFile.h.

Referenced by CLibraryDetailView::CacheItem(), and CLibraryTipCtrl::OnPrepare().

DWORD CLibraryFile::m_nUploadsTotal
 

Definition at line 86 of file SharedFile.h.

Referenced by CLibraryDetailView::CacheItem(), CLibraryDetailView::ListCompare(), CLibraryTipCtrl::OnPrepare(), and Serialize().

QWORD CLibraryFile::m_nVirtualBase
 

Definition at line 62 of file SharedFile.h.

Referenced by Rebuild(), CUploadTransfer::RequestComplete(), and Serialize().

QWORD CLibraryFile::m_nVirtualSize
 

Definition at line 63 of file SharedFile.h.

Referenced by GetSize(), OnVerifyDownload(), Rebuild(), CUploadTransfer::RequestComplete(), CUploadTransferHTTP::RequestSharedFile(), and Serialize().

MD4 CLibraryFile::m_pED2K
 

Definition at line 72 of file SharedFile.h.

Referenced by CLocalSearch::AddHitG2(), CLibraryDictionary::BuildHashTable(), CDeleteFileDlg::Create(), CCollectionExportDlg::CreateXML(), CCollectionFile::FindFile(), GetED2K(), CLibraryMaps::LookupFileByED2K(), CURLExportDlg::OnCopy(), CFileGeneralPage::OnInitDialog(), CLibraryFileView::OnLibraryURL(), CLibraryTipCtrl::OnPrepare(), CURLExportDlg::OnSave(), OnVerifyDownload(), CUploadTransfer::RequestComplete(), CLibraryMaps::Search(), CLibraryDictionary::Search(), CEDNeighbour::SendSharedFiles(), Serialize(), and CLibraryRecent::Serialize().

CLibraryFolder* CLibraryFile::m_pFolder
 

Definition at line 56 of file SharedFile.h.

Referenced by CLibraryDetailView::CacheItem(), GetED2K(), GetPath(), GetSearchName(), GetTigerTree(), Ghost(), IsAvailable(), IsGhost(), IsShared(), CLibraryDetailView::ListCompare(), LoadMetadata(), CURLExportDlg::OnCopy(), OnDelete(), CLibraryMaps::OnFileRemove(), CFileGeneralPage::OnInitDialog(), CLibraryTipCtrl::OnPrepare(), CFileCopyDlg::OnRun(), CURLExportDlg::OnSave(), OnVerifyDownload(), Rebuild(), SaveMetadata(), SetMetadata(), ThreadScan(), CFilePropertiesDlg::Update(), and CLibraryMetaPanel::Update().

MD5 CLibraryFile::m_pMD5
 

Definition at line 70 of file SharedFile.h.

Referenced by CDeleteFileDlg::Create(), CCollectionExportDlg::CreateXML(), CCollectionFile::FindFile(), CURLExportDlg::OnCopy(), CFileGeneralPage::OnInitDialog(), CURLExportDlg::OnSave(), and Serialize().

CXMLElement* CLibraryFile::m_pMetadata
 

Definition at line 76 of file SharedFile.h.

Referenced by CLocalSearch::AddHitG2(), CLibraryDetailView::CacheItem(), CCollectionExportDlg::CreateXML(), GetMetadataWords(), CLibraryDetailView::ListCompare(), LoadMetadata(), CAlbumFolder::MetaToFiles(), CDecodeMetadataDlg::OnOK(), CLibraryTipCtrl::OnPrepare(), CFileCopyDlg::OnRun(), CAlbumFolder::OrganiseFile(), CLibraryDictionary::ProcessFile(), Rebuild(), CUploadTransferHTTP::RequestSharedFile(), SaveMetadata(), CLibraryDictionary::Search(), CEDNeighbour::SendSharedFiles(), Serialize(), SetMetadata(), CBitziDownloader::SubmitMetaData(), ThreadScan(), CFilePropertiesDlg::Update(), CLibraryThumbView::Update(), CLibraryDetailView::Update(), CLibraryAlbumTrack::Update(), CLibraryAlbumView::Update(), and ~CLibraryFile().

FILETIME CLibraryFile::m_pMetadataTime
 

Definition at line 78 of file SharedFile.h.

Referenced by SaveMetadata(), Serialize(), and ThreadScan().

CLibraryFile* CLibraryFile::m_pNextED2K
 

Definition at line 50 of file SharedFile.h.

Referenced by CLibraryMaps::LookupFileByED2K(), CLibraryMaps::OnFileAdd(), and CLibraryMaps::OnFileRemove().

CLibraryFile* CLibraryFile::m_pNextHit
 

Definition at line 93 of file SharedFile.h.

Referenced by CLibraryDictionary::Search().

CLibraryFile* CLibraryFile::m_pNextSHA1
 

Definition at line 48 of file SharedFile.h.

Referenced by CLibraryMaps::LookupFileBySHA1(), CLibraryMaps::OnFileAdd(), and CLibraryMaps::OnFileRemove().

CLibraryFile* CLibraryFile::m_pNextTiger
 

Definition at line 49 of file SharedFile.h.

Referenced by CLibraryMaps::LookupFileByTiger(), CLibraryMaps::OnFileAdd(), and CLibraryMaps::OnFileRemove().

CSchema* CLibraryFile::m_pSchema
 

Definition at line 75 of file SharedFile.h.

Referenced by CLibraryDetailView::CacheItem(), CCollectionExportDlg::CreateXML(), GetMetadataWords(), IsSchemaURI(), LoadMetadata(), CAlbumFolder::MetaToFiles(), CDecodeMetadataDlg::OnOK(), CLibraryTipCtrl::OnPrepare(), CLibraryDictionary::ProcessFile(), Rebuild(), SaveMetadata(), CLibraryDictionary::Search(), CEDNeighbour::SendSharedFiles(), Serialize(), SetMetadata(), ThreadScan(), CFilePropertiesDlg::Update(), CLibraryThumbView::Update(), CLibraryMetaPanel::Update(), CLibraryDetailView::Update(), and CLibraryAlbumView::Update().

SHA1 CLibraryFile::m_pSHA1
 

Definition at line 66 of file SharedFile.h.

Referenced by AddAlternateSource(), AddAlternateSources(), CLocalSearch::AddHitG2(), CLibraryDictionary::BuildHashTable(), CBitziDownloader::BuildRequest(), CLibraryDetailView::CacheItem(), CDeleteFileDlg::Create(), CCollectionExportDlg::CreateXML(), CCollectionFile::FindFile(), CLibraryMaps::LookupFileBySHA1(), CURLExportDlg::OnCopy(), CFileGeneralPage::OnInitDialog(), CLibraryFileView::OnLibraryURL(), CLibraryTipCtrl::OnPrepare(), CURLExportDlg::OnSave(), OnVerifyDownload(), CAlbumFolder::OrganiseFile(), CUploadTransfer::RequestComplete(), CLibraryDictionary::Search(), Serialize(), CLibraryRecent::Serialize(), CAlbumFolder::SetCollection(), CFileExecutor::ShowBitziTicket(), CLibraryCollectionView::ShowCollection(), and CFilePropertiesDlg::Update().

CPtrList CLibraryFile::m_pSources
 

Definition at line 89 of file SharedFile.h.

Referenced by AddAlternateSource(), CLocalSearch::AddHitG2(), GetAlternateSources(), CFileSourcesPage::OnInitDialog(), CFileSourcesPage::OnSourceRemove(), Serialize(), and ~CLibraryFile().

TIGEROOT CLibraryFile::m_pTiger
 

Definition at line 68 of file SharedFile.h.

Referenced by CLocalSearch::AddHitG2(), CDeleteFileDlg::Create(), CCollectionExportDlg::CreateXML(), CCollectionFile::FindFile(), GetTigerTree(), CLibraryMaps::LookupFileByTiger(), CURLExportDlg::OnCopy(), CFileGeneralPage::OnInitDialog(), CLibraryFileView::OnLibraryURL(), CLibraryTipCtrl::OnPrepare(), CURLExportDlg::OnSave(), CUploadTransfer::RequestComplete(), CLibraryDictionary::Search(), Serialize(), CFileExecutor::ShowBitziTicket(), and CFilePropertiesDlg::Update().

FILETIME CLibraryFile::m_pTime
 

Definition at line 60 of file SharedFile.h.

Referenced by CLibraryDetailView::CacheItem(), Ghost(), CLibraryDetailView::ListCompare(), CFileGeneralPage::OnInitDialog(), Serialize(), and ThreadScan().

CString CLibraryFile::m_sComments
 

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().

CString CLibraryFile::m_sName
 

Definition at line 57 of file SharedFile.h.

Referenced by CLocalSearch::AddHitG2(), CBitziDownloader::BuildRequest(), CLibraryDetailView::CacheItem(), CUploadQueues::CanUpload(), CCollectionExportDlg::CreateXML(), GetNameLC(), GetPath(), GetSearchName(), IsShared(), CLibraryDetailView::ListCompare(), CURLExportDlg::OnCopy(), CTorrentSeedDlg::OnDownload(), CUploadTransferHTTP::OnHeadersComplete(), CFilesProfilePage::OnInitDialog(), CFileGeneralPage::OnInitDialog(), CLibraryFileView::OnLibraryDelete(), CLibraryFileView::OnLibraryURL(), CLibraryTipCtrl::OnPrepare(), CFileCopyDlg::OnRun(), CURLExportDlg::OnSave(), CURLActionDlg::OnUrlDownload(), OnVerifyDownload(), CUploadQueues::QueueRank(), CUploadTransfer::RequestComplete(), CLibraryFrame::RunLocalSearch(), SaveMetadata(), CUploadQueues::SelectQueue(), CEDNeighbour::SendSharedFiles(), Serialize(), CFileExecutor::ShowBitziTicket(), CLibraryFolder::ThreadScan(), ThreadScan(), CFilePropertiesDlg::Update(), CLibraryThumbItem::Update(), CLibraryThumbView::Update(), CLibraryMetaPanel::Update(), CLibraryHistoryPanel::Update(), CLibraryDetailView::Update(), CLibraryAlbumTrack::Update(), CLibraryAlbumView::Update(), and CHomeLibraryBox::Update().

CString CLibraryFile::m_sShareTags
 

Definition at line 81 of file SharedFile.h.

Referenced by CUploadQueues::CanUpload(), CUploadQueues::QueueRank(), CUploadTransfer::RequestComplete(), CUploadQueues::SelectQueue(), and Serialize().

STDMETHOD( CLibraryFile::Move)(BSTR sNewPath) [protected]
 

STDMETHOD( CLibraryFile::put_Metadata)(ISXMLElement FAR *pXML) [protected]
 

STDMETHOD( CLibraryFile::put_Shared)(STRISTATE nValue) [protected]
 

BOOL CLibraryFile::Rename [protected]
 

Definition at line 248 of file SharedFile.cpp.

STDMETHOD( CLibraryFile::SmartExecute)() [protected]
 


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:08 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2