X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fcategorylist.h;h=60d60adc299639b6d38a35ece15a4404f9f98526;hp=c96faea622a7c2747ef96d1c57e1949c43bc6f3d;hb=188021aca5821b74cc990bbd1f9b8c4ff75cb29e;hpb=8d318c3fa452a8f0186425dcd85e217a4a1f3e07 diff --git a/Client/categorylist.h b/Client/categorylist.h index c96faea..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 */ @@ -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