videocollection/tsrc/stubs/src/videocollectionviewutils.cpp
changeset 58 d2b028fd1f7d
parent 55 4bfa887905cf
--- a/videocollection/tsrc/stubs/src/videocollectionviewutils.cpp	Mon Aug 23 14:27:29 2010 +0300
+++ b/videocollection/tsrc/stubs/src/videocollectionviewutils.cpp	Fri Sep 03 12:37:43 2010 +0300
@@ -20,6 +20,7 @@
 
 int VideoCollectionViewUtilsData::mLastError = 0;
 bool VideoCollectionViewUtilsData::mLoadSortingValuesFails = false;
+bool VideoCollectionViewUtilsData::mIsServiceValue = false;
 int VideoCollectionViewUtilsData::mVideoSortRole = -1;
 int VideoCollectionViewUtilsData::mCollectionSortRole = -1;
 Qt::SortOrder VideoCollectionViewUtilsData::mVideoSortOrder = Qt::AscendingOrder;
@@ -40,6 +41,7 @@
 }
 
 VideoCollectionViewUtils::VideoCollectionViewUtils():
+mIsService(false),
 mVideosSortRole(-1),
 mCollectionsSortRole(-1),
 mVideosSortOrder(Qt::AscendingOrder),
@@ -159,7 +161,7 @@
 }
 
 
-void VideoCollectionViewUtils::sortModel(VideoSortFilterProxyModel *model,
+void VideoCollectionViewUtils::sortModel(VideoProxyModelGeneric *model,
     bool async, VideoCollectionCommon::TCollectionLevels target)
 {
     Q_UNUSED(model);
@@ -173,3 +175,13 @@
     VideoCollectionViewUtilsData::mLastStatusAdditional = additional;
     VideoCollectionViewUtilsData::mLastError = statusCode;
 }
+
+void VideoCollectionViewUtils::setIsService()
+{
+	mIsService = VideoCollectionViewUtilsData::mIsServiceValue;
+}
+
+bool VideoCollectionViewUtils::isService()
+{
+    return mIsService;
+}