videoplayback/inc/hbvideobaseplaybackview.h
changeset 46 adbe7d5ba2f5
parent 28 c48470be1ba7
child 47 45e72b57a2fd
equal deleted inserted replaced
28:c48470be1ba7 46:adbe7d5ba2f5
    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#16 %
    18 // Version : %version:  da1mmcf#17 %
    19 
    19 
    20 
    20 
    21 
    21 
    22 // This file defines the API for .dll
    22 // This file defines the API for .dll
    23 
    23 
    40 class HbVideoBasePlaybackView : public HbView
    40 class HbVideoBasePlaybackView : public HbView
    41 {
    41 {
    42     Q_OBJECT
    42     Q_OBJECT
    43 
    43 
    44     public:
    44     public:
    45         HbVideoBasePlaybackView();        
    45         HbVideoBasePlaybackView();
    46         virtual ~HbVideoBasePlaybackView();
    46         virtual ~HbVideoBasePlaybackView();
    47 
    47 
    48     signals:
    48     signals:
    49         void activatePreviousView();
    49         void activatePreviousView();
    50         void tappedOnScreen();
    50         void tappedOnScreen();
       
    51         void pannedToRight();
       
    52         void pannedToLeft();
    51 
    53 
    52     public slots:
    54     public slots:
    53         virtual void closePlaybackView();
    55         virtual void closePlaybackView();
    54 
    56 
    55     protected slots:
    57     protected slots:
    56         void handleClosePopupDialog();
    58         void handleClosePopupDialog();
    57 
    59 
    58     public:
    60     public:
    59 
    61 
    60         virtual void retrievePdlInformation();
    62         virtual void retrievePdlInformation();
    61         
    63 
    62         virtual void handleActivateView();
    64         virtual void handleActivateView();
    63         
    65 
    64         virtual void handleDeactivateView();
    66         virtual void handleDeactivateView();
    65 
    67 
    66         virtual void handlePluginError( int aError );
    68         virtual void handlePluginError( int aError );
    67         
    69 
    68         /*
    70         /*
    69          *  Handle transition to the stopped state
    71          *  Handle transition to the stopped state
    70          */
    72          */
    71         virtual void handleStoppedState() = 0; 
    73         virtual void handleStoppedState() = 0;
    72         
    74 
    73         virtual void doClosePlayer();
    75         virtual void doClosePlayer();
    74 
    76 
    75         //
    77         //
    76         //  Function the derived classes must implement
    78         //  Function the derived classes must implement
    77         //
    79         //
    79 
    81 
    80         /*
    82         /*
    81          *  Handle Download State Change
    83          *  Handle Download State Change
    82          *  @param  aState  new state of the download
    84          *  @param  aState  new state of the download
    83          */
    85          */
    84         virtual void handlePdlStateChange( int aState ) = 0;     
    86         virtual void handlePdlStateChange( int aState ) = 0;
    85 
    87 
    86         virtual void handleBufferingState();
    88         virtual void handleBufferingState();
    87 
    89 
    88         virtual void issuePlayCommand();
    90         virtual void issuePlayCommand();
    89 
    91 
    90         void initializeVideoPlaybackView();
    92         void initializeVideoPlaybackView();
    91 		
    93 
    92         void showDialog( const QString& qString, bool closeView = true );
    94         void showDialog( const QString& qString, bool closeView = true );
    93 
    95 
    94         virtual void handleClosePlaybackView();
    96         virtual void handleClosePlaybackView();
    95 
    97 
    96         RWindow *getWindow();
    98         RWindow *getWindow();
    97 
    99 
    98         bool eventFilter( QObject *object, QEvent *event );
   100         bool eventFilter( QObject *object, QEvent *event );
    99 
   101 
   100     protected:
   102         void gestureEvent( QGestureEvent* event );
   101 
       
   102         void mousePressEvent( QGraphicsSceneMouseEvent *event );
       
   103         void mouseReleaseEvent( QGraphicsSceneMouseEvent *event );
       
   104 
   103 
   105     protected: // data
   104     protected: // data
   106         CMPXVideoViewWrapper                *mVideoMpxWrapper;                
   105         CMPXVideoViewWrapper                *mVideoMpxWrapper;
   107 
   106 
   108         QTimer                              *mTimerForClosingView;
   107         QTimer                              *mTimerForClosingView;
   109 
   108 
   110         bool                                 mActivated;
   109         bool                                 mActivated;
   111         bool                                 mSyncClose;
   110         bool                                 mSyncClose;