- Torrent can be now opened and download starts
[qtrapids] / src / engine / QBittorrentSession.h
index a6b6ac2..d941a92 100644 (file)
@@ -35,6 +35,7 @@ class AlertWaiterThread;
 typedef libtorrent::session TorrentSession;
 typedef libtorrent::add_torrent_params AddTorrentParams;
 typedef libtorrent::alert TorrentAlert;
+typedef libtorrent::sha1_hash Sha1Hash;
 
 
 /**
@@ -49,7 +50,7 @@ class QBittorrentSession : public QObject {
     ~QBittorrentSession();
                
                /// @brief Add torrent to session.
-               QTorrentHandle addTorrent(AddTorrentParams const& params);
+               std::auto_ptr<QTorrentHandle> addTorrent(AddTorrentParams const& params);
                
        signals:
                void alert(std::auto_ptr<TorrentAlert> al);