videoplayerapp/videoplayerengine/tsrc/testvideoplayerengine/stub/inc/hbinstance.h
equal
deleted
inserted
replaced
|
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: hbInstance stub class definition |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef _HBINSTANCE_H |
|
19 #define _HBINSTANCE_H |
|
20 |
|
21 #include <QList> |
|
22 |
|
23 // Get stubs included before they are searched from /epoc32/include/mw |
|
24 #include "stub/inc/mpxviewpluginqt.h" |
|
25 #include "stub/inc/xqpluginloader.h" |
|
26 #include "stub/inc/xqplugininfo.h" |
|
27 #include "stub/inc/hbview.h" |
|
28 |
|
29 #define hbInstance (HbInstance::instance()) |
|
30 |
|
31 class QGraphicsWidget; |
|
32 |
|
33 class HbInstance |
|
34 { |
|
35 public: |
|
36 static HbInstance *instance(); |
|
37 |
|
38 HbInstance* primaryWindow() const; |
|
39 |
|
40 QList<HbInstance *> allMainWindows() const; |
|
41 |
|
42 void removeView( QGraphicsWidget* y ); |
|
43 |
|
44 void addView( QGraphicsWidget* x ); |
|
45 |
|
46 void setCurrentView( HbView* x , bool animation ); |
|
47 |
|
48 private: |
|
49 HbInstance(); |
|
50 ~HbInstance(); |
|
51 }; |
|
52 |
|
53 #endif // STUBHBINSTANCE_H |