X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fcategorylist.h;h=60d60adc299639b6d38a35ece15a4404f9f98526;hp=c7cdc9f5b66c44c9566e0c8aac44c4cb9fa5ad82;hb=69cb07ccffb899f28e122e1fe2ea1a94dce4a07a;hpb=c68f0fbb1f1163e51079e6829aa640ddbc81ac15 diff --git a/Client/categorylist.h b/Client/categorylist.h index c7cdc9f..60d60ad 100644 --- a/Client/categorylist.h +++ b/Client/categorylist.h @@ -2,6 +2,7 @@ * Categorylist * * @author Olavi Pulkkinen + * @author Tiina Kivilinna-Korhola * @copyright (c) 2010 Speed Freak team * @license http://opensource.org/licenses/gpl-license.php GNU Public License */ @@ -17,6 +18,7 @@ public: CategoryList(); ~CategoryList(); QString top10List; + int realSizeOfCats; QStringList getCategoryList(); void fillCategoryList(int index, QString item); @@ -25,9 +27,19 @@ public: 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; + 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]; };