libktorrent  2.2.0
Public Member Functions | List of all members
bt::MonitorInterface Class Referenceabstract

Interface for classes who want to monitor a TorrentInterface. More...

#include <monitorinterface.h>

Public Member Functions

virtual void destroyed ()=0
 
virtual void downloadRemoved (ChunkDownloadInterface *cd)=0
 
virtual void downloadStarted (ChunkDownloadInterface *cd)=0
 
virtual void filePercentageChanged (TorrentFileInterface *file, float percentage)=0
 
virtual void filePreviewChanged (TorrentFileInterface *file, bool preview)=0
 
virtual void peerAdded (PeerInterface *peer)=0
 
virtual void peerRemoved (PeerInterface *peer)=0
 
virtual void stopped ()=0
 

Detailed Description

Author
Joris Guisson

Classes who want to keep track of all peers currently connected for a given torrent and all chunks who are currently downloading can implement this interface.

Definition at line 38 of file monitorinterface.h.

Member Function Documentation

◆ destroyed()

virtual void bt::MonitorInterface::destroyed ( )
pure virtual

The download has been deleted.

◆ downloadRemoved()

virtual void bt::MonitorInterface::downloadRemoved ( ChunkDownloadInterface cd)
pure virtual

The download of a chunk has been stopped.

Parameters
cdThe ChunkDownload

◆ downloadStarted()

virtual void bt::MonitorInterface::downloadStarted ( ChunkDownloadInterface cd)
pure virtual

The download of a chunk has been started.

Parameters
cdThe ChunkDownload

◆ filePercentageChanged()

virtual void bt::MonitorInterface::filePercentageChanged ( TorrentFileInterface file,
float  percentage 
)
pure virtual

The download percentage of a file has changed.

Parameters
fileThe file
percentageThe percentage

◆ filePreviewChanged()

virtual void bt::MonitorInterface::filePreviewChanged ( TorrentFileInterface file,
bool  preview 
)
pure virtual

Preview status of a file has changed.

Parameters
fileThe file
previewWhether or not it is available

◆ peerAdded()

virtual void bt::MonitorInterface::peerAdded ( PeerInterface peer)
pure virtual

A peer has been added.

Parameters
peerThe peer

◆ peerRemoved()

virtual void bt::MonitorInterface::peerRemoved ( PeerInterface peer)
pure virtual

A peer has been removed.

Parameters
peerThe peer

◆ stopped()

virtual void bt::MonitorInterface::stopped ( )
pure virtual

The download has been stopped.


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