Result dialog files restored to version before email send changes.
[speedfreak] / Client / categorylist.cpp
index f15fde0..1f05ffb 100644 (file)
@@ -1,7 +1,8 @@
 /*
  * Categorylist
  *
- * @author     Olavi Pulkkinen <olavi.pulkkinena@fudeco.com>
+ * @author     Olavi Pulkkinen  <olavi.pulkkinena@fudeco.com>
+ * @author     Toni Jussila     <toni.jussila@fudeco.com>
  * @copyright  (c) 2010 Speed Freak team
  * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
  */
@@ -14,7 +15,7 @@
   */
 CategoryList::CategoryList()
 {
-
+    qDebug() << "__CategoryList";
 }
 
 /**
@@ -22,6 +23,7 @@ CategoryList::CategoryList()
   */
 CategoryList::~CategoryList()
 {
+    qDebug() << "__~CategoryList";
 }
 
 /**
@@ -30,7 +32,7 @@ CategoryList::~CategoryList()
   */
 QStringList CategoryList::getCategoryList()
 {
-    qDebug() << "_getCategoryList" << realSizeOfCats;
+    qDebug() << "__getCategoryList" << realSizeOfCats;
 
     if(sizeOfCategoryList() != 0) {
         clearCategoryList();
@@ -50,6 +52,7 @@ QStringList CategoryList::getCategoryList()
   */
 void CategoryList::appendCategoryList(QString item)
 {
+    qDebug() << "__appendCategoryList";
     categoryList.append(item);
 }
 
@@ -60,6 +63,7 @@ void CategoryList::appendCategoryList(QString item)
   */
 void CategoryList::fillCategoryList(int index, QString item)
 {
+    qDebug() << "__fillCategoryList";
     categoryList.insert(index, item);
 }
 
@@ -69,6 +73,7 @@ void CategoryList::fillCategoryList(int index, QString item)
   */
 QString CategoryList::itemOfCategoryList(int index)
 {
+    qDebug() << "__itemOfCategoryList";
     return categoryList.at(index);
 }
 
@@ -77,6 +82,7 @@ QString CategoryList::itemOfCategoryList(int index)
   */
 void CategoryList::clearCategoryList()
 {
+    qDebug() << "__clearCategoryList";
     categoryList.clear();
 }
 
@@ -85,6 +91,7 @@ void CategoryList::clearCategoryList()
   */
 int CategoryList::sizeOfCategoryList()
 {
+    qDebug() << "__sizeOfCategoryList";
     return categoryList.size();
 }
 
@@ -97,6 +104,7 @@ int CategoryList::sizeOfCategoryList()
   */
 void CategoryList::appendCats(int ind, QString des, QString uni, QString cat)
 {
+    qDebug() << "__appendCats";
     cats[ind].description = des;
     cats[ind].unit = uni;
     cats[ind].category = cat;
@@ -108,6 +116,7 @@ void CategoryList::appendCats(int ind, QString des, QString uni, QString cat)
   */
 QString CategoryList::getRecentDescription(int ind)
 {
+    qDebug() << "__getRecentDescription";
     return cats[ind].description;
 }
 
@@ -117,6 +126,7 @@ QString CategoryList::getRecentDescription(int ind)
   */
 QString CategoryList::getRecentCategory(int ind)
 {
+    qDebug() << "__getRecentCategory";
     return cats[ind].category;
 }
 
@@ -125,6 +135,7 @@ QString CategoryList::getRecentCategory(int ind)
   */
 void CategoryList::clearCats()
 {
+    qDebug() << "__clearCats";
     for(int i = 0; i < 20; i++)
     {
         cats[i].description.clear();
@@ -137,6 +148,7 @@ void CategoryList::clearCats()
   *This function is used to get items to top list of the category that is chosen from combobox.
   *@param QString category
   *@param int size
+  *@todo Now there is only one (the latest top10List). Later picking up the requested category.
   */
 QString CategoryList::getTopList( QString category, int size)
 {