videocollection/hgmyvideos/inc/vcxhgmyvideosvideomodelhandler.h
branchRCL_3
changeset 12 7f2b2a65da29
parent 10 112a725ff2c2
child 14 55fa1ec415c6
equal deleted inserted replaced
11:8970fbd719ec 12:7f2b2a65da29
   473          * Compares MPX origin information to currently displayed category. 
   473          * Compares MPX origin information to currently displayed category. 
   474          * 
   474          * 
   475          * @return ETrue if media belongs to category, otherwise EFalse.
   475          * @return ETrue if media belongs to category, otherwise EFalse.
   476          */
   476          */
   477         TBool ValidOrigin( CMPXMedia& aMedia );
   477         TBool ValidOrigin( CMPXMedia& aMedia );
   478                 
   478 
   479         /** 
   479         /** 
   480          * Saves MPX id of highlighted item. 
   480          * Saves MPX id of highlighted item.
   481          */
   481          */
   482         void SaveHighlightedItemIdL();
   482         void SaveHighlightedItemIdL();
   483         
   483 
   484         /** 
   484         /**
   485          * Update scrollbar strip type depending on sort order
   485          * Update scrollbar strip type depending on sort order
   486          */
   486          */
   487         void UpdateScrollbarTypeL( const TVcxMyVideosSortingOrder& aSortingOrder );
   487         void UpdateScrollbarTypeL( const TVcxMyVideosSortingOrder& aSortingOrder );
   488 
   488 
   489         /**
   489         /**
   499 
   499 
   500         /** 
   500         /** 
   501          * Resizes scroller with refetch
   501          * Resizes scroller with refetch
   502          * This is faster way to reset scroller than CHgScroller::Reset() and 
   502          * This is faster way to reset scroller than CHgScroller::Reset() and 
   503          * CHgScroller::ResizeL() calls combined
   503          * CHgScroller::ResizeL() calls combined
   504 		 * @param aNewItemCount New item count
   504          * @param aNewItemCount New item count
   505          */
   505          */
   506         void ResizeScrollerL( TInt aNewItemCount );
   506         void ResizeScrollerL( TInt aNewItemCount );
       
   507 
       
   508         /**
       
   509          * Saves the marked MPXMedia items to iMarkedMediaList. This is called before
       
   510          * re-sorting the videos list if marking mode is enabled to preserve the
       
   511          * marking status of marked items.
       
   512          */
       
   513         void SaveMarkingsL();
       
   514 
       
   515         /**
       
   516          * Restores the marking status of the MPXMedia items from iMarkedMediaList.
       
   517          * This is called after re-sorting the list if marking mode is enabled to
       
   518          * restore the marking status of the marked items.
       
   519          * This method resets iMarkedMediaList before returning.
       
   520          */
       
   521         void RestoreMarkingsL();
   507 
   522 
   508     private:
   523     private:
   509         
   524         
   510         /**
   525         /**
   511          * Video details dialog.
   526          * Video details dialog.
   568         
   583         
   569         /**
   584         /**
   570          * MPX id of highlighted item in a video list.
   585          * MPX id of highlighted item in a video list.
   571          */
   586          */
   572         TMPXItemId iHighlightedItemId;
   587         TMPXItemId iHighlightedItemId;
   573         
   588 
   574         /**
   589         /**
   575          * Downloading has been resumed for these MPX IDs. Needed for showing
   590          * Downloading has been resumed for these MPX IDs. Needed for showing
   576 		 * note "Resuming download not possible, download starts from beginning".
   591 		 * note "Resuming download not possible, download starts from beginning".
   577          */
   592          */
   578         RArray<TUint32> iResumeArray;
   593         RArray<TUint32> iResumeArray;
   579 
   594 
   580         /**
   595         /**
   581          * Video indicator gives an overlay icon for video thumbnails.
   596          * Video indicator gives an overlay icon for video thumbnails.
   582          */
   597          */
   583         CMyVideosIndicator* iVideoIndicator;
   598         CMyVideosIndicator* iVideoIndicator;
       
   599 
       
   600         /**
       
   601          * Array of marked MPXMedia items to temporarily hold a list of marked items in video list.
       
   602          * The array is temporarily filled with pointers to marked media items prior to re-sorting
       
   603          * the video list and is cleared after sorting.
       
   604          */
       
   605         RPointerArray<CMPXMedia> iMarkedMediaList;
       
   606 
   584     };
   607     };
   585 
   608 
   586 #endif // VCXHGMYVIDEOSVIDEOMODELHANDLER_H
   609 #endif // VCXHGMYVIDEOSVIDEOMODELHANDLER_H