Added build script of Debian
[qtrapids] / src / client / SeedView.h
index 7961138..bc6988a 100644 (file)
@@ -1,11 +1,9 @@
 /***************************************************************************
- *   Copyright (C) 2009 by Lassi Väätämöinen   *
- *   lassi.vaatamoinen@ixonos.com   *
+ *   Copyright (C) 2010 by Ixonos Plc   *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
+ *   the Free Software Foundation; version 2 of the License.               *
  *                                                                         *
  *   This program is distributed in the hope that it will be useful,       *
  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
@@ -33,25 +31,25 @@ class SeedViewItem;
 */
 class SeedView : public QTreeWidget
 {
-    Q_OBJECT
+       Q_OBJECT
 public:
-    SeedView(QWidget* parent);
+       SeedView(QWidget* parent);
 
-    ~SeedView();
+       ~SeedView();
 
 private slots:
-    void on_itemPressed(QTreeWidgetItem *item, int column);
+       void on_itemPressed(QTreeWidgetItem *item, int column);
 
 private:
 
-    // Name
-    // Size
-    // Status
-    // UP speed
-    // Seeds/Leechers
-    // Connected peers
-    // total uploaded
-    // ratio
+       // Name
+       // Size
+       // Status
+       // UP speed
+       // Seeds/Leechers
+       // Connected peers
+       // total uploaded
+       // ratio
 };
 
 /**
@@ -63,29 +61,28 @@ class SeedViewItem : public QTreeWidgetItem
 
 public:
 
-    SeedViewItem(QTreeWidget* parent, int type) :
-            QTreeWidgetItem(parent, type = QTreeWidgetItem::UserType) {};
+       SeedViewItem(QTreeWidget* parent, int type) :
+                       QTreeWidgetItem(parent, type = QTreeWidgetItem::UserType) {};
 
-    SeedViewItem(const QStringList& strings, int type = QTreeWidgetItem::UserType ) :
-            QTreeWidgetItem (strings, type = Type) {};
+       SeedViewItem(const QStringList& strings, int type = QTreeWidgetItem::UserType ) :
+                       QTreeWidgetItem (strings, type = Type) {};
 
 
-    /// @return An item comprising of string list, suitable for QTableView
-    /// header.
-    static SeedViewItem *getHeaderItem()
-    {
-        SeedViewItem *item
-        = new SeedViewItem(QStringList()
-                           << "Name"
-                           << "Size" << "Status"
-                           << "Progress" << "UL speed" << "Seeds/Leechers"
-                           << "Conn. peers"
-                           << "Ratio");
+       /// @return An item comprising of string list, suitable for QTableView
+       /// header.
+       static SeedViewItem *getHeaderItem() {
+               SeedViewItem *item
+               = new SeedViewItem(QStringList()
+                                  << "Name"
+                                  << "Size" << "Status"
+                                  << "Progress" << "UL speed" << "Seeds/Leechers"
+                                  << "Conn. peers"
+                                  << "Ratio");
 
-        return item;
-    }
+               return item;
+       }
 
-    /// @todo TorrentHandle as one hidden column
+       /// @todo TorrentHandle as one hidden column
 };
 
 } // namespace qtrapids