4 * @author Olavi Pulkkinen <olavi.pulkkinena@fudeco.com>
5 * @author Tiina Kivilinna-Korhola <tiina.kivilinna-korhola@fudeco.com>
6 * @copyright (c) 2010 Speed Freak team
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
10 #ifndef CATEGORYLIST_H
11 #define CATEGORYLIST_H
13 #include <QStringList>
15 class CategoryList : public QObject
22 QStringList getCategoryList();
23 void fillCategoryList(int index, QString item);
24 void appendCategoryList(QString item);
25 QString itemOfCategoryList(int index);
26 QString getTopList( QString category, int size);
27 void clearCategoryList();
28 int sizeOfCategoryList();
29 void appendCats(int ind, QString des, QString uni, QString cat);
31 QString desOfCats(int i);
34 QStringList categoryList; //Stores categories. categoryList is routed to UI.
36 QString category; //name of category variable
37 QString description; //verbal description of category
38 QString unit; //km/h, miles/h
40 categoryElements cats[10];
44 #endif // CATEGORYLIST_H