videocollection/videocollectionwrapper/tsrc/testvideomodel/src/mediaobjectfactory.cpp
changeset 35 3738fe97f027
parent 34 bbb98528c666
child 36 8aed59de29f9
equal deleted inserted replaced
34:bbb98528c666 35:3738fe97f027
   186         {
   186         {
   187             return false;
   187             return false;
   188         }
   188         }
   189     }
   189     }
   190     
   190     
       
   191     // set video count
       
   192     if(detailSelectionFlag & MediaDetailCategoryVideoCount)
       
   193     {  
       
   194         int count = (index%5);
       
   195         TRAPD(error, media->SetTObjectValueL<quint32>(KVcxMediaMyVideosCategoryItemCount, count));
       
   196         if(error != KErrNone)
       
   197         {
       
   198             return false;
       
   199         }
       
   200     }    
       
   201     
   191     return true;
   202     return true;
   192     
   203     
   193 }
   204 }
   194 
   205 
   195 // -----------------------------------------------------------------------------
   206 // -----------------------------------------------------------------------------