videoplayback/videoplaybackview/tsrc/testuserinputhandler/stub/inc/videobaseplaybackview.h
changeset 52 e3cecb93e76a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/videoplayback/videoplaybackview/tsrc/testuserinputhandler/stub/inc/videobaseplaybackview.h	Wed Aug 18 09:50:14 2010 +0300
@@ -0,0 +1,91 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  Video playback view
+*
+*/
+
+// Version : %version:  2 %
+
+
+
+// This file defines the API for .dll
+
+#ifndef __VIDEOBASEPLAYBACKVIEW_H__
+#define __VIDEOBASEPLAYBACKVIEW_H__
+
+//  Include Files
+#include <hbview.h>
+
+class CMPXVideoViewWrapper;
+class RWindow;
+
+//  Constants
+
+//  Forward Declarations
+
+//  Class Definitions
+
+class VideoBasePlaybackView : public HbView
+{
+    Q_OBJECT
+
+    public:
+        VideoBasePlaybackView();
+        virtual ~VideoBasePlaybackView();
+
+        void handleActivateView(); 
+        
+        void handleDeactivateView();
+        
+        void mousePressEvent( QGraphicsSceneMouseEvent *event );
+        
+        QVariant itemChange( GraphicsItemChange change, const QVariant &value );
+        
+        void paint( QPainter *painter, 
+                    const QStyleOptionGraphicsItem *option,
+                    QWidget *widget );
+        
+        bool event( QEvent *event );
+        
+        virtual void handleClosePlaybackView();
+        
+        virtual void handleBufferingState();
+
+        virtual void issuePlayCommand();                
+
+        virtual void handlePluginError( int aError );                
+        
+        virtual void retrievePdlInformation();
+        
+        virtual void closePlaybackView();
+        
+        void startClosingPlaybackView();
+        
+        RWindow *getWindow();
+        
+        virtual void doClosePlayer();
+
+    public:
+        int mCurrentError;   // default = KErrNone 
+        bool mViewActive;
+        
+        
+    public:
+        friend class CMPXVideoViewWrapper;
+                				
+};
+
+#endif  // __VIDEOBASEPLAYBACKVIEW_H__
+
+// EOF