libktorrent  2.2.0
Public Slots | Signals | Public Member Functions | List of all members
bt::MagnetDownloader Class Reference

#include <magnetdownloader.h>

Inheritance diagram for bt::MagnetDownloader:
Inheritance graph
[legend]

Public Slots

void start ()
 
void stop ()
 

Signals

void foundMetadata (bt::MagnetDownloader *self, const QByteArray &metadata)
 

Public Member Functions

 MagnetDownloader (const MagnetLink &mlink, QObject *parent)
 
const MagnetLinkmagnetLink () const
 Get the MagnetLink.
 
Uint32 numPeers () const
 How many peers are we connected to.
 
bool running () const
 Is the magnet download running.
 
void update ()
 

Detailed Description

Class which tries to download the metadata associated to a MagnetLink It basically has a Tracker (optional), a DHTPeerSource and a PeerManager. With these it tries to find peers, connect to them and download the metadata.

Definition at line 46 of file magnetdownloader.h.

Member Function Documentation

◆ foundMetadata

void bt::MagnetDownloader::foundMetadata ( bt::MagnetDownloader self,
const QByteArray &  metadata 
)
signal

Emitted when downloading the metadata was succesfull.

◆ start

void bt::MagnetDownloader::start ( )
slot

Start the MagnetDownloader, this will enable DHT.

◆ stop

void bt::MagnetDownloader::stop ( )
slot

Stop the MagnetDownloader

◆ update()

void bt::MagnetDownloader::update ( )

Update the MagnetDownloader


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