typedef libtorrent::torrent_status TorrentStatus;
typedef libtorrent::torrent_info TorrentInfo;
+typedef libtorrent::torrent_handle TorrentHandle;
/**
@author Lassi Väätämöinen <lassi.vaatamoinen@ixonos.com>
qint32 numLeeches() const;
qint32 ratio() const;
-
- bool operator==(QTorrentHandle const& h);
- bool operator<(QTorrentHandle const& h);
+ TorrentHandle getHandle() const;
+
+ bool operator==(QTorrentHandle const& h) const;
+ bool operator<(QTorrentHandle const& h) const;
private:
QTorrentHandle(); // Prevent default construct.
- libtorrent::torrent_handle torrentHandle_;
+ TorrentHandle torrentHandle_;
// Private functions.
QString GetStatusString(TorrentStatus const& status) const;