equal
deleted
inserted
replaced
42 TVcxHgMyVideosCategoryItemTypeUndefined = 0, |
42 TVcxHgMyVideosCategoryItemTypeUndefined = 0, |
43 TVcxHgMyVideosCategoryItemTypeUid, |
43 TVcxHgMyVideosCategoryItemTypeUid, |
44 TVcxHgMyVideosCategoryItemTypeUrl |
44 TVcxHgMyVideosCategoryItemTypeUrl |
45 }; |
45 }; |
46 |
46 |
|
47 // CONSTANTS |
|
48 const TInt KMyVideosTitleStringMaxLength = 256; |
|
49 const TInt KMyVideosTitleUrlMaxLength = 256; |
|
50 |
47 // CLASS DECLARATION |
51 // CLASS DECLARATION |
48 |
52 |
49 /** |
53 /** |
50 * UI level handler for category data. |
54 * UI level handler for category data. |
51 * |
55 * |
162 * @param aMpxItemId MPX Item Id of the modified item. |
166 * @param aMpxItemId MPX Item Id of the modified item. |
163 */ |
167 */ |
164 void CategoryModifiedL( TMPXChangeEventType aEventType, |
168 void CategoryModifiedL( TMPXChangeEventType aEventType, |
165 TMPXItemId& aMpxItemId ); |
169 TMPXItemId& aMpxItemId ); |
166 |
170 |
167 /* |
|
168 * Called when a single video item has been fetched. |
|
169 * Ownership of video is transferred. |
|
170 * |
|
171 * @param aVideo Video item. |
|
172 */ |
|
173 void VideoFetchingCompletedL( CMPXMedia* aVideo ); |
|
174 |
|
175 /** |
171 /** |
176 * Called when category list items have been fetched. |
172 * Called when category list items have been fetched. |
177 */ |
173 */ |
178 void CategoryListFetchingCompletedL(); |
174 void CategoryListFetchingCompletedL(); |
179 |
175 |
270 void RemoveCategoryListItem( TInt aListIndex ); |
266 void RemoveCategoryListItem( TInt aListIndex ); |
271 |
267 |
272 /** |
268 /** |
273 * Goes through given number of categories and |
269 * Goes through given number of categories and |
274 * fills iCategoryIdArray from the accepted ones |
270 * fills iCategoryIdArray from the accepted ones |
275 * |
271 */ |
276 * @param aCategoriesAvailable Number of categories |
272 void MakeCategoryIdArray(); |
277 */ |
|
278 void MakeCategoryIdArray( TInt aCategoriesAvailable ); |
|
279 |
273 |
280 /** |
274 /** |
281 * Checks if the given category is accepted or not. |
275 * Checks if the given category is accepted or not. |
282 * |
276 * |
283 * @param aCategoryId category id |
277 * @param aCategoryId category id |
299 * @return CMPXMedia |
293 * @return CMPXMedia |
300 */ |
294 */ |
301 CMPXMedia* GetCategoryDataL( TInt aCategoryId ); |
295 CMPXMedia* GetCategoryDataL( TInt aCategoryId ); |
302 |
296 |
303 /** |
297 /** |
304 * Gets the last watched videos data from collection. |
|
305 * Result is returned asynchronously to VideoFetchingCompletedL callback. |
|
306 */ |
|
307 void FetchLastWatchedL(); |
|
308 |
|
309 /** |
|
310 * Gets the last watched videos icon from tbn server. |
298 * Gets the last watched videos icon from tbn server. |
311 * Result is returned asynchronously to ThumbnailReady callback. |
299 * Result is returned asynchronously to ThumbnailReady callback. |
312 */ |
300 */ |
313 void LoadLastWatchedIconL(); |
301 void LoadLastWatchedIconL(); |
|
302 |
|
303 /** |
|
304 * Clears the last watched videos icon and indicator. |
|
305 */ |
|
306 void ClearLastWatchedIconL(); |
314 |
307 |
315 /** |
308 /** |
316 * Set indicator for last watched item |
309 * Set indicator for last watched item |
317 */ |
310 */ |
318 void SetLastWatchedIndicatorL(); |
311 void SetLastWatchedIndicatorL(); |
376 * Own. |
369 * Own. |
377 */ |
370 */ |
378 CMPXMediaArray* iCategoryList; |
371 CMPXMediaArray* iCategoryList; |
379 |
372 |
380 /** |
373 /** |
381 * Last watched media. |
|
382 * Own. |
|
383 */ |
|
384 CMPXMedia* iLastWatched; |
|
385 |
|
386 /** |
|
387 * TArray containing category ID's. Each index |
374 * TArray containing category ID's. Each index |
388 * corresponds to the scroller list (eg. correct |
375 * corresponds to the scroller list (eg. correct |
389 * category ID for the 1st item in scroller list can |
376 * category ID for the 1st item in scroller list can |
390 * be found from index 0). |
377 * be found from index 0). |
391 */ |
378 */ |