qBittorrent
|
#include <magneturi.h>
Public Member Functions | |
MagnetUri (const QString &source={}) | |
bool | isValid () const |
InfoHash | infoHash () const |
QString | name () const |
QVector< TrackerEntry > | trackers () const |
QVector< QUrl > | urlSeeds () const |
QString | url () const |
lt::add_torrent_params | addTorrentParams () const |
Private Attributes | |
bool | m_valid |
QString | m_url |
InfoHash | m_infoHash |
QString | m_name |
QVector< TrackerEntry > | m_trackers |
QVector< QUrl > | m_urlSeeds |
lt::add_torrent_params | m_addTorrentParams |
Definition at line 42 of file magneturi.h.
|
explicit |
Definition at line 76 of file magneturi.cpp.
References anonymous_namespace{magneturi.cpp}::isV1Hash(), anonymous_namespace{magneturi.cpp}::isV2Hash(), m_addTorrentParams, m_infoHash, m_name, m_trackers, m_url, m_urlSeeds, m_valid, and anonymous_namespace{misc.cpp}::source.
lt::add_torrent_params MagnetUri::addTorrentParams | ( | ) | const |
Definition at line 140 of file magneturi.cpp.
References m_addTorrentParams.
Referenced by BitTorrent::Session::addTorrent_impl(), and BitTorrent::Session::downloadMetadata().
InfoHash MagnetUri::infoHash | ( | ) | const |
Definition at line 115 of file magneturi.cpp.
References m_infoHash.
Referenced by BitTorrent::Session::downloadMetadata(), AddNewTorrentDialog::loadMagnet(), AddNewTorrentDialog::reject(), and AddNewTorrentDialog::updateMetadata().
bool MagnetUri::isValid | ( | ) | const |
Definition at line 110 of file magneturi.cpp.
References m_valid.
Referenced by BitTorrent::Session::addTorrent(), BitTorrent::Session::downloadMetadata(), AddNewTorrentDialog::loadMagnet(), and AddNewTorrentDialog::show().
QString MagnetUri::name | ( | ) | const |
Definition at line 120 of file magneturi.cpp.
References m_name.
Referenced by BitTorrent::Session::downloadMetadata(), and AddNewTorrentDialog::loadMagnet().
QVector< TrackerEntry > MagnetUri::trackers | ( | ) | const |
Definition at line 125 of file magneturi.cpp.
References m_trackers.
Referenced by BitTorrent::Session::addTorrent_impl(), and AddNewTorrentDialog::loadMagnet().
QString MagnetUri::url | ( | ) | const |
QVector< QUrl > MagnetUri::urlSeeds | ( | ) | const |
Definition at line 130 of file magneturi.cpp.
References m_urlSeeds.
Referenced by BitTorrent::Session::addTorrent_impl(), and AddNewTorrentDialog::loadMagnet().
|
private |
Definition at line 63 of file magneturi.h.
Referenced by addTorrentParams(), and MagnetUri().
|
private |
Definition at line 59 of file magneturi.h.
Referenced by infoHash(), and MagnetUri().
|
private |
Definition at line 60 of file magneturi.h.
Referenced by MagnetUri(), and name().
|
private |
Definition at line 61 of file magneturi.h.
Referenced by MagnetUri(), and trackers().
|
private |
Definition at line 58 of file magneturi.h.
Referenced by MagnetUri(), and url().
|
private |
Definition at line 62 of file magneturi.h.
Referenced by MagnetUri(), and urlSeeds().
|
private |
Definition at line 57 of file magneturi.h.
Referenced by isValid(), and MagnetUri().