#include <libtorrent/alert_types.hpp>
#include <libtorrent/error_code.hpp>
+#include <utility>
+
class QSettings;
namespace qtrapids
typedef QSharedPointer<TorrentHandle> TorrentHandlePtr;
typedef QHash<QString, TorrentHandlePtr > torrents_t;
+typedef std::pair<int, int> ports_range_t;
class ServerDb;
class ServerSettings;
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();
signals:
void alert(qtrapids::TorrentState info, qtrapids::ParamsMap_t other_info);