videoplayback/videoplaybackview/inc/videoplaybackcontrolscontroller.h
changeset 66 adb51f74b890
parent 63 4707a0db12f6
equal deleted inserted replaced
63:4707a0db12f6 66:adb51f74b890
    13 *
    13 *
    14 * Description:  Implementation of VideoPlaybackControlsController
    14 * Description:  Implementation of VideoPlaybackControlsController
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: da1mmcf#28 %
    18 // Version : %version: da1mmcf#29 %
    19 
    19 
    20 
    20 
    21 
    21 
    22 #ifndef VIDEOPLAYBACKCONTROLSCONTROLLER_H_
    22 #ifndef VIDEOPLAYBACKCONTROLSCONTROLLER_H_
    23 #define VIDEOPLAYBACKCONTROLSCONTROLLER_H_
    23 #define VIDEOPLAYBACKCONTROLSCONTROLLER_H_
    28 
    28 
    29 #include <xqserviceutil.h>
    29 #include <xqserviceutil.h>
    30 #include <mpxplaybackframeworkdefs.h>
    30 #include <mpxplaybackframeworkdefs.h>
    31 
    31 
    32 #include "mpxvideo_debug.h"
    32 #include "mpxvideo_debug.h"
       
    33 #include "mpxvideoviewwrapper.h"
    33 #include "videoplaybackcontrol.hrh"
    34 #include "videoplaybackcontrol.hrh"
    34 #include "mpxcommonvideoplaybackview.hrh"
    35 #include "mpxcommonvideoplaybackview.hrh"
    35 #include "videoplaybackviewfiledetails.h"
    36 #include "videoplaybackviewfiledetails.h"
    36 
    37 
    37 // FORWARD DECLARATIONS
    38 // FORWARD DECLARATIONS
    38 class QTimer;
    39 class QTimer;
    39 class QString;
    40 class QString;
    40 class HbAction;
    41 class HbAction;
    41 class ThumbnailManager;
    42 class ThumbnailManager;
    42 class HbVolumeSliderPopup ;
    43 class ShareUi;
    43 class CMPXVideoViewWrapper;
       
    44 class VideoBasePlaybackView;
    44 class VideoBasePlaybackView;
       
    45 class VideoPlaybackVolumeControl;
    45 class VideoPlaybackControlPolicy;
    46 class VideoPlaybackControlPolicy;
    46 class VideoPlaybackDocumentLoader;
    47 class VideoPlaybackDocumentLoader;
    47 class VideoPlaybackFullScreenControl;
    48 class VideoPlaybackFullScreenControl;
    48 class VideoPlaybackControlsController;
    49 class VideoPlaybackControlsController;
    49 class VideoPlaybackControlConfiguration;
    50 class VideoPlaybackControlConfiguration;
    50 class VideoServices;
    51 class VideoServices;
    51 class ShareUi;
       
    52 
    52 
    53 // DATA TYPES
    53 // DATA TYPES
    54 
    54 
    55 enum TTimerAction
    55 enum TTimerAction
    56 {
    56 {
   154         inline bool isFileDetailsAdded();
   154         inline bool isFileDetailsAdded();
   155 
   155 
   156         bool isRNLogoBitmapInControlList();
   156         bool isRNLogoBitmapInControlList();
   157 
   157 
   158         bool shouldShowRNLogo();
   158         bool shouldShowRNLogo();
   159         
   159 
   160         inline bool isService();
   160         inline bool isService();
       
   161 
       
   162         inline int volumeSteps();
   161 
   163 
   162     private:
   164     private:
   163         /**
   165         /**
   164         * Initialize controller
   166         * Initialize controller
   165         */
   167         */
   289 
   291 
   290         QTimer                                    *mControlsTimer;
   292         QTimer                                    *mControlsTimer;
   291         QTimer                                    *mRNLogoTimer;
   293         QTimer                                    *mRNLogoTimer;
   292 
   294 
   293         VideoPlaybackDocumentLoader               *mLoader;
   295         VideoPlaybackDocumentLoader               *mLoader;
   294         HbVolumeSliderPopup                       *mVolumeControl;
   296         VideoPlaybackVolumeControl                *mVolumeControl;
   295 
   297 
   296         ThumbnailManager                          *mThumbnailManager;
   298         ThumbnailManager                          *mThumbnailManager;
   297         VideoServices                             *mVideoServices;
   299         VideoServices                             *mVideoServices;
   298 
   300 
   299         bool                                       mViewTransitionIsGoingOn;
   301         bool                                       mViewTransitionIsGoingOn;
   304         TThumbNailState                            mThumbNailState;
   306         TThumbNailState                            mThumbNailState;
   305 
   307 
   306         TMPXPlaybackState                          mState;
   308         TMPXPlaybackState                          mState;
   307         TPlaybackViewMode                          mViewMode;
   309         TPlaybackViewMode                          mViewMode;
   308         Qt::Orientation                            mOrientation;
   310         Qt::Orientation                            mOrientation;
   309             
   311 
   310         ShareUi                                    *mShareUi;
   312         ShareUi                                    *mShareUi;
   311 };
   313 };
   312 
   314 
   313 // INLINE METHODS
   315 // INLINE METHODS
   314 // -------------------------------------------------------------------------------------------------
   316 // -------------------------------------------------------------------------------------------------
   398         mFileDetailsAdded );
   400         mFileDetailsAdded );
   399 
   401 
   400     return mFileDetailsAdded;
   402     return mFileDetailsAdded;
   401 }
   403 }
   402 
   404 
   403 
       
   404 // -------------------------------------------------------------------------------------------------
   405 // -------------------------------------------------------------------------------------------------
   405 //   VideoPlaybackControlsController::isService
   406 //   VideoPlaybackControlsController::isService
   406 // -------------------------------------------------------------------------------------------------
   407 // -------------------------------------------------------------------------------------------------
   407 //
   408 //
   408 inline
   409 inline
   409 bool VideoPlaybackControlsController::isService()
   410 bool VideoPlaybackControlsController::isService()
   410 {
   411 {
   411     MPX_DEBUG(_L("VideoPlaybackControlsController::isService()"));
   412     MPX_DEBUG(_L("VideoPlaybackControlsController::isService()"));
   412     
   413 
   413     return XQServiceUtil::isService();
   414     return XQServiceUtil::isService();
   414 }
   415 }
   415 
   416 
   416 
   417 // -------------------------------------------------------------------------------------------------
   417 #endif /*MPXVIDEOPLAYBACKCONTROLSCONTROLLER_P_H_*/
   418 //   VideoPlaybackControlsController::volumeSteps
       
   419 // -------------------------------------------------------------------------------------------------
       
   420 //
       
   421 inline
       
   422 int VideoPlaybackControlsController::volumeSteps()
       
   423 {
       
   424     int volumeSteps = mViewWrapper->VolumeSteps();
       
   425     MPX_DEBUG(_L("VideoPlaybackControlsController::volumeSteps() steps = %d"), volumeSteps);
       
   426 
       
   427     return volumeSteps;
       
   428 }
       
   429 
       
   430 #endif /*MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_*/
   418 
   431 
   419 // End of File
   432 // End of File