videoplayback/inc/hbvideobaseplaybackview.h
changeset 15 cf5481c2bc0b
child 20 b9e04db066d4
equal deleted inserted replaced
2:dec420019252 15:cf5481c2bc0b
       
     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#13 %
       
    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 
       
    52     protected slots:
       
    53         virtual void closePlaybackView();
       
    54         void handleClosePopupDialog();
       
    55 
       
    56     public:
       
    57 
       
    58         virtual void retrievePdlInformation();
       
    59         
       
    60         virtual void handleActivateView();
       
    61         
       
    62         virtual void handleDeactivateView();
       
    63 
       
    64         virtual void handlePluginError( int aError );
       
    65         
       
    66         /*
       
    67          *  Handle transition to the stopped state
       
    68          */
       
    69         virtual void handleStoppedState() = 0; 
       
    70         
       
    71         virtual void doClosePlayer();
       
    72 
       
    73         //
       
    74         //  Function the derived classes must implement
       
    75         //
       
    76         virtual void handleSoftkeyBack() = 0;
       
    77 
       
    78         /*
       
    79          *  Handle Download State Change
       
    80          *  @param  aState  new state of the download
       
    81          */
       
    82         virtual void handlePdlStateChange( int aState ) = 0;     
       
    83 
       
    84         virtual void handleBufferingState();
       
    85 
       
    86         virtual void issuePlayCommand();
       
    87 
       
    88         void initializeVideoPlaybackView();
       
    89 		
       
    90         void showDialog( const QString& qString, bool closeView = true );
       
    91 
       
    92         virtual void handleClosePlaybackView();
       
    93         
       
    94         bool event( QEvent *event );
       
    95 
       
    96         RWindow *getWindow();
       
    97 
       
    98     protected:
       
    99 
       
   100         void mousePressEvent( QGraphicsSceneMouseEvent *event );
       
   101         void mouseReleaseEvent( QGraphicsSceneMouseEvent *event );
       
   102 
       
   103     protected: // data
       
   104         CMPXVideoViewWrapper                *mVideoMpxWrapper;                
       
   105 
       
   106         QTimer                              *mTimerForClosingView;
       
   107 
       
   108         bool                                 mActivated;
       
   109 
       
   110     public:
       
   111         friend class CMPXVideoViewWrapper;
       
   112 };
       
   113 
       
   114 #endif  // __HBVIDEOBASEPLAYBACKVIEW_H__
       
   115 
       
   116 // EOF