- Added PreferencesDialog with settings saving and reading.
[qtrapids] / src / engine / QBittorrentSession.h
index 82665b4..a6b6ac2 100644 (file)
 #ifndef QBITTORRENTSESSION_H
 #define QBITTORRENTSESSION_H
 
+#include <memory>
+
 #include <QObject>
 
 #include <libtorrent/session.hpp>
+#include <libtorrent/torrent_info.hpp>
 
 #include "QTorrentHandle.h"
 
@@ -49,7 +52,7 @@ class QBittorrentSession : public QObject {
                QTorrentHandle addTorrent(AddTorrentParams const& params);
                
        signals:
-               void alert(TorrentAlert const *al);
+               void alert(std::auto_ptr<TorrentAlert> al);
                
        private slots:
                void on_alert(TorrentAlert const *al);