Route and Results buttons updated.
[speedfreak] / Client / categorylist.h
index a03586e..60d60ad 100644 (file)
@@ -18,6 +18,7 @@ public:
     CategoryList();
     ~CategoryList();
     QString top10List;
     CategoryList();
     ~CategoryList();
     QString top10List;
+    int realSizeOfCats;
 
     QStringList getCategoryList();
     void fillCategoryList(int index, QString item);
 
     QStringList getCategoryList();
     void fillCategoryList(int index, QString item);
@@ -28,7 +29,8 @@ public:
     int sizeOfCategoryList();
     void appendCats(int ind, QString des, QString uni, QString cat);
     void clearCats();
     int sizeOfCategoryList();
     void appendCats(int ind, QString des, QString uni, QString cat);
     void clearCats();
-    QString desOfCats(int i);
+    QString getRecentDescription(int i);
+    QString getRecentCategory(int ind);
 
 private:
     QStringList categoryList;   //Stores categories. categoryList is routed to UI.
 
 private:
     QStringList categoryList;   //Stores categories. categoryList is routed to UI.
@@ -37,7 +39,7 @@ private:
         QString description;    //verbal description of category
         QString unit;           //km/h, miles/h
     } categoryElements;
         QString description;    //verbal description of category
         QString unit;           //km/h, miles/h
     } categoryElements;
-    categoryElements cats[10];
+    categoryElements cats[20];
 
 };
 
 
 };