vmsBtDownloadImpl Class Reference

#include <vmsBtDownloadImpl.h>

Inheritance diagram for vmsBtDownloadImpl:

vmsBtDownload

List of all members.

Public Member Functions

void check_handle_is_valid ()
vmsBtDownloadState GetState ()
BOOL IsPaused ()
void Pause ()
void Resume ()
vmsBtFileget_Torrent ()
void get_SavePath (LPSTR pszRes)
float get_PercentDone ()
int get_PiecesProgressMap (bool *pbPieces, int *pnCompletedPieces)
bool is_PieceCompleted (int nIndex)
int get_DownloadConnectionCount ()
UINT64 get_TotalDownloadedBytesCount ()
UINT GetDownloadSpeed ()
UINT GetUploadSpeed ()
void SetDownloadLimit (int limit)
int GetDownloadLimit ()
int get_ConnectionCount ()
void set_ConnectionLimit (int limit)
BOOL get_FastResumeData (LPBYTE pbRes, DWORD dwSize, DWORD *pdwDataSize)
void set_TrackerLogin (LPCSTR pszUser, LPCSTR pszPassword)
BOOL MoveToFolder (LPCSTR pszNewFolder)
int get_NextAnnounceInterval ()
void get_CurrentTracker (LPSTR pszRes)
UINT64 get_TotalUploadedByteCount ()
void get_PeersStat (int *pnPeersConnected, int *pnSeedsTotal, int *pnLeechersTotal, int *pnSeedsConnected)
UINT64 get_WastedByteCount ()
double get_ShareRating ()
vmsBtDownloadPeerInfoListget_PeerInfoList ()
void get_FileProgress (float *p)
BOOL is_HandleValid ()
void OnTrackerAlert (LPCSTR pszMsg)
int get_CurrentTaskProgress ()
 vmsBtDownloadImpl (void)
virtual ~vmsBtDownloadImpl (void)

Public Attributes

torrent_handle m_handle
vmsBtFileImplm_pTorrent
std::string m_strOutputPath

Protected Attributes

vmsBtDownloadPeerInfoListImpl m_peerList
int m_iDownloadSpeedLimit


Detailed Description

Definition at line 12 of file vmsBtDownloadImpl.h.


Constructor & Destructor Documentation

vmsBtDownloadImpl::vmsBtDownloadImpl ( void   ) 

vmsBtDownloadImpl::~vmsBtDownloadImpl ( void   )  [virtual]

Definition at line 19 of file vmsBtDownloadImpl.cpp.

References m_pTorrent, and vmsBtFileImpl::Release().


Member Function Documentation

void vmsBtDownloadImpl::check_handle_is_valid (  ) 

vmsBtDownloadState vmsBtDownloadImpl::GetState (  )  [virtual]

BOOL vmsBtDownloadImpl::IsPaused (  )  [virtual]

void vmsBtDownloadImpl::Pause (  )  [virtual]

void vmsBtDownloadImpl::Resume (  )  [virtual]

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]

float vmsBtDownloadImpl::get_PercentDone (  )  [virtual]

int vmsBtDownloadImpl::get_PiecesProgressMap ( bool pbPieces,
int *  pnCompletedPieces 
) [virtual]

bool vmsBtDownloadImpl::is_PieceCompleted ( int  nIndex  )  [virtual]

int vmsBtDownloadImpl::get_DownloadConnectionCount (  )  [virtual]

UINT64 vmsBtDownloadImpl::get_TotalDownloadedBytesCount (  )  [virtual]

UINT vmsBtDownloadImpl::GetDownloadSpeed (  )  [virtual]

UINT vmsBtDownloadImpl::GetUploadSpeed (  )  [virtual]

void vmsBtDownloadImpl::SetDownloadLimit ( int  limit  )  [virtual]

int vmsBtDownloadImpl::GetDownloadLimit (  )  [virtual]

Reimplemented from vmsBtDownload.

Definition at line 182 of file vmsBtDownloadImpl.cpp.

References m_iDownloadSpeedLimit.

int vmsBtDownloadImpl::get_ConnectionCount (  )  [virtual]

void vmsBtDownloadImpl::set_ConnectionLimit ( int  limit  )  [virtual]

BOOL vmsBtDownloadImpl::get_FastResumeData ( LPBYTE  pbRes,
DWORD  dwSize,
DWORD *  pdwDataSize 
) [virtual]

void vmsBtDownloadImpl::set_TrackerLogin ( LPCSTR  pszUser,
LPCSTR  pszPassword 
) [virtual]

BOOL vmsBtDownloadImpl::MoveToFolder ( LPCSTR  pszNewFolder  )  [virtual]

int vmsBtDownloadImpl::get_NextAnnounceInterval (  )  [virtual]

void vmsBtDownloadImpl::get_CurrentTracker ( LPSTR  pszRes  )  [virtual]

UINT64 vmsBtDownloadImpl::get_TotalUploadedByteCount (  )  [virtual]

void vmsBtDownloadImpl::get_PeersStat ( int *  pnPeersConnected,
int *  pnSeedsTotal,
int *  pnLeechersTotal,
int *  pnSeedsConnected 
) [virtual]

UINT64 vmsBtDownloadImpl::get_WastedByteCount (  )  [virtual]

double vmsBtDownloadImpl::get_ShareRating (  )  [virtual]

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]

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  ) 

int vmsBtDownloadImpl::get_CurrentTaskProgress (  )  [virtual]


Member Data Documentation

Definition at line 58 of file vmsBtDownloadImpl.h.

Referenced by get_PeerInfoList(), and vmsBtDownloadImpl().

Definition at line 60 of file vmsBtDownloadImpl.h.

Referenced by GetDownloadLimit(), and vmsBtDownloadImpl().


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

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