- Torrent addign and removal functional
[qtrapids] / src / engine / QTorrentHandle.h
index c102086..f03194d 100644 (file)
@@ -27,6 +27,7 @@
 
 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>
@@ -55,13 +56,14 @@ class QTorrentHandle
                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;