equal
deleted
inserted
replaced
36 { |
36 { |
37 public: |
37 public: |
38 |
38 |
39 /** |
39 /** |
40 * Constructor. |
40 * Constructor. |
41 */ |
41 */ |
42 TVcxMyVideosAlbumVideo::TVcxMyVideosAlbumVideo(); |
42 TVcxMyVideosAlbumVideo(); |
43 |
43 |
44 /** |
44 /** |
45 * = operator. |
45 * = operator. |
46 */ |
46 */ |
47 TVcxMyVideosAlbumVideo& operator=( const TVcxMyVideosAlbumVideo& aVideo ); |
47 TVcxMyVideosAlbumVideo& operator=( const TVcxMyVideosAlbumVideo& aVideo ); |
48 private: |
48 private: |
139 * @param aMdsId ID to remove. |
139 * @param aMdsId ID to remove. |
140 * @param aCompress If ETrue, then Compress is called to iVideoList. |
140 * @param aCompress If ETrue, then Compress is called to iVideoList. |
141 * ETrue as default. |
141 * ETrue as default. |
142 */ |
142 */ |
143 void Remove( TUint32 aMdsId, TBool aCompress = ETrue ); |
143 void Remove( TUint32 aMdsId, TBool aCompress = ETrue ); |
144 |
|
145 /** |
|
146 * Updates album attributes from scratch. |
|
147 */ |
|
148 void UpdateAttributesL(); |
|
149 |
144 |
150 /** |
145 /** |
151 * Used for keeping RArray<TVcxMyVideosAlbumVideo> in integer order by |
146 * Used for keeping RArray<TVcxMyVideosAlbumVideo> in integer order by |
152 * TVcxMyVideosAlbumVideo::iMdsId. |
147 * TVcxMyVideosAlbumVideo::iMdsId. |
153 * |
148 * |
176 * value are ignored. |
171 * value are ignored. |
177 */ |
172 */ |
178 void AppendToVideoListL( CMPXMedia& aFromVideoList, |
173 void AppendToVideoListL( CMPXMedia& aFromVideoList, |
179 CMPXMedia& aToVideoList, TInt aNewItemStartIndex ); |
174 CMPXMedia& aToVideoList, TInt aNewItemStartIndex ); |
180 |
175 |
|
176 /** |
|
177 * Calculates KVcxMediaMyVideosCategoryItemCount, KVcxMediaMyVideosCategoryNewItemCount, |
|
178 * KVcxMediaMyVideosCategoryNewItemName and KMPXMediaGeneralDate attributes to iMedia. |
|
179 * |
|
180 * @param aStartIndex Start position of the calculations in iVideoList. |
|
181 * Can be used to update values when items are appended |
|
182 * to old list, without calculating everything from scratch. |
|
183 */ |
|
184 void CalculateAttributesL( TInt aStartIndex = 0 ); |
|
185 |
181 private: |
186 private: |
182 |
187 |
183 /** |
188 /** |
184 * Constructor for performing 1st stage construction |
189 * Constructor for performing 1st stage construction |
185 */ |
190 */ |