#include <vmsBtFileImpl.h>

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 |
Definition at line 8 of file vmsBtFileImpl.h.
| vmsBtFileImpl::vmsBtFileImpl | ( | void | ) |
| vmsBtFileImpl::~vmsBtFileImpl | ( | void | ) | [virtual] |
| 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] |
Reimplemented from vmsBtFile.
Definition at line 102 of file vmsBtFileImpl.cpp.
References libtorrent::bencode(), libtorrent::torrent_info::create_torrent(), simple_client::e, FALSE, m_torrent, NULL, and TRUE.
| 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().
| torrent_info* vmsBtFileImpl::m_torrent |
Definition at line 36 of file vmsBtFileImpl.h.
Referenced by vmsBtSessionImpl::CreateDownload(), get_FileCount(), get_FileName(), get_FileSize(), get_InfoHash(), get_PieceCount(), get_PieceSize(), get_TorrentBuffer(), get_TorrentComment(), get_TorrentName(), get_TotalFilesSize(), get_TrackerCount(), get_TrackerUrl(), LoadFromBuffer(), LoadFromFile(), vmsBtDownloadImpl::OnTrackerAlert(), vmsBtSessionImpl::RestoreDownloadHandle(), vmsBtFileImpl(), and ~vmsBtFileImpl().
long vmsBtFileImpl::m_cRefs [protected] |
Definition at line 39 of file vmsBtFileImpl.h.
Referenced by AddRef(), Release(), and vmsBtFileImpl().
1.5.6