Added sending route to server.
[speedfreak] / Client / categorylist.h
index c7cdc9f..a03586e 100644 (file)
@@ -2,6 +2,7 @@
  * Categorylist
  *
  * @author     Olavi Pulkkinen <olavi.pulkkinena@fudeco.com>
+ * @author     Tiina Kivilinna-Korhola <tiina.kivilinna-korhola@fudeco.com>
  * @copyright  (c) 2010 Speed Freak team
  * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
  */
@@ -25,9 +26,18 @@ public:
     QString getTopList( QString category, int size);
     void clearCategoryList();
     int sizeOfCategoryList();
+    void appendCats(int ind, QString des, QString uni, QString cat);
+    void clearCats();
+    QString desOfCats(int i);
 
 private:
-    QStringList categoryList;
+    QStringList categoryList;   //Stores categories. categoryList is routed to UI.
+    typedef struct {
+        QString category;       //name of category variable
+        QString description;    //verbal description of category
+        QString unit;           //km/h, miles/h
+    } categoryElements;
+    categoryElements cats[10];
 
 };