X-Git-Url: http://git.maemo.org/git/?p=qtrapids;a=blobdiff_plain;f=src%2Fserver%2FTorrentSession.cpp;h=b5d6e9d83bad4dce10565a6c6266f10b4fc43f01;hp=94c2465cef845b6b418b27e70ba341f2b8c8ccbd;hb=1ebd176c1cdaf346ae947eb1c2b11513e6460bc9;hpb=b62e6b5309eb1954c6ea4e1522767a424d76f15d diff --git a/src/server/TorrentSession.cpp b/src/server/TorrentSession.cpp index 94c2465..b5d6e9d 100644 --- a/src/server/TorrentSession.cpp +++ b/src/server/TorrentSession.cpp @@ -39,6 +39,7 @@ void TorrentSession::loadState() qDebug() << "adding " << info.path; addTorrent_(info.path, info.download_path, ParamsMap_t(), true); } + btSession_.listen_on(settings_->getListenPorts()); } void TorrentSession::on_alert() @@ -190,5 +191,15 @@ void TorrentSession::removeTorrent(const QString &hash) db_->removeTorrent(hash); } +void TorrentSession::setOptions(qtrapids::ParamsMap_t options) +{ + settings_->setOptions(options); +} + +qtrapids::ParamsMap_t TorrentSession::getOptions() +{ + return settings_->getOptions(); +} + } // namespace qtrapids