videocollection/mpxmyvideoscollection/inc/vcxmyvideosalbum.h
changeset 36 8aed59de29f9
parent 34 bbb98528c666
child 40 13331705e488
--- a/videocollection/mpxmyvideoscollection/inc/vcxmyvideosalbum.h	Thu Apr 01 23:32:44 2010 +0300
+++ b/videocollection/mpxmyvideoscollection/inc/vcxmyvideosalbum.h	Fri Apr 16 18:13:14 2010 +0300
@@ -38,9 +38,9 @@
 
         /**
          * Constructor.
-         */        
-        TVcxMyVideosAlbumVideo::TVcxMyVideosAlbumVideo();
-        
+         */
+        TVcxMyVideosAlbumVideo();
+
         /**
         * = operator.
         */        
@@ -141,11 +141,6 @@
      *                  ETrue as default.
      */
     void Remove( TUint32 aMdsId, TBool aCompress = ETrue );
-
-    /**
-     * Updates album attributes from scratch.
-     */
-    void UpdateAttributesL();
     
     /**
      * Used for keeping RArray<TVcxMyVideosAlbumVideo> in integer order by
@@ -178,6 +173,16 @@
     void AppendToVideoListL( CMPXMedia& aFromVideoList,
             CMPXMedia& aToVideoList, TInt aNewItemStartIndex );
 
+    /**
+     * Calculates KVcxMediaMyVideosCategoryItemCount, KVcxMediaMyVideosCategoryNewItemCount,
+     * KVcxMediaMyVideosCategoryNewItemName and KMPXMediaGeneralDate attributes to iMedia.
+     * 
+     * @param aStartIndex  Start position of the calculations in iVideoList.
+     *                     Can be used to update values when items are appended
+     *                     to old list, without calculating everything from scratch.
+     */
+    void CalculateAttributesL( TInt aStartIndex = 0 );
+    
 private:
 
     /**