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/hbview.h" |
|
25 |
|
26 #define hbInstance (HbInstance::instance()) |
|
27 |
|
28 class QGraphicsWidget; |
|
29 |
|
30 class HbInstance |
|
31 { |
|
32 public: |
|
33 static HbInstance *instance(); |
|
34 |
|
35 HbInstance* primaryWindow() const; |
|
36 |
|
37 QList<HbInstance *> allMainWindows() const; |
|
38 |
|
39 void removeView( QGraphicsWidget* y ); |
|
40 |
|
41 void addView( QGraphicsWidget* x ); |
|
42 |
|
43 void setCurrentView( HbView* x , bool animation ); |
|
44 |
|
45 private: |
|
46 HbInstance(); |
|
47 ~HbInstance(); |
|
48 }; |
|
49 |
|
50 #endif // STUBHBINSTANCE_H |