X-Git-Url: http://git.maemo.org/git/?p=qtrapids;a=blobdiff_plain;f=src%2Fengine%2FQBittorrentSession.cpp;h=2ab40edd9341e68a2c172b47437b4b113656162d;hp=7d88e2620aff0edb2e8adf32fcf405e75957b327;hb=d3d85653bf84dadcf6c2890cc2ddf9f629ee7619;hpb=f576091800144d69317250a69d40c711505a4f34 diff --git a/src/engine/QBittorrentSession.cpp b/src/engine/QBittorrentSession.cpp index 7d88e26..2ab40ed 100644 --- a/src/engine/QBittorrentSession.cpp +++ b/src/engine/QBittorrentSession.cpp @@ -23,7 +23,8 @@ #include "AlertWaiterThread.h" #include "QBittorrentSession.h" - +namespace qtrapids { + QBittorrentSession::QBittorrentSession(QObject *parent): QObject(parent), btSession_(), @@ -41,17 +42,17 @@ QBittorrentSession::~QBittorrentSession() } -QTorrentHandle +qtrapids::QTorrentHandle QBittorrentSession::addTorrent(AddTorrentParams const& params) { // Delegate to Libtorrent and return QTorrentHandle. //std::auto_ptr handlePtr(new QTorrentHandle(btSession_.add_torrent(params))); - QTorrentHandle handle = QTorrentHandle(btSession_.add_torrent(params)); + qtrapids::QTorrentHandle handle = qtrapids::QTorrentHandle(btSession_.add_torrent(params)); return handle; } -void QBittorrentSession::removeTorrent(QTorrentHandle const& handle) +void QBittorrentSession::removeTorrent(qtrapids::QTorrentHandle const& handle) { btSession_.remove_torrent(handle.getHandle()); } @@ -73,5 +74,4 @@ void QBittorrentSession::on_alert(Alert const *al) emit alert(alertPtr); } - - +} //namespace qtrapids