videocollection/mpxmyvideoscollection/inc/vcxmyvideosalbums.h
changeset 38 ff53afa8ad05
parent 36 8aed59de29f9
child 40 13331705e488
--- a/videocollection/mpxmyvideoscollection/inc/vcxmyvideosalbums.h	Fri Apr 30 09:52:11 2010 +0300
+++ b/videocollection/mpxmyvideoscollection/inc/vcxmyvideosalbums.h	Fri May 14 15:14:51 2010 +0300
@@ -180,6 +180,18 @@
          * @param aMdsId  MDS ID of the changed video.
          */
         void VideoTitleChangedL( TUint32 aMdsId );
+        
+        /**
+         * Called when video is added or removed from cache. Adds changed
+         * album indexes to iChangedAlbums.
+         */
+        void VideoAddedOrRemovedFromCacheL( CMPXMedia& video );
+
+        /**
+         * Goes through iChangedAlbums and updates album attributes and adds
+         * changed events.
+         */
+        void UpdateChangedAlbumsL();
 
 protected:
         
@@ -340,6 +352,13 @@
          */
         RArray<TUint32> iMdsOpResultsUint32;
         
+        /**
+         * When videos are removed or added from cache, the indexes of the
+         * changed albums are stored here. Reason is to calculate new attributes
+         * only once per changed album.
+         */
+        RArray<TInt> iChangedAlbums;
+        
     };
 
 #endif   // VCXMYVIDEOSALBUMS_H