Server session persistence is implemented
[qtrapids] / src / server / TorrentSession.hpp
index 6240024..1baffac 100644 (file)
@@ -63,9 +63,15 @@ private slots:
        void on_alert();
 
 private:
+
+       void loadState();
+       void addTorrent_(const QString &, const QString &, const qtrapids::ParamsMap_t &, bool);
+
        session_t btSession_;
        AlertWaiterThread *alertWaiter_;
        torrents_t torrents_;
+       std::auto_ptr<ServerSettings> settings_;
+       std::auto_ptr<ServerDb> db_;
 };
 
 } // namespace qtrapids