4 * @author Olavi Pulkkinen <olavi.pulkkinena@fudeco.com>
5 * @copyright (c) 2010 Speed Freak team
6 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
9 #include "categorylist.h"
12 *Constructor of this class.
14 CategoryList::CategoryList()
16 categoryList << "Speed" << "acceleration-0-40" << "acceleration-0-100" << "G-force"; // OLPU
17 //top10AccelerationList << "acc-tulos1\nacc-tulos2\nacc-tulos3\nacc-tulos4\nacc-tulos5\nacc-tulos6\nacc-tulos7\nacc-tulos8\nacc-tulos9\nacc-tulos10";
21 *Destructor of this class. Should be used to release all allocated resources.
23 CategoryList::~CategoryList()
28 *This is return function.
29 *@todo Read real top 10 category list
30 *@return QStringList categoryList
32 QStringList CategoryList::getCategoryList()
38 *This function is used to get items to top list of current category.
39 *@param QString category
42 QString CategoryList::getTopList( QString category, int size)
44 if (category == "acceleration-0-100")
46 //topList.append(xmlreader->getTop10AccelerationList());
47 //return top10AccelerationList;
48 return "acc-tulos1\nacc-tulos2\nacc-tulos3\nacc-tulos4\nacc-tulos5\nacc-tulos6\nacc-tulos7\nacc-tulos8\nacc-tulos9\nacc-tulos10";
51 else if (category == "acceleration-0-40")
53 //topList.append(xmlreader->getTop10AccelerationList());
54 //return top10AccelerationList;
55 return "acc-40-tulos1\nacc-40-tulos2\nacc-40-tulos3\nacc-40-tulos4\nacc-40-tulos5\nacc-40-tulos6\nacc-40-tulos7\nacc-40-tulos8\nacc-40-tulos9\nacc-40-tulos10";
58 else if (category == "Speed")
60 //topList.append(xmlreader->getTop10SpeedList());
61 //return top10SpeedList;
62 return "speed-tulos1\nspeed-tulos2\nspeed-tulos3\nspeed-tulos4\nspeed-tulos5\nspeed-tulos6\nspeed-tulos7\nspeed-tulos8\nspeed-tulos9\nspeed-tulos10";
64 else if (category == "G-force")
66 //topList.append(xmlreader->getTop10GforceList());
67 //return top10GforceList;
68 return "g-tulos1\ng-tulos2\ng-tulos3\ng-tulos4\ng-tulos5\ng-tulos6\ng-tulos7\ng-tulos8\ng-tulos9\ng-tulos10";