videocollection/hgmyvideos/inc/vcxhgmyvideosvideodataupdater.h
branchRCL_3
changeset 8 ce5ada96ab30
parent 0 96612d01cf9f
child 9 5294c000a26d
equal deleted inserted replaced
6:7d91903f795f 8:ce5ada96ab30
    92          */
    92          */
    93         void InfoArrayChanged();        
    93         void InfoArrayChanged();        
    94 
    94 
    95         /**
    95         /**
    96          * Called by video list implementation when new data is needed.
    96          * Called by video list implementation when new data is needed.
    97          * Appends data item into buffer.
    97          * Appends data item into buffer and flushes it to start fetching.
    98          * 
    98          * 
    99          * @param aMPXItemId MPX item id of video data.
    99          * @param aMPXItemId MPX item id of video data.
   100          */
   100          */
   101         void RequestDataL( TMPXItemId aMPXItemId );
   101         void RequestDataL( TMPXItemId aMPXItemId );
   102         
   102 
       
   103         /**
       
   104          * Called by video list implementation when new data is needed.
       
   105          * Appends data item into buffer that needs to be flushed using 
       
   106          * FlushRequestBufferL() to start fetching.
       
   107          * 
       
   108          * @param aMPXItemId MPX item id of video data.
       
   109          */
       
   110         void AddToRequestBufferL( TMPXItemId aMPXItemId );
       
   111 
       
   112         /**
       
   113          * Called by video list implementation when new data is needed.
       
   114          * Flushes fetch requests from buffer.
       
   115          */
       
   116         void FlushRequestBufferL();
       
   117 
   103         /**
   118         /**
   104          * Called by video list implementation when data is not needed anymore.
   119          * Called by video list implementation when data is not needed anymore.
   105          * Removes data item from buffer.
   120          * Removes data item from buffer.
   106          * 
   121          * 
   107          * @param aMPXItemId MPX item id of video data.
   122          * @param aMPXItemId MPX item id of video data.
   173          * @return Index of array or KErrNotFound.
   188          * @return Index of array or KErrNotFound.
   174          */
   189          */
   175         TInt IndexByMPXItemId( TMPXItemId aMpxItemId );
   190         TInt IndexByMPXItemId( TMPXItemId aMpxItemId );
   176         
   191         
   177         /**
   192         /**
   178          * Selects next index to be fetched.  
   193          * Selects next index to be fetched.
   179          */
   194          * @param aSelectForPeekOnly  
   180         void SelectNextIndexL();
   195          */
       
   196         void SelectNextIndexL( TBool aSelectForPeekOnly );
   181         
   197         
   182         /**
   198         /**
   183          * Removes item from fetch array.
   199          * Removes item from fetch array.
   184          * 
   200          * 
   185          * @param aIndex Index of fetch array.
   201          * @param aIndex Index of fetch array.
   211         void ContinueVideoDataFetchingL();
   227         void ContinueVideoDataFetchingL();
   212         
   228         
   213         /**
   229         /**
   214          * Updates fetched video data to UI.
   230          * Updates fetched video data to UI.
   215          */
   231          */
   216         void UpdateVideoDataToUiL( CVcxHgMyVideosVideoData& videoData );
   232         void UpdateVideoDataToUiL( CVcxHgMyVideosVideoData& aVideoData );
   217         
       
   218         /**
       
   219          * If needed creates, and returns pointer to Thumbnail Manager.
       
   220          *
       
   221          * @return Pointer to Thumbnail Manager.
       
   222          */
       
   223         CThumbnailManager* ThumbnailManagerL();
       
   224         
   233         
   225         /**
   234         /**
   226          * Checks if list refreshing is needed.
   235          * Checks if list refreshing is needed.
   227 		 * 
   236 		 * 
   228 		 * @param aIndex The item index on the Ganes list that was modified last.
   237 		 * @param aIndex The item index on the Ganes list that was modified last.
   237         
   246         
   238         /**
   247         /**
   239          * Refreshes the ganes list.
   248          * Refreshes the ganes list.
   240          */
   249          */
   241         void RefreshScreen();
   250         void RefreshScreen();
   242         
   251 
       
   252         /**
       
   253          * Checks DRM properties
       
   254          */
       
   255         void CheckDrmL( CVcxHgMyVideosVideoData& aVideoData );
       
   256 
       
   257         /**
       
   258          * Gets active request count
       
   259          */
       
   260         void GetActiveRequestCount( TInt& aPeekRequests, TInt& aGetRequests );
       
   261 
       
   262         /**
       
   263          * Starts thumbnail fetch
       
   264          */
       
   265         void StartThumbnailL( CVcxHgMyVideosVideoData& aItem, TBool aPeek );
       
   266 
   243     protected:
   267     protected:
   244 
   268 
   245         /**
   269         /**
   246          * Reference to component's model.
   270          * Reference to component's model.
   247          * Not own.
   271          * Not own.
   263         /**
   287         /**
   264          * Reference to video array.
   288          * Reference to video array.
   265          * Not own.
   289          * Not own.
   266          */
   290          */
   267         CVcxHgMyVideosVideoList& iVideoArray; 
   291         CVcxHgMyVideosVideoList& iVideoArray; 
   268         
   292                         
   269         /**
       
   270          * S60 Thumbnail Manager.
       
   271          * Own.
       
   272          */
       
   273         CThumbnailManager* iTnEngine;
       
   274                 
       
   275         /** 
   293         /** 
   276          * Used for indicating that list needs to be refreshed.         
   294          * Used for indicating that list needs to be refreshed.         
   277          * Own.
   295          * Own.
   278          */ 
   296          */ 
   279         CPeriodic* iRefreshTimer;
   297         CPeriodic* iRefreshTimer;