videoplayback/videoplaybackviewplugin/inc/videoplaybackviewplugin.h
changeset 52 e3cecb93e76a
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:  VideoPlaybackViewPlugin
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:  7 %
       
    19 
       
    20 
       
    21 #ifndef VIDEOPLAYBACKVIEWPLUGIN_H
       
    22 #define VIDEOPLAYBACKVIEWPLUGIN_H
       
    23 
       
    24 #include <QObject>
       
    25 #include <mpxviewpluginqt.h>
       
    26 
       
    27 
       
    28 // FORWARD DECLARATION
       
    29 class VideoPlaybackView;
       
    30 
       
    31 /**
       
    32  *  MPX playback view plugin definition.
       
    33  *
       
    34  */
       
    35 class VideoPlaybackViewPlugin : public MpxViewPlugin
       
    36 {
       
    37     Q_OBJECT
       
    38 
       
    39     public:
       
    40 
       
    41         /**
       
    42          * C++ default constructor.
       
    43          */
       
    44         VideoPlaybackViewPlugin();
       
    45 
       
    46         /**
       
    47          * Destructor.
       
    48          *
       
    49          */
       
    50         virtual ~VideoPlaybackViewPlugin();
       
    51 
       
    52         // from QViewPlugin
       
    53         void createView();
       
    54 
       
    55         void destroyView();
       
    56 
       
    57         void activateView();
       
    58 
       
    59         void deactivateView();
       
    60 
       
    61         QGraphicsWidget* getView();
       
    62 	
       
    63     signals:
       
    64         void command( int aCommand );    
       
    65 
       
    66     public slots:
       
    67         void orientationChange(Qt::Orientation orientation);
       
    68         void back();
       
    69 
       
    70     public:
       
    71 	VideoPlaybackView* mView;
       
    72 	bool               mViewActivated;
       
    73 };
       
    74 
       
    75 #endif //VIDEOPLAYBACKVIEWPLUGIN_H
       
    76 
       
    77 // End of file
       
    78