libktorrent
2.1.1
|
#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 SHA1Hash & | infoHash () const |
Get the info hash. | |
bool | isValid () const |
Is this a valid magnet link. | |
MagnetLink & | operator= (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 |
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.