videocollection/videocollectionwrapper/tsrc/testvideomodel/src/mediaobjectfactory.cpp
changeset 35 3738fe97f027
parent 34 bbb98528c666
child 36 8aed59de29f9
--- a/videocollection/videocollectionwrapper/tsrc/testvideomodel/src/mediaobjectfactory.cpp	Thu Apr 01 23:22:15 2010 +0300
+++ b/videocollection/videocollectionwrapper/tsrc/testvideomodel/src/mediaobjectfactory.cpp	Thu Apr 01 23:32:44 2010 +0300
@@ -188,6 +188,17 @@
         }
     }
     
+    // set video count
+    if(detailSelectionFlag & MediaDetailCategoryVideoCount)
+    {  
+        int count = (index%5);
+        TRAPD(error, media->SetTObjectValueL<quint32>(KVcxMediaMyVideosCategoryItemCount, count));
+        if(error != KErrNone)
+        {
+            return false;
+        }
+    }    
+    
     return true;
     
 }