-
- /// @brief Add torrent to session.
- QTorrentHandle addTorrent(AddTorrentParams const& params);
-
- signals:
- void alert(std::auto_ptr<TorrentAlert> al);
-
- private slots:
- void on_alert(TorrentAlert const *al);
-
- private:
- TorrentSession btSession_;
- AlertWaiterThread *alertWaiter_;
-
+
+ /// @brief Add torrent to session.
+ qtrapids::QTorrentHandle addTorrent(AddTorrentParams const& params);
+ void removeTorrent(qtrapids::QTorrentHandle const& handle);
+
+signals:
+ void alert(std::auto_ptr<Alert> al);
+
+private slots:
+ void on_alert(Alert const *al);
+
+private:
+ TorrentSession btSession_;
+ AlertWaiterThread *alertWaiter_;
+