videocollection/hgmyvideos/inc/vcxhgmyvideoscollectionclient.h
branchRCL_3
changeset 8 ce5ada96ab30
parent 6 7d91903f795f
child 14 55fa1ec415c6
equal deleted inserted replaced
6:7d91903f795f 8:ce5ada96ab30
   169          * Play a video with given MPX item id.
   169          * Play a video with given MPX item id.
   170          *
   170          *
   171          * @param aMpxItemId MPX item id
   171          * @param aMpxItemId MPX item id
   172          */
   172          */
   173         void PlayVideoL( TMPXItemId aMpxItemId );
   173         void PlayVideoL( TMPXItemId aMpxItemId );
   174 
   174        
   175         /**
       
   176          * Sets attribute value to MPX Collection.
       
   177          * 
       
   178          * @param aMedia MPX Media object to change.
       
   179          * @param aAttribute MPX attribute to change.
       
   180          * @param aValue New value for attribute.
       
   181          */
       
   182         void SetAttributeL( const CMPXMedia& aMedia,
       
   183                             const TMPXAttribute& aAttribute,
       
   184                             const TUint32 aValue );
       
   185         
       
   186         void SetAttributeL( const CMPXMedia& aMedia,
       
   187                             const TMPXAttribute& aAttribute,
       
   188                             const TReal32 aValue );        
       
   189 
       
   190         /**
       
   191          * Returns MPX Media object most recently requested with method call
       
   192          * FetchMpxMediaByMpxIdL().
       
   193          * 
       
   194          * @return Latest MPX Media object or NULL.
       
   195          */
       
   196         CMPXMedia* GetLatestFetchedMpxMediaL();
       
   197         
       
   198         /**
   175         /**
   199          * Fetches MPX Media object based on MPX ID. Fetched MPX Media object
   176          * Fetches MPX Media object based on MPX ID. Fetched MPX Media object
   200          * is returned through callback interface MVcxHgMyVideosVideoModelObserver.
   177          * is returned through callback interface MVcxHgMyVideosVideoModelObserver.
   201          * 
   178          * 
   202          * @param aMpxId MPX ID.
   179          * @param aMpxId MPX ID.
   340          *
   317          *
   341          * @param aMessage collection message.
   318          * @param aMessage collection message.
   342          * @param aError system error code.
   319          * @param aError system error code.
   343          */
   320          */
   344         void HandleGetMediasByMpxIdRespL( CMPXMessage* aMessage, TInt aError );
   321         void HandleGetMediasByMpxIdRespL( CMPXMessage* aMessage, TInt aError );
       
   322         
       
   323         /**
       
   324          * Handles list complete message, called by HandleSingleCollectionMessageL().
       
   325          * 
       
   326          * @param aMessage collection message.
       
   327          * @param aError system error code. 
       
   328          */
       
   329         void HandleMyVideosListCompleteL( CMPXMessage* aMessage, TInt aError );
   345         
   330         
   346         /**
   331         /**
   347          * Handles response message when video details requested.
   332          * Handles response message when video details requested.
   348          * 
   333          * 
   349          * @param aMessage collection message.
   334          * @param aMessage collection message.
   394         /**
   379         /**
   395          * Variable for storing pending collection command.
   380          * Variable for storing pending collection command.
   396          */
   381          */
   397         TVcxHgMyVideosCollectionCommand iPendingCommand;
   382         TVcxHgMyVideosCollectionCommand iPendingCommand;
   398         
   383         
   399         /**
       
   400          * Variable for storing latest MPX Media object fetched separately.
       
   401          * Own.
       
   402          */
       
   403         CMPXMedia* iLatestMpxMedia;
       
   404         
       
   405 #if defined(_DEBUG) && IPTV_LOGGING_METHOD != 0
   384 #if defined(_DEBUG) && IPTV_LOGGING_METHOD != 0
   406     private:
   385     private:
   407         /**
   386         /**
   408          * Debug only: Prints list of videos to debug output.
   387          * Debug only: Prints list of videos to debug output.
   409          */
   388          */
   410         void DebugPrintVideoListL( CMPXMediaArray* aVideoArray );
   389         void DebugPrintVideoListL( CMPXMediaArray* aVideoArray );
   411 #endif // _DEBUG && IPTV_LOGGING_METHOD        
   390 #endif // _DEBUG && IPTV_LOGGING_METHOD        
       
   391 
   412     };
   392     };
   413 
   393 
   414 #endif // VCXHGMYVIDEOSCOLLECTIONCLIENT_H
   394 #endif // VCXHGMYVIDEOSCOLLECTIONCLIENT_H