videoplayback/hbvideoplaybackview/inc/mpxvideoplaybackcontrolscontroller.h
changeset 24 7d93ee07fb27
parent 20 b9e04db066d4
child 28 c48470be1ba7
equal deleted inserted replaced
20:b9e04db066d4 24:7d93ee07fb27
    13 *
    13 *
    14 * Description:  Implementation of MPXVideoPlaybackControlsController
    14 * Description:  Implementation of MPXVideoPlaybackControlsController
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: da1mmcf#17 %
    18 // Version : %version: da1mmcf#18 %
    19 
    19 
    20 
    20 
    21 
    21 
    22 #ifndef MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_
    22 #ifndef MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_
    23 #define MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_
    23 #define MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_
   144 
   144 
   145         TPlaybackViewMode viewMode();
   145         TPlaybackViewMode viewMode();
   146 
   146 
   147         void changeViewMode( TPlaybackViewMode viewMode, bool transitionEffect = true );
   147         void changeViewMode( TPlaybackViewMode viewMode, bool transitionEffect = true );
   148 
   148 
   149         bool isAttachOperation();
   149         inline bool isAttachOperation();
   150 
   150 
   151     private:
   151     private:
   152         /**
   152         /**
   153         * Initialize controller
   153         * Initialize controller
   154         */
   154         */
   264         void handleTappedOnScreen();
   264         void handleTappedOnScreen();
   265         void handleThumbnailReady( QPixmap tnData, void *internal , int id, int error );
   265         void handleThumbnailReady( QPixmap tnData, void *internal , int id, int error );
   266         void controlsListUpdated();
   266         void controlsListUpdated();
   267         void attachVideo();
   267         void attachVideo();
   268         void sendVideo();
   268         void sendVideo();
       
   269         void handleOrientationChanged( Qt::Orientation orientation );
   269 
   270 
   270     private:
   271     private:
   271         HbVideoBasePlaybackView                   *mView;
   272         HbVideoBasePlaybackView                   *mView;
   272         CMPXVideoViewWrapper                      *mViewWrapper;
   273         CMPXVideoViewWrapper                      *mViewWrapper;
   273         QMPXVideoPlaybackViewFileDetails          *mFileDetails;
   274         QMPXVideoPlaybackViewFileDetails          *mFileDetails;
   290         
   291         
   291         TThumbNailState                            mThumbNailState;
   292         TThumbNailState                            mThumbNailState;
   292 
   293 
   293         TMPXPlaybackState                          mState;
   294         TMPXPlaybackState                          mState;
   294         TPlaybackViewMode                          mViewMode;
   295         TPlaybackViewMode                          mViewMode;
       
   296         Qt::Orientation                            mOrientation;
   295 };
   297 };
   296 
   298 
   297 // INLINE METHODS
   299 // INLINE METHODS
   298 // -------------------------------------------------------------------------------------------------
   300 // -------------------------------------------------------------------------------------------------
   299 //   QMPXVideoPlaybackControlsController::state
   301 //   QMPXVideoPlaybackControlsController::state
   356 TPlaybackViewMode QMPXVideoPlaybackControlsController::viewMode()
   358 TPlaybackViewMode QMPXVideoPlaybackControlsController::viewMode()
   357 {
   359 {
   358     return mViewMode;
   360     return mViewMode;
   359 }
   361 }
   360 
   362 
       
   363 // -------------------------------------------------------------------------------------------------
       
   364 // QMPXVideoPlaybackControlsController::isAttachOperation
       
   365 // -------------------------------------------------------------------------------------------------
       
   366 //
       
   367 inline
       
   368 bool QMPXVideoPlaybackControlsController::isAttachOperation()
       
   369 {        
       
   370     MPX_DEBUG(_L("QMPXVideoPlaybackControlsController::isAttachOperation() ret %d"), 
       
   371         mIsAttachOperation );
       
   372     
       
   373     return mIsAttachOperation;
       
   374 }
       
   375 
   361 #endif /*MPXVIDEOPLAYBACKCONTROLSCONTROLLER_P_H_*/
   376 #endif /*MPXVIDEOPLAYBACKCONTROLSCONTROLLER_P_H_*/
   362 
   377 
   363 // End of File
   378 // End of File