videocollection/tsrc/simplevideoplayback/inc/svpbview.h
changeset 50 21fe8338c6bf
equal deleted inserted replaced
49:824471cb468a 50:21fe8338c6bf
       
     1 /*
       
     2 * Copyright (c) 2010 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:  Main view of the SimpleVideoPlayback MPX view plugin.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SVPBVIEW_H_
       
    19 #define SVPBVIEW_H_
       
    20 
       
    21 #include <hbview.h>
       
    22 
       
    23 class CSvpbNativeWindow;
       
    24 class SvpbSurfaceContainer;
       
    25 
       
    26 class SvpbView : public HbView
       
    27 {
       
    28 	Q_OBJECT
       
    29 
       
    30 public:
       
    31 	SvpbView(QGraphicsItem *parent=0);
       
    32 	virtual ~SvpbView();
       
    33 
       
    34 public:
       
    35     void activate();
       
    36     void deactivate();
       
    37 
       
    38     SvpbSurfaceContainer *surfaceContainer() const;
       
    39 
       
    40 signals:
       
    41     void finished();
       
    42     void tapped();
       
    43     void longTapped();
       
    44 
       
    45 private:
       
    46     void mousePressEvent(QGraphicsSceneMouseEvent *event);
       
    47     void gestureEvent(QGestureEvent *event);
       
    48     bool handleTap(Qt::GestureState state);
       
    49     bool handleLongTap(Qt::GestureState state);
       
    50 
       
    51 private:
       
    52     CSvpbNativeWindow *mNativeWindow;
       
    53 };
       
    54 
       
    55 #endif /* SVPBVIEW_H_ */