vmsBtFileImpl Class Reference

#include <vmsBtFileImpl.h>

Inheritance diagram for vmsBtFileImpl:

vmsBtFile

List of all members.

Public Member Functions

virtual BOOL LoadFromFile (LPCSTR pszTorrentFile)
virtual BOOL LoadFromBuffer (LPBYTE pbTorrent, DWORD dwTorrentSize)
int get_FileCount ()
void get_FileName (int nIndex, LPSTR pszRes)
UINT64 get_FileSize (int nIndex)
UINT64 get_TotalFilesSize ()
void get_TorrentName (LPSTR pszRes)
BOOL get_TorrentBuffer (LPBYTE pbRes, DWORD dwSize, DWORD *pdwTorrentSize)
void get_InfoHash (LPSTR pszRes)
void get_TrackerUrl (LPSTR pszRes, int nIndex)
int get_TrackerCount ()
void get_TorrentComment (LPSTR pszRes)
int get_PieceCount ()
int get_PieceSize ()
virtual void Release ()
void AddRef ()
 vmsBtFileImpl (void)
virtual ~vmsBtFileImpl (void)

Public Attributes

torrent_info * m_torrent

Protected Attributes

long m_cRefs


Detailed Description

Definition at line 8 of file vmsBtFileImpl.h.


Constructor & Destructor Documentation

vmsBtFileImpl::vmsBtFileImpl ( void   ) 

Definition at line 15 of file vmsBtFileImpl.cpp.

References m_cRefs, m_torrent, and NULL.

vmsBtFileImpl::~vmsBtFileImpl ( void   )  [virtual]

Definition at line 21 of file vmsBtFileImpl.cpp.

References m_torrent.


Member Function Documentation

BOOL vmsBtFileImpl::LoadFromFile ( LPCSTR  pszTorrentFile  )  [virtual]

Reimplemented from vmsBtFile.

Definition at line 27 of file vmsBtFileImpl.cpp.

References b, BOOL, FALSE, GetFileSize(), LoadFromBuffer(), m_torrent, NULL, and SAFE_DELETE.

BOOL vmsBtFileImpl::LoadFromBuffer ( LPBYTE  pbTorrent,
DWORD  dwTorrentSize 
) [virtual]

Reimplemented from vmsBtFile.

Definition at line 51 of file vmsBtFileImpl.cpp.

References libtorrent::bdecode(), FALSE, m_torrent, SAFE_DELETE, and TRUE.

Referenced by LoadFromFile().

int vmsBtFileImpl::get_FileCount (  )  [virtual]

Reimplemented from vmsBtFile.

Definition at line 77 of file vmsBtFileImpl.cpp.

References m_torrent, and libtorrent::torrent_info::num_files().

void vmsBtFileImpl::get_FileName ( int  nIndex,
LPSTR  pszRes 
) [virtual]

Reimplemented from vmsBtFile.

Definition at line 82 of file vmsBtFileImpl.cpp.

References libtorrent::torrent_info::file_at(), m_torrent, and libtorrent::file_entry::path.

UINT64 vmsBtFileImpl::get_FileSize ( int  nIndex  )  [virtual]

Reimplemented from vmsBtFile.

Definition at line 87 of file vmsBtFileImpl.cpp.

References libtorrent::torrent_info::file_at(), m_torrent, and libtorrent::file_entry::size.

UINT64 vmsBtFileImpl::get_TotalFilesSize (  )  [virtual]

Reimplemented from vmsBtFile.

Definition at line 92 of file vmsBtFileImpl.cpp.

References m_torrent, and libtorrent::torrent_info::total_size().

Referenced by vmsBtDownloadImpl::get_PercentDone().

void vmsBtFileImpl::get_TorrentName ( LPSTR  pszRes  )  [virtual]

Reimplemented from vmsBtFile.

Definition at line 97 of file vmsBtFileImpl.cpp.

References m_torrent, and libtorrent::torrent_info::name().

BOOL vmsBtFileImpl::get_TorrentBuffer ( LPBYTE  pbRes,
DWORD  dwSize,
DWORD *  pdwTorrentSize 
) [virtual]

void vmsBtFileImpl::get_InfoHash ( LPSTR  pszRes  )  [virtual]

Reimplemented from vmsBtFile.

Definition at line 123 of file vmsBtFileImpl.cpp.

References libtorrent::torrent_info::info_hash(), m_torrent, and libtorrent::big_number::size.

void vmsBtFileImpl::get_TrackerUrl ( LPSTR  pszRes,
int  nIndex 
) [virtual]

Reimplemented from vmsBtFile.

Definition at line 133 of file vmsBtFileImpl.cpp.

References m_torrent, and libtorrent::torrent_info::trackers().

int vmsBtFileImpl::get_TrackerCount (  )  [virtual]

Reimplemented from vmsBtFile.

Definition at line 139 of file vmsBtFileImpl.cpp.

References m_torrent, and libtorrent::torrent_info::trackers().

void vmsBtFileImpl::get_TorrentComment ( LPSTR  pszRes  )  [virtual]

Reimplemented from vmsBtFile.

Definition at line 144 of file vmsBtFileImpl.cpp.

References libtorrent::torrent_info::comment(), and m_torrent.

int vmsBtFileImpl::get_PieceCount (  )  [virtual]

Reimplemented from vmsBtFile.

Definition at line 149 of file vmsBtFileImpl.cpp.

References m_torrent, and libtorrent::torrent_info::num_pieces().

int vmsBtFileImpl::get_PieceSize (  )  [virtual]

Reimplemented from vmsBtFile.

Definition at line 154 of file vmsBtFileImpl.cpp.

References m_torrent, and libtorrent::torrent_info::piece_size().

void vmsBtFileImpl::Release (  )  [virtual]

Reimplemented from vmsBtFile.

Definition at line 66 of file vmsBtFileImpl.cpp.

References m_cRefs.

Referenced by vmsBtDownloadImpl::~vmsBtDownloadImpl().

void vmsBtFileImpl::AddRef (  ) 

Definition at line 72 of file vmsBtFileImpl.cpp.

References m_cRefs.

Referenced by vmsBtSessionImpl::CreateDownload().


Member Data Documentation

torrent_info* vmsBtFileImpl::m_torrent

long vmsBtFileImpl::m_cRefs [protected]

Definition at line 39 of file vmsBtFileImpl.h.

Referenced by AddRef(), Release(), and vmsBtFileImpl().


The documentation for this class was generated from the following files:

Generated on Sun May 25 00:21:20 2008 by  doxygen 1.5.6