formatting is changed according to last astyle settings
[qtrapids] / src / server / TorrentHandle.hpp
index bf4423e..9bd716f 100644 (file)
@@ -36,7 +36,7 @@ typedef libtorrent::sha1_hash Sha1Hash;
 
 inline QString Hash2QStr(Sha1Hash const& hash)
 {
-    return QString(hash.to_string().c_str());
+       return QString(hash.to_string().c_str());
 }
 
 /**
@@ -46,39 +46,38 @@ class TorrentHandle
 {
 public:
 
-    TorrentHandle(libtorrent::torrent_handle handle);
-    ~TorrentHandle();
+       TorrentHandle(libtorrent::torrent_handle handle);
+       ~TorrentHandle();
 
 
 
-    torrent_info_cref getTorrentInfo() const;
+       torrent_info_cref getTorrentInfo() const;
 
-    bool isValid() const;
+       bool isValid() const;
 
-    Sha1Hash hash() const
-    {
-        return torrentHandle_.info_hash();
-    }
+       Sha1Hash hash() const {
+               return torrentHandle_.info_hash();
+       }
 
-    QString name() const;
-    size_t getTotalSize() const;
-    TorrentStatus::Id state() const;
-    float progress() const;
-    float uploadRate() const;
-    float downloadRate() const;
-    qint32 numSeeds() const;
-    qint32 numLeeches() const;
-    qint32 ratio() const;
+       QString name() const;
+       size_t getTotalSize() const;
+       TorrentStatus::Id state() const;
+       float progress() const;
+       float uploadRate() const;
+       float downloadRate() const;
+       qint32 numSeeds() const;
+       qint32 numLeeches() const;
+       qint32 ratio() const;
 
-    torrent_handle_t getHandle() const;
-    bool operator==(TorrentHandle const& h) const;
-    bool operator<(TorrentHandle const& h) const;
+       torrent_handle_t getHandle() const;
+       bool operator==(TorrentHandle const& h) const;
+       bool operator<(TorrentHandle const& h) const;
 
 private:
-    TorrentHandle(); // Prevent default construct.
-    torrent_handle_t torrentHandle_;
+       TorrentHandle(); // Prevent default construct.
+       torrent_handle_t torrentHandle_;
 
-    TorrentStatus_t status() const;
+       TorrentStatus_t status() const;
 
 };