videocollection/videocollectionview/inc/videocollectionviewutils.h
changeset 36 8aed59de29f9
parent 34 bbb98528c666
child 39 f6d44a0cd476
--- a/videocollection/videocollectionview/inc/videocollectionviewutils.h	Thu Apr 01 23:32:44 2010 +0300
+++ b/videocollection/videocollectionview/inc/videocollectionviewutils.h	Fri Apr 16 18:13:14 2010 +0300
@@ -19,6 +19,7 @@
 #define __VIDEOCOLLECTIONVIEWUTILS_H__
 
 #include <qobject.h>
+#include "videocollectioncommon.h"
 
 class HbListView;
 class VideoSortFilterProxyModel;
@@ -44,7 +45,7 @@
      * @param order The sorting order (e.g. ascending or descending).
      * @return Zero if operation succeeded, less than zero in error cases.
      */
-    int saveSortingValues(int role, Qt::SortOrder order);
+    int saveSortingValues(int role, Qt::SortOrder order, VideoCollectionCommon::TCollectionLevels target);
     
     /**
      * Loads the sorting role and order from cenrep.
@@ -53,7 +54,7 @@
      * @param order On return contains the sorting order
      * @return Zero if operation succeeded, less than zero in error cases.
      */
-    int loadSortingValues(int& role, Qt::SortOrder& order);
+    int loadSortingValues(int& role, Qt::SortOrder& order, VideoCollectionCommon::TCollectionLevels target);
     
     /**
      * Get service icon resource strings from cenrep.
@@ -81,7 +82,7 @@
     /**
      * Initilizes model sort values.
      */
-    static void sortModel(VideoSortFilterProxyModel *model, bool async);
+    static void sortModel(VideoSortFilterProxyModel *model, bool async, VideoCollectionCommon::TCollectionLevels target);
 
 public slots:
     
@@ -112,10 +113,12 @@
 
 private:
     /** current sorting role */
-    int mSortRole;
+    int mVideosSortRole;
+    int mCollectionsSortRole;
     
     /** current sorting order */
-    Qt::SortOrder mSortOrder;
+    Qt::SortOrder mVideosSortOrder;
+    Qt::SortOrder mCollectionsSortOrder;
 };
 
 #endif //__VIDEOCOLLECTIONUIUTILS_H__