videoplayback/hbvideoplaybackview/viewinc/mpxvideoviewwrapper.h
changeset 39 f6d44a0cd476
parent 35 3738fe97f027
child 41 229f037ce963
equal deleted inserted replaced
38:ff53afa8ad05 39:f6d44a0cd476
    13 *
    13 *
    14 * Description:  MPX Video base playback view
    14 * Description:  MPX Video base playback view
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version:  da1mmcf#12 %
    18 // Version : %version:  da1mmcf#14 %
    19 
    19 
    20 
    20 
    21 
    21 
    22 // This file defines the API for .dll
    22 // This file defines the API for .dll
    23 
    23 
    33 #include <mpxviewactivationobserver.h>
    33 #include <mpxviewactivationobserver.h>
    34 #include <mpxcollectionobserver.h>
    34 #include <mpxcollectionobserver.h>
    35 
    35 
    36 #include "mpxvideoplaybackcontrol.hrh"
    36 #include "mpxvideoplaybackcontrol.hrh"
    37 
    37 
    38 //  Constants
    38 enum TMPXMediaRequestStatus
       
    39 {
       
    40     MediaNotRequested,
       
    41     MediaRequested,
       
    42     MediaDelivered
       
    43 };
    39 
    44 
    40 //  Forward Declarations
    45 //  Forward Declarations
    41 class MMPXPlaybackUtility;
    46 class MMPXPlaybackUtility;
    42 class MMPXCollectionUtility;
    47 class MMPXCollectionUtility;
    43 class HbVideoBasePlaybackView;
    48 class HbVideoBasePlaybackView;
   165        
   170        
   166         void IssueVideoAppForegroundCmdL(TBool aForeground);        
   171         void IssueVideoAppForegroundCmdL(TBool aForeground);        
   167         
   172         
   168         void RequestMediaL();  
   173         void RequestMediaL();  
   169         
   174         
   170         void CreateGeneralPlaybackCommandL( TMPXPlaybackCommand aCmd );
   175         void CreateGeneralPlaybackCommandL( TMPXPlaybackCommand aCmd, TBool aDoSync = ETrue );
   171         
   176         
   172         TBool IsAppInFrontL();
   177         TBool IsAppInFrontL();
   173         
   178         
   174         /*
   179         /*
   175          *  Activates an active object to close the player
   180          *  Activates an active object to close the player
   188         void HandlePluginError( TInt aError );
   193         void HandlePluginError( TInt aError );
   189 
   194 
   190         void ClosePlaybackViewL();
   195         void ClosePlaybackViewL();
   191 
   196 
   192         void HandleBufferingStateL();
   197         void HandleBufferingStateL();
   193 
       
   194         void IssuePlayCommandL();
       
   195 
       
   196 
   198 
   197         /*
   199         /*
   198          *  Provides the static function for the callback to close the player
   200          *  Provides the static function for the callback to close the player
   199          *  Called by CIdle iIdle
   201          *  Called by CIdle iIdle
   200          *  @since 3.2
   202          *  @since 3.2
   250 
   252 
   251         void HandleVolumeCmdL( TMPXPlaybackCommand aCmd );
   253         void HandleVolumeCmdL( TMPXPlaybackCommand aCmd );
   252 
   254 
   253         void HandleShortPressBackwardL();
   255         void HandleShortPressBackwardL();
   254 
   256 
       
   257         void IssuePlayCommandL();
       
   258 
   255     protected: // data
   259     protected: // data
   256         MMPXPlaybackUtility*                 iPlaybackUtility;
   260         MMPXPlaybackUtility*                 iPlaybackUtility;
   257         MMPXCollectionUtility*               iCollectionUtility;
   261         MMPXCollectionUtility*               iCollectionUtility;
   258         TMPXPlaybackState                    iPlaybackState;
   262         TMPXPlaybackState                    iPlaybackState;
   259 
   263 
   263         HbVideoBasePlaybackView*             iView;
   267         HbVideoBasePlaybackView*             iView;
   264         CMPXVideoPlaybackDisplayHandler*     iDisplayHandler;
   268         CMPXVideoPlaybackDisplayHandler*     iDisplayHandler;
   265         CMPXVideoPlaybackUserInputHandler*   iUserInputHandler;
   269         CMPXVideoPlaybackUserInputHandler*   iUserInputHandler;
   266         QMPXVideoPlaybackControlsController* iControlsController;
   270         QMPXVideoPlaybackControlsController* iControlsController;
   267         
   271         
   268         TBool                                iMediaRequested;
   272         TMPXMediaRequestStatus               iMediaRequestStatus;
   269         TBool                                iPlaylistView;        
   273         TBool                                iPlaylistView;
   270 };
   274 };
   271 
   275 
   272 #endif  // __MPXVIDEOVIEWWRAPPER_H__
   276 #endif  // __MPXVIDEOVIEWWRAPPER_H__
   273 
   277 
   274 // EOF
   278 // EOF