Route and Results buttons updated.
[speedfreak] / Client / categorylist.h
index c96faea..60d60ad 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
  */
@@ -16,14 +17,30 @@ class CategoryList : public QObject
 public:
     CategoryList();
     ~CategoryList();
+    QString top10List;
+    int realSizeOfCats;
+
     QStringList getCategoryList();
+    void fillCategoryList(int index, QString item);
+    void appendCategoryList(QString item);
+    QString itemOfCategoryList(int index);
     QString getTopList( QString category, int size);
+    void clearCategoryList();
+    int sizeOfCategoryList();
+    void appendCats(int ind, QString des, QString uni, QString cat);
+    void clearCats();
+    QString getRecentDescription(int i);
+    QString getRecentCategory(int ind);
 
 private:
-    QStringList categoryList;
-    QString top10AccelerationList;
-    QString top10SpeedList;
-    QString top10GforceList;
+    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[20];
+
 };
 
 #endif // CATEGORYLIST_H