Code formatting/indentation unified in trunk
[qtrapids] / src / server / TorrentSession.hpp
index 76b11f2..85a8c3f 100644 (file)
@@ -21,52 +21,52 @@ class QSettings;
 namespace qtrapids
 {
 
-    typedef QWeakPointer<QSettings> settings_weak_ptr;
+typedef QWeakPointer<QSettings> settings_weak_ptr;
 
-    class AlertWaiterThread;
-    typedef libtorrent::session session_t;
-    typedef libtorrent::session const* session_cptr;
+class AlertWaiterThread;
+typedef libtorrent::session session_t;
+typedef libtorrent::session const* session_cptr;
 
-    typedef libtorrent::add_torrent_params add_torrent_params_t;
-    typedef libtorrent::alert alert_t;
-    //    typedef libtorrent::alert const* alert_cptr;
-    typedef    libtorrent::torrent_alert torrent_alert_t;
-    typedef libtorrent::libtorrent_exception torrent_exception_t;
+typedef libtorrent::add_torrent_params add_torrent_params_t;
+typedef libtorrent::alert alert_t;
+//    typedef libtorrent::alert const* alert_cptr;
+typedef        libtorrent::torrent_alert torrent_alert_t;
+typedef libtorrent::libtorrent_exception torrent_exception_t;
 
-    typedef QSharedPointer<TorrentHandle> TorrentHandlePtr;
-    typedef QHash<QString, TorrentHandlePtr > torrents_t;
+typedef QSharedPointer<TorrentHandle> TorrentHandlePtr;
+typedef QHash<QString, TorrentHandlePtr > torrents_t;
 
-    class ServerDb;
-    class ServerSettings;
+class ServerDb;
+class ServerSettings;
 
-    class TorrentSession : public QObject
-    {
+class TorrentSession : public QObject
+{
 
-        Q_OBJECT;
-        Q_CLASSINFO("D-Bus Interface", "com.ixonos.qtrapids");
+    Q_OBJECT;
+    Q_CLASSINFO("D-Bus Interface", "com.ixonos.qtrapids");
 
-    public:
+public:
 
-        TorrentSession(QObject *parent, QSettings *);
+    TorrentSession(QObject *parent, QSettings *);
 
-    public slots:
+public slots:
 
-        void getState();
-        void addTorrent(const QString &path, const QString &save_path
-                        , qtrapids::ParamsMap_t other_params);
-        void removeTorrent(const QString &hash);
+    void getState();
+    void addTorrent(const QString &path, const QString &save_path
+                    , qtrapids::ParamsMap_t other_params);
+    void removeTorrent(const QString &hash);
 
-    signals:
-        void alert(qtrapids::TorrentState info, qtrapids::ParamsMap_t other_info);
+signals:
+    void alert(qtrapids::TorrentState info, qtrapids::ParamsMap_t other_info);
 
-    private slots:
-               void on_alert();
+private slots:
+    void on_alert();
 
-    private:
-        session_t btSession_;
-               AlertWaiterThread *alertWaiter_;
-               torrents_t torrents_;
-    };
+private:
+    session_t btSession_;
+    AlertWaiterThread *alertWaiter_;
+    torrents_t torrents_;
+};
 
 } // namespace qtrapids