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
10 #include "categorylist.h"
13 *Constructor of this class.
15 CategoryList::CategoryList()
21 *Destructor of this class. Should be used to release all allocated resources.
23 CategoryList::~CategoryList()
28 *This is return function.
29 *@return QStringList categoryList
31 QStringList CategoryList::getCategoryList()
33 qDebug() << "_getCategoryList" ;
38 *Append an item in the end of the categorylist.
40 void CategoryList::appendCategoryList(QString item)
42 categoryList.append(item);
46 *Input an item into the categorylist.
48 void CategoryList::fillCategoryList(int index, QString item)
50 categoryList.insert(index, item);
54 *Show an item of the categorylist.
56 QString CategoryList::itemOfCategoryList(int index)
58 return categoryList.at(index);
64 void CategoryList::clearCategoryList()
67 qDebug() << "_clearCategoryList" ;
71 *Read size of categorylist.
73 int CategoryList::sizeOfCategoryList()
75 return categoryList.size();
79 *This function is used to get items to top list of current category.
80 *@param QString category
83 QString CategoryList::getTopList( QString category, int size)
85 qDebug() << "_getTopList";
87 if(!(top10List.isEmpty()))
94 qDebug() << "_getTopList: Category not found";