#include <vmsBtDownloadImpl.h>

Definition at line 12 of file vmsBtDownloadImpl.h.
| vmsBtDownloadImpl::vmsBtDownloadImpl | ( | void | ) |
Definition at line 12 of file vmsBtDownloadImpl.cpp.
References vmsBtDownloadPeerInfoListImpl::m_dld, m_iDownloadSpeedLimit, m_peerList, m_pTorrent, and NULL.
| vmsBtDownloadImpl::~vmsBtDownloadImpl | ( | void | ) | [virtual] |
Definition at line 19 of file vmsBtDownloadImpl.cpp.
References m_pTorrent, and vmsBtFileImpl::Release().
| void vmsBtDownloadImpl::check_handle_is_valid | ( | ) |
Definition at line 255 of file vmsBtDownloadImpl.cpp.
References vmsBtSessionImpl::Instance(), libtorrent::torrent_handle::is_valid(), m_handle, and vmsBtSessionImpl::RestoreDownloadHandle().
Referenced by vmsBtDownloadPeerInfoListImpl::UpdateList().
| vmsBtDownloadState vmsBtDownloadImpl::GetState | ( | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 25 of file vmsBtDownloadImpl.cpp.
References BTDS_ALLOCATING, BTDS_CHECKING_FILES, BTDS_CONNECTING_TRACKER, BTDS_DOWNLOADING, BTDS_FINISHED, BTDS_QUEUED, BTDS_SEEDING, FALSE, libtorrent::torrent_handle::is_valid(), m_handle, libtorrent::torrent_status::state, and libtorrent::torrent_handle::status().
| BOOL vmsBtDownloadImpl::IsPaused | ( | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 60 of file vmsBtDownloadImpl.cpp.
References FALSE, libtorrent::torrent_handle::is_valid(), m_handle, libtorrent::torrent_status::paused, and libtorrent::torrent_handle::status().
| void vmsBtDownloadImpl::Pause | ( | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 158 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_handle::is_valid(), m_handle, and libtorrent::torrent_handle::pause().
| void vmsBtDownloadImpl::Resume | ( | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 166 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_handle::is_valid(), m_handle, and libtorrent::torrent_handle::resume().
| vmsBtFile * vmsBtDownloadImpl::get_Torrent | ( | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 187 of file vmsBtDownloadImpl.cpp.
References m_pTorrent.
| void vmsBtDownloadImpl::get_SavePath | ( | LPSTR | pszRes | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 68 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_handle::is_valid(), m_handle, and libtorrent::torrent_handle::save_path().
| float vmsBtDownloadImpl::get_PercentDone | ( | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 78 of file vmsBtDownloadImpl.cpp.
References get_TotalDownloadedBytesCount(), vmsBtFileImpl::get_TotalFilesSize(), libtorrent::torrent_handle::is_valid(), m_handle, and m_pTorrent.
| int vmsBtDownloadImpl::get_PiecesProgressMap | ( | bool * | pbPieces, | |
| int * | pnCompletedPieces | |||
| ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 88 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_handle::is_valid(), m_handle, NULL, libtorrent::torrent_status::num_pieces, libtorrent::torrent_status::pieces, pieces(), and libtorrent::torrent_handle::status().
| bool vmsBtDownloadImpl::is_PieceCompleted | ( | int | nIndex | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 270 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_handle::is_valid(), m_handle, libtorrent::torrent_status::pieces, and libtorrent::torrent_handle::status().
| int vmsBtDownloadImpl::get_DownloadConnectionCount | ( | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 112 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_handle::get_peer_info(), libtorrent::torrent_handle::is_valid(), m_handle, and n.
| UINT64 vmsBtDownloadImpl::get_TotalDownloadedBytesCount | ( | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 134 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_handle::is_valid(), m_handle, libtorrent::torrent_handle::status(), and libtorrent::torrent_status::total_done.
Referenced by get_PercentDone().
| UINT vmsBtDownloadImpl::GetDownloadSpeed | ( | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 142 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_status::download_payload_rate, libtorrent::torrent_handle::is_valid(), m_handle, and libtorrent::torrent_handle::status().
| UINT vmsBtDownloadImpl::GetUploadSpeed | ( | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 150 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_handle::is_valid(), m_handle, libtorrent::torrent_handle::status(), and libtorrent::torrent_status::upload_payload_rate.
| void vmsBtDownloadImpl::SetDownloadLimit | ( | int | limit | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 174 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_handle::is_valid(), m_handle, and libtorrent::torrent_handle::set_download_limit().
| int vmsBtDownloadImpl::GetDownloadLimit | ( | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 182 of file vmsBtDownloadImpl.cpp.
References m_iDownloadSpeedLimit.
| int vmsBtDownloadImpl::get_ConnectionCount | ( | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 192 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_handle::is_valid(), m_handle, libtorrent::torrent_status::num_peers, and libtorrent::torrent_handle::status().
| void vmsBtDownloadImpl::set_ConnectionLimit | ( | int | limit | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 200 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_handle::is_valid(), m_handle, and libtorrent::torrent_handle::set_max_connections().
| BOOL vmsBtDownloadImpl::get_FastResumeData | ( | LPBYTE | pbRes, | |
| DWORD | dwSize, | |||
| DWORD * | pdwDataSize | |||
| ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 208 of file vmsBtDownloadImpl.cpp.
References libtorrent::bencode(), simple_client::e, FALSE, libtorrent::torrent_handle::is_valid(), m_handle, NULL, TRUE, and libtorrent::torrent_handle::write_resume_data().
Reimplemented from vmsBtDownload.
Definition at line 234 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_handle::is_valid(), m_handle, and libtorrent::torrent_handle::set_tracker_login().
| BOOL vmsBtDownloadImpl::MoveToFolder | ( | LPCSTR | pszNewFolder | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 242 of file vmsBtDownloadImpl.cpp.
References FALSE, libtorrent::torrent_handle::is_valid(), LPSTR, m_handle, and libtorrent::torrent_handle::move_storage().
| int vmsBtDownloadImpl::get_NextAnnounceInterval | ( | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 262 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_handle::is_valid(), m_handle, libtorrent::torrent_status::next_announce, and libtorrent::torrent_handle::status().
| void vmsBtDownloadImpl::get_CurrentTracker | ( | LPSTR | pszRes | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 278 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_status::current_tracker, libtorrent::torrent_handle::get_torrent_info(), libtorrent::torrent_handle::is_valid(), m_handle, NULL, simple_client::s, libtorrent::torrent_handle::status(), and libtorrent::torrent_info::trackers().
| UINT64 vmsBtDownloadImpl::get_TotalUploadedByteCount | ( | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 295 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_handle::is_valid(), m_handle, libtorrent::torrent_handle::status(), and libtorrent::torrent_status::total_payload_upload.
| void vmsBtDownloadImpl::get_PeersStat | ( | int * | pnPeersConnected, | |
| int * | pnSeedsTotal, | |||
| int * | pnLeechersTotal, | |||
| int * | pnSeedsConnected | |||
| ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 303 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_handle::is_valid(), m_handle, libtorrent::torrent_status::num_complete, libtorrent::torrent_status::num_incomplete, libtorrent::torrent_status::num_peers, libtorrent::torrent_status::num_seeds, simple_client::s, and libtorrent::torrent_handle::status().
| UINT64 vmsBtDownloadImpl::get_WastedByteCount | ( | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 320 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_handle::is_valid(), m_handle, simple_client::s, libtorrent::torrent_handle::status(), libtorrent::torrent_status::total_failed_bytes, and libtorrent::torrent_status::total_redundant_bytes.
| double vmsBtDownloadImpl::get_ShareRating | ( | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 329 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_handle::is_valid(), m_handle, simple_client::s, libtorrent::torrent_handle::status(), libtorrent::torrent_status::total_payload_download, and libtorrent::torrent_status::total_payload_upload.
| vmsBtDownloadPeerInfoList * vmsBtDownloadImpl::get_PeerInfoList | ( | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 340 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_handle::is_valid(), m_handle, m_peerList, and NULL.
| void vmsBtDownloadImpl::get_FileProgress | ( | float * | p | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 347 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_handle::file_progress(), libtorrent::torrent_handle::is_valid(), and m_handle.
| BOOL vmsBtDownloadImpl::is_HandleValid | ( | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 359 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_handle::is_valid(), and m_handle.
| void vmsBtDownloadImpl::OnTrackerAlert | ( | LPCSTR | pszMsg | ) |
Definition at line 364 of file vmsBtDownloadImpl.cpp.
References libtorrent::torrent_handle::force_reannounce(), m_handle, m_pTorrent, vmsBtFileImpl::m_torrent, NULL, libtorrent::torrent_handle::replace_trackers(), libtorrent::torrent_info::trackers(), and libtorrent::torrent_handle::trackers().
| int vmsBtDownloadImpl::get_CurrentTaskProgress | ( | ) | [virtual] |
Reimplemented from vmsBtDownload.
Definition at line 390 of file vmsBtDownloadImpl.cpp.
References m_handle, libtorrent::torrent_status::progress, and libtorrent::torrent_handle::status().
| torrent_handle vmsBtDownloadImpl::m_handle |
Definition at line 53 of file vmsBtDownloadImpl.h.
Referenced by check_handle_is_valid(), vmsBtSessionImpl::CreateDownload(), vmsBtSessionImpl::DeleteDownload(), get_ConnectionCount(), get_CurrentTaskProgress(), get_CurrentTracker(), get_DownloadConnectionCount(), get_FastResumeData(), get_FileProgress(), get_NextAnnounceInterval(), get_PeerInfoList(), get_PeersStat(), get_PercentDone(), get_PiecesProgressMap(), get_SavePath(), get_ShareRating(), get_TotalDownloadedBytesCount(), get_TotalUploadedByteCount(), get_WastedByteCount(), GetDownloadSpeed(), GetState(), GetUploadSpeed(), is_HandleValid(), is_PieceCompleted(), IsPaused(), MoveToFolder(), OnTrackerAlert(), Pause(), vmsBtSessionImpl::RestoreDownloadHandle(), Resume(), set_ConnectionLimit(), set_TrackerLogin(), SetDownloadLimit(), and vmsBtDownloadPeerInfoListImpl::UpdateList().
Definition at line 54 of file vmsBtDownloadImpl.h.
Referenced by vmsBtSessionImpl::CreateDownload(), get_PercentDone(), get_Torrent(), OnTrackerAlert(), vmsBtSessionImpl::RestoreDownloadHandle(), vmsBtDownloadImpl(), and ~vmsBtDownloadImpl().
| std::string vmsBtDownloadImpl::m_strOutputPath |
Definition at line 55 of file vmsBtDownloadImpl.h.
Referenced by vmsBtSessionImpl::CreateDownload(), and vmsBtSessionImpl::RestoreDownloadHandle().
Definition at line 58 of file vmsBtDownloadImpl.h.
Referenced by get_PeerInfoList(), and vmsBtDownloadImpl().
int vmsBtDownloadImpl::m_iDownloadSpeedLimit [protected] |
Definition at line 60 of file vmsBtDownloadImpl.h.
Referenced by GetDownloadLimit(), and vmsBtDownloadImpl().
1.5.6