formatting is changed according to last astyle settings
[qtrapids] / src / engine / QBittorrentSession.cpp
index e474f7d..5084f5d 100644 (file)
@@ -27,14 +27,14 @@ namespace qtrapids
 {
 
 QBittorrentSession::QBittorrentSession(QObject *parent):
-        QObject(parent),
-        btSession_(),
-        alertWaiter_(NULL)
+               QObject(parent),
+               btSession_(),
+               alertWaiter_(NULL)
 {
-    alertWaiter_ = new AlertWaiterThread(&btSession_, this);
-    alertWaiter_->allAlerts();
-    connect(alertWaiter_, SIGNAL(alert(Alert const*)), this, SLOT(on_alert(Alert const*)));
-    alertWaiter_->start();
+       alertWaiter_ = new AlertWaiterThread(&btSession_, this);
+       alertWaiter_->allAlerts();
+       connect(alertWaiter_, SIGNAL(alert(Alert const*)), this, SLOT(on_alert(Alert const*)));
+       alertWaiter_->start();
 }
 
 
@@ -46,16 +46,16 @@ QBittorrentSession::~QBittorrentSession()
 qtrapids::QTorrentHandle
 QBittorrentSession::addTorrent(AddTorrentParams const& params)
 {
-    // Delegate to Libtorrent and return QTorrentHandle.
-    //std::auto_ptr<QTorrentHandle> handlePtr(new QTorrentHandle(btSession_.add_torrent(params)));
-    qtrapids::QTorrentHandle  handle = qtrapids::QTorrentHandle(btSession_.add_torrent(params));
-    return handle;
+       // Delegate to Libtorrent and return QTorrentHandle.
+       //std::auto_ptr<QTorrentHandle> handlePtr(new QTorrentHandle(btSession_.add_torrent(params)));
+       qtrapids::QTorrentHandle  handle = qtrapids::QTorrentHandle(btSession_.add_torrent(params));
+       return handle;
 }
 
 
 void QBittorrentSession::removeTorrent(qtrapids::QTorrentHandle const& handle)
 {
-    btSession_.remove_torrent(handle.getHandle());
+       btSession_.remove_torrent(handle.getHandle());
 }
 
 
@@ -67,12 +67,12 @@ void QBittorrentSession::on_alert(Alert const *al)
 {
 
 #ifdef QTRAPIDS_DEBUG
-    if (al)
-        qDebug() << "on_alert():" << QString::fromStdString(al->message());
+       if (al)
+               qDebug() << "on_alert():" << QString::fromStdString(al->message());
 #endif
 
-    std::auto_ptr<Alert> alertPtr = btSession_.pop_alert();
-    emit alert(alertPtr);
+       std::auto_ptr<Alert> alertPtr = btSession_.pop_alert();
+       emit alert(alertPtr);
 }
 
 } //namespace qtrapids