videoplayback/hbvideoplaybackview/inc/mpxvideoplaybackcontrolscontroller.h
changeset 39 f6d44a0cd476
parent 38 ff53afa8ad05
equal deleted inserted replaced
38:ff53afa8ad05 39:f6d44a0cd476
    13 *
    13 *
    14 * Description:  Implementation of MPXVideoPlaybackControlsController
    14 * Description:  Implementation of MPXVideoPlaybackControlsController
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: da1mmcf#18 %
    18 // Version : %version: da1mmcf#19 %
    19 
    19 
    20 
    20 
    21 
    21 
    22 #ifndef MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_
    22 #ifndef MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_
    23 #define MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_
    23 #define MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_
    71     EDetailsView,
    71     EDetailsView,
    72     EAudioOnlyView
    72     EAudioOnlyView
    73 };
    73 };
    74 
    74 
    75 const int KMPXControlsTimeOut = 4000;
    75 const int KMPXControlsTimeOut = 4000;
       
    76 const int KMPXRNLogoTimeOut = 600;
    76 
    77 
    77 const QString KMPXPLAYBACKVIEW_XML = ":/hbvideoplaybackview/hbvideoplaybackview.docml";
    78 const QString KMPXPLAYBACKVIEW_XML = ":/hbvideoplaybackview/hbvideoplaybackview.docml";
    78 
    79 
    79 
    80 
    80 // CLASS DECLARATION
    81 // CLASS DECLARATION
   146 
   147 
   147         void changeViewMode( TPlaybackViewMode viewMode, bool transitionEffect = true );
   148         void changeViewMode( TPlaybackViewMode viewMode, bool transitionEffect = true );
   148 
   149 
   149         inline bool isAttachOperation();
   150         inline bool isAttachOperation();
   150 
   151 
       
   152         bool isRNLogoBitmapInControlList();
       
   153 
   151     private:
   154     private:
   152         /**
   155         /**
   153         * Initialize controller
   156         * Initialize controller
   154         */
   157         */
   155         void initializeController();
   158         void initializeController();
   228         * Handle errors
   231         * Handle errors
   229         */
   232         */
   230         void handleErrors(); 
   233         void handleErrors(); 
   231         
   234         
   232         /**
   235         /**
   233 		* Return ETrue if control is visible
   236 		* Return true if control is visible
   234 		*/
   237 		*/
   235 		bool isSoftKeyVisible( int value );
   238 		bool isSoftKeyVisible();
   236 
   239 
   237         /**
   240         /**
   238         * Handle tvout connected/disconnected event
   241         * Handle tvout connected/disconnected event
   239         */
   242         */
   240 		void handleTvOutEvent( bool connected, 
   243 		void handleTvOutEvent( bool connected, 
   264         void handleTappedOnScreen();
   267         void handleTappedOnScreen();
   265         void handleThumbnailReady( QPixmap tnData, void *internal , int id, int error );
   268         void handleThumbnailReady( QPixmap tnData, void *internal , int id, int error );
   266         void controlsListUpdated();
   269         void controlsListUpdated();
   267         void attachVideo();
   270         void attachVideo();
   268         void sendVideo();
   271         void sendVideo();
       
   272         void handleRNLogoVisibleChanged();
       
   273         void handleRNLogoTimeout();
   269         void handleOrientationChanged( Qt::Orientation orientation );
   274         void handleOrientationChanged( Qt::Orientation orientation );
   270 
   275 
   271     private:
   276     private:
   272         HbVideoBasePlaybackView                   *mView;
   277         HbVideoBasePlaybackView                   *mView;
   273         CMPXVideoViewWrapper                      *mViewWrapper;
   278         CMPXVideoViewWrapper                      *mViewWrapper;
   277 
   282 
   278         QMPXVideoPlaybackControlPolicy            *mControlsPolicy;
   283         QMPXVideoPlaybackControlPolicy            *mControlsPolicy;
   279         QMPXVideoPlaybackControlConfiguration     *mControlsConfig;
   284         QMPXVideoPlaybackControlConfiguration     *mControlsConfig;
   280 
   285 
   281         QTimer                                    *mControlsTimer;
   286         QTimer                                    *mControlsTimer;
       
   287         QTimer                                    *mRNLogoTimer;
   282 
   288 
   283         QMPXVideoPlaybackDocumentLoader           *mLoader;
   289         QMPXVideoPlaybackDocumentLoader           *mLoader;
   284         HbVolumeSliderPopup                       *mVolumeControl;
   290         HbVolumeSliderPopup                       *mVolumeControl;
   285 
   291 
   286         ThumbnailManager                          *mThumbnailManager;
   292         ThumbnailManager                          *mThumbnailManager;