videoplayerapp/videoplayerengine/tsrc/testvideoplayerengine/stub/inc/hbinstance.h
changeset 35 3738fe97f027
child 44 518105d52e45
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/videoplayerapp/videoplayerengine/tsrc/testvideoplayerengine/stub/inc/hbinstance.h	Thu Apr 01 23:32:44 2010 +0300
@@ -0,0 +1,53 @@
+/*
+* 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:   hbInstance stub class definition
+*
+*/
+
+#ifndef _HBINSTANCE_H
+#define _HBINSTANCE_H
+
+#include <QList>
+
+// Get stubs included before they are searched from /epoc32/include/mw
+#include "stub/inc/mpxviewpluginqt.h"
+#include "stub/inc/xqpluginloader.h"
+#include "stub/inc/xqplugininfo.h"
+#include "stub/inc/hbview.h"
+
+#define hbInstance (HbInstance::instance())
+
+class QGraphicsWidget;
+
+class HbInstance
+{
+public:
+    static HbInstance *instance();
+
+    HbInstance* primaryWindow() const;
+
+    QList<HbInstance *> allMainWindows() const;
+    
+    void removeView( QGraphicsWidget* y );
+
+    void addView( QGraphicsWidget* x );
+    
+    void setCurrentView( HbView* x , bool animation );
+    
+private:
+    HbInstance();
+    ~HbInstance();
+};
+
+#endif // STUBHBINSTANCE_H