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

CCollectionFile::File Class Reference

#include <CollectionFile.h>

List of all members.

Public Member Functions

 File (CCollectionFile *pParent)
 ~File ()
BOOL Parse (CXMLElement *pXML)
BOOL IsComplete () const
BOOL IsDownloading () const
BOOL Download ()
BOOL ApplyMetadata (CLibraryFile *pShared)

Public Attributes

CCollectionFilem_pParent
BOOL m_bSHA1
SHA1 m_pSHA1
BOOL m_bMD5
MD5 m_pMD5
BOOL m_bTiger
TIGEROOT m_pTiger
BOOL m_bED2K
MD4 m_pED2K
CString m_sName
QWORD m_nSize
CXMLElementm_pMetadata
CString m_sSource


Constructor & Destructor Documentation

CCollectionFile::File::File CCollectionFile pParent  ) 
 

Definition at line 276 of file CollectionFile.cpp.

References m_bED2K, m_bMD5, m_bSHA1, m_bTiger, m_nSize, m_pMetadata, m_pParent, NULL, and SIZE_UNKNOWN.

CCollectionFile::File::~File  ) 
 

Definition at line 287 of file CollectionFile.cpp.

References m_pMetadata, and NULL.


Member Function Documentation

BOOL CCollectionFile::File::ApplyMetadata CLibraryFile pShared  ) 
 

Definition at line 391 of file CollectionFile.cpp.

References CXMLElement::Clone(), m_pMetadata, and NULL.

Referenced by CCollectionFile::FindFile().

BOOL CCollectionFile::File::Download  ) 
 

Definition at line 366 of file CollectionFile.cpp.

References CDownloads::Add(), Downloads, IsComplete(), IsDownloading(), m_bED2K, CShareazaURL::m_bED2K, m_bMD5, CShareazaURL::m_bMD5, m_bSHA1, CShareazaURL::m_bSHA1, CShareazaURL::m_bSize, m_bTiger, CShareazaURL::m_bTiger, CShareazaURL::m_nAction, CShareazaURL::m_nSize, m_nSize, m_pED2K, CShareazaURL::m_pED2K, m_pMD5, CShareazaURL::m_pMD5, m_pSHA1, CShareazaURL::m_pSHA1, m_pTiger, CShareazaURL::m_pTiger, m_sName, CShareazaURL::m_sName, NULL, SIZE_UNKNOWN, and CShareazaURL::uriDownload.

Referenced by CLibraryCollectionView::OnLibraryFolderDownload().

BOOL CCollectionFile::File::IsComplete  )  const
 

Definition at line 341 of file CollectionFile.cpp.

References LibraryMaps, CLibraryMaps::LookupFileByED2K(), CLibraryMaps::LookupFileBySHA1(), CLibraryMaps::LookupFileByTiger(), m_bED2K, m_bSHA1, m_bTiger, m_pED2K, m_pSHA1, and m_pTiger.

Referenced by Download(), and CCollectionFile::GetMissingCount().

BOOL CCollectionFile::File::IsDownloading  )  const
 

Definition at line 352 of file CollectionFile.cpp.

References Downloads, CDownloads::FindByED2K(), CDownloads::FindBySHA1(), CDownloads::FindByTiger(), m_bED2K, m_bSHA1, m_bTiger, m_pED2K, m_pSHA1, and m_pTiger.

Referenced by Download(), and CCollectionFile::GetMissingCount().

BOOL CCollectionFile::File::Parse CXMLElement pXML  ) 
 

Definition at line 295 of file CollectionFile.cpp.

References CCollectionFile::CloneMetadata(), CXMLElement::GetElementByName(), CXMLNode::GetValue(), CED2K::HashFromURN(), CTigerNode::HashFromURN(), CMD5::HashFromURN(), CSHA::HashFromURN(), CXMLNode::IsNamed(), m_bED2K, m_bMD5, m_bSHA1, m_bTiger, m_nSize, m_pED2K, m_pMD5, m_pMetadata, m_pSHA1, m_pTiger, m_sName, m_sSource, and NULL.

Referenced by CCollectionFile::LoadManifest().


Member Data Documentation

BOOL CCollectionFile::File::m_bED2K
 

Definition at line 55 of file CollectionFile.h.

Referenced by Download(), File(), CCollectionFile::FindByURN(), CCollectionFile::FindFile(), IsComplete(), IsDownloading(), and Parse().

BOOL CCollectionFile::File::m_bMD5
 

Definition at line 51 of file CollectionFile.h.

Referenced by Download(), File(), CCollectionFile::FindByURN(), CCollectionFile::FindFile(), and Parse().

BOOL CCollectionFile::File::m_bSHA1
 

Definition at line 49 of file CollectionFile.h.

Referenced by Download(), File(), CCollectionFile::FindByURN(), CCollectionFile::FindFile(), IsComplete(), IsDownloading(), and Parse().

BOOL CCollectionFile::File::m_bTiger
 

Definition at line 53 of file CollectionFile.h.

Referenced by Download(), File(), CCollectionFile::FindByURN(), CCollectionFile::FindFile(), IsComplete(), IsDownloading(), and Parse().

QWORD CCollectionFile::File::m_nSize
 

Definition at line 59 of file CollectionFile.h.

Referenced by Download(), File(), and Parse().

MD4 CCollectionFile::File::m_pED2K
 

Definition at line 56 of file CollectionFile.h.

Referenced by Download(), CCollectionFile::FindByURN(), CCollectionFile::FindFile(), IsComplete(), IsDownloading(), and Parse().

MD5 CCollectionFile::File::m_pMD5
 

Definition at line 52 of file CollectionFile.h.

Referenced by Download(), CCollectionFile::FindByURN(), CCollectionFile::FindFile(), and Parse().

CXMLElement* CCollectionFile::File::m_pMetadata
 

Definition at line 60 of file CollectionFile.h.

Referenced by ApplyMetadata(), File(), Parse(), and ~File().

CCollectionFile* CCollectionFile::File::m_pParent
 

Definition at line 48 of file CollectionFile.h.

Referenced by File().

SHA1 CCollectionFile::File::m_pSHA1
 

Definition at line 50 of file CollectionFile.h.

Referenced by Download(), CCollectionFile::FindByURN(), CCollectionFile::FindFile(), IsComplete(), IsDownloading(), and Parse().

TIGEROOT CCollectionFile::File::m_pTiger
 

Definition at line 54 of file CollectionFile.h.

Referenced by Download(), CCollectionFile::FindByURN(), CCollectionFile::FindFile(), IsComplete(), IsDownloading(), and Parse().

CString CCollectionFile::File::m_sName
 

Definition at line 58 of file CollectionFile.h.

Referenced by Download(), and Parse().

CString CCollectionFile::File::m_sSource
 

Definition at line 61 of file CollectionFile.h.

Referenced by Parse().


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