videoplayback/inc/hbvideobaseplaybackview.h
changeset 52 e3cecb93e76a
parent 47 45e72b57a2fd
child 59 a76e86df7ccd
equal deleted inserted replaced
47:45e72b57a2fd 52:e3cecb93e76a
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  MPX Video base playback view
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:  da1mmcf#18 %
       
    19 
       
    20 
       
    21 
       
    22 // This file defines the API for .dll
       
    23 
       
    24 #ifndef __HBVIDEOBASEPLAYBACKVIEW_H__
       
    25 #define __HBVIDEOBASEPLAYBACKVIEW_H__
       
    26 
       
    27 //  Include Files
       
    28 #include <hbview.h>
       
    29 
       
    30 //  Constants
       
    31 
       
    32 //  Forward Declarations
       
    33 class QTimer;
       
    34 class RWindow;
       
    35 class CMPXVideoViewWrapper;
       
    36 
       
    37 
       
    38 //  Class Definitions
       
    39 
       
    40 class HbVideoBasePlaybackView : public HbView
       
    41 {
       
    42     Q_OBJECT
       
    43 
       
    44     public:
       
    45         HbVideoBasePlaybackView();
       
    46         virtual ~HbVideoBasePlaybackView();
       
    47 
       
    48     signals:
       
    49         void activatePreviousView();
       
    50         void tappedOnScreen();
       
    51         void pannedToRight();
       
    52         void pannedToLeft();
       
    53 
       
    54     public slots:
       
    55         virtual void closePlaybackView();
       
    56 
       
    57     protected slots:
       
    58         void handleClosePopupDialog();
       
    59 
       
    60     public:
       
    61 
       
    62         virtual void retrievePdlInformation();
       
    63 
       
    64         virtual void handleActivateView();
       
    65 
       
    66         virtual void handleDeactivateView();
       
    67 
       
    68         virtual void handlePluginError( int aError );
       
    69 
       
    70         /*
       
    71          *  Handle transition to the stopped state
       
    72          */
       
    73         virtual void handleStoppedState() = 0;
       
    74 
       
    75         virtual void doClosePlayer();
       
    76 
       
    77         //
       
    78         //  Function the derived classes must implement
       
    79         //
       
    80         virtual void handleSoftkeyBack() = 0;
       
    81 
       
    82         /*
       
    83          *  Handle Download State Change
       
    84          *  @param  aState  new state of the download
       
    85          */
       
    86         virtual void handlePdlStateChange( int aState ) = 0;
       
    87 
       
    88         virtual void handleBufferingState();
       
    89 
       
    90         virtual void issuePlayCommand();
       
    91 
       
    92         void initializeVideoPlaybackView();
       
    93 
       
    94         void showDialog( const QString& qString, bool closeView = true );
       
    95 
       
    96         virtual void handleClosePlaybackView();
       
    97 
       
    98         RWindow *getWindow();
       
    99 
       
   100         bool eventFilter( QObject *object, QEvent *event );
       
   101 
       
   102         void gestureEvent( QGestureEvent* event );
       
   103 
       
   104     private:
       
   105         
       
   106         void saveActivityData();
       
   107 
       
   108     protected: // data
       
   109         CMPXVideoViewWrapper                *mVideoMpxWrapper;
       
   110 
       
   111         QTimer                              *mTimerForClosingView;
       
   112 
       
   113         bool                                 mActivated;
       
   114         bool                                 mSyncClose;
       
   115         int                                  mLastPlayPosition;
       
   116         bool                                 mStayPaused;
       
   117 
       
   118     public:
       
   119         friend class CMPXVideoViewWrapper;
       
   120 };
       
   121 
       
   122 #endif  // __HBVIDEOBASEPLAYBACKVIEW_H__
       
   123 
       
   124 // EOF