+QTorrentHandle QBittorrentSession::addTorrent(AddTorrentParams const& params)
+{
+ // Delegate to Libtorrent and return QTorrentHandle.
+ QTorrentHandle handle(btSession_.add_torrent(params));
+ return handle;
+}
+
+
+// ========================== SLOTS ==============================
+void QBittorrentSession::on_alert(TorrentAlert const *al)
+{
+ qDebug() << "QBittorrentSession:on_alert(" << al << ")";
+ emit alert(al);
+}
+
+