- Implementde server process termination from client UI
[qtrapids] / src / server / TorrentSession.hpp
index 4f56050..66b6b54 100644 (file)
@@ -28,6 +28,7 @@ typedef QWeakPointer<QSettings> settings_weak_ptr;
 class AlertWaiterThread;
 typedef libtorrent::session session_t;
 typedef libtorrent::session const* session_cptr;
+typedef libtorrent::session_settings session_settings_t;
 
 typedef libtorrent::add_torrent_params add_torrent_params_t;
 typedef libtorrent::alert alert_t;
@@ -49,21 +50,21 @@ class TorrentSession : public QObject
        Q_CLASSINFO("D-Bus Interface", "com.ixonos.qtrapids");
 
 public:
-
        TorrentSession(QObject *parent, QSettings *);
 
 public slots:
-
        void getState();
        void addTorrent(const QString &path, const QString &save_path
                        , qtrapids::ParamsMap_t other_params);
        void removeTorrent(const QString &hash);
        void setOptions(qtrapids::ParamsMap_t options);
        qtrapids::ParamsMap_t getOptions();
-
+       void terminateSession();
+       
 signals:
        void alert(qtrapids::TorrentState info, qtrapids::ParamsMap_t other_info);
-
+       void terminate();
+       
 private slots:
        void on_alert();