libktorrent  2.1.1
Public Member Functions | Friends | List of all members
bt::MagnetLink Class Reference

#include <magnetlink.h>

Public Member Functions

 MagnetLink (const MagnetLink &mlink)
 
 MagnetLink (const QString &mlink)
 
 MagnetLink (const QUrl &mlink)
 
QString displayName () const
 Get the display name (can be empty)
 
const SHA1HashinfoHash () const
 Get the info hash.
 
bool isValid () const
 Is this a valid magnet link.
 
MagnetLinkoperator= (const MagnetLink &mlink)
 Assignment operator.
 
bool operator== (const MagnetLink &mlink) const
 Equality operator.
 
QString subPath () const
 Get the path of addressed file(s) inside the torrent.
 
QString torrent () const
 Get the torrent URL (can be empty)
 
QString toString () const
 Convert it to a string.
 
QList< QUrl > trackers () const
 Get all possible trackers (can be empty)
 

Friends

class MagnetDownloader
 

Detailed Description

MagnetLink class magnet links have the format: magnet:?xt=urn:btih:info_hash&dn=name&tr=tracker-url[,tracker-url...] note: a comma-seperated list will not work with other clients likely optional parameters are to=torrent-file-url (need not be valid) pt=path-to-download-in-torrent

Definition at line 58 of file magnetlink.h.


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