videoplayback/hbvideoplaybackview/tsrc/testmpxvideoviewwrapper/stub/inc/hbvideobaseplaybackview.h
changeset 44 518105d52e45
parent 42 17f382c040b1
child 49 824471cb468a
equal deleted inserted replaced
42:17f382c040b1 44:518105d52e45
     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:  HB Video playback view
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:  5 %
       
    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 class CMPXVideoViewWrapper;
       
    31 class RWindow;
       
    32 
       
    33 //  Constants
       
    34 
       
    35 //  Forward Declarations
       
    36 
       
    37 //  Class Definitions
       
    38 
       
    39 class HbVideoBasePlaybackView : public HbView
       
    40 {
       
    41     Q_OBJECT
       
    42 
       
    43     public:
       
    44         HbVideoBasePlaybackView();
       
    45         virtual ~HbVideoBasePlaybackView();
       
    46 
       
    47         void handleActivateView(); 
       
    48         
       
    49         void handleDeactivateView();
       
    50         
       
    51         void mousePressEvent( QGraphicsSceneMouseEvent *event );
       
    52         
       
    53         QVariant itemChange( GraphicsItemChange change, const QVariant &value );
       
    54         
       
    55         void paint( QPainter *painter, 
       
    56                     const QStyleOptionGraphicsItem *option,
       
    57                     QWidget *widget );
       
    58         
       
    59         bool event( QEvent *event );
       
    60         
       
    61         virtual void handleClosePlaybackView();
       
    62         
       
    63         virtual void handleBufferingState();
       
    64 
       
    65         virtual void issuePlayCommand();                
       
    66 
       
    67         virtual void handlePluginError( int aError );                
       
    68         
       
    69         virtual void retrievePdlInformation();
       
    70         
       
    71         virtual void closePlaybackView();
       
    72         
       
    73         void startClosingPlaybackView();
       
    74         
       
    75         RWindow *getWindow();
       
    76         
       
    77         virtual void doClosePlayer();
       
    78 
       
    79         void handleStoppedState();
       
    80 
       
    81     signals:
       
    82         void tappedOnScreen();
       
    83 
       
    84     public slots:
       
    85         void handleClosePopupDialog();
       
    86 
       
    87     public:
       
    88         int mCurrentError;   // default = KErrNone 
       
    89         bool mViewActive;
       
    90         bool mSyncClose;
       
    91         
       
    92         
       
    93     public:
       
    94         friend class CMPXVideoViewWrapper;
       
    95                 				
       
    96 };
       
    97 
       
    98 #endif  // __HBVIDEOBASEPLAYBACKVIEW_H__
       
    99 
       
   100 // EOF