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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef SIMPLEVIEWLUGIN_H_ |
|
19 #define SIMPLEVIEWPLUGIN_H_ |
|
20 |
|
21 #include <QObject> |
|
22 #include <mpxviewpluginqt.h> |
|
23 |
|
24 class HbView; |
|
25 |
|
26 class SimpleViewPlugin : public MpxViewPlugin, public MpxPluginViewInterface |
|
27 { |
|
28 Q_INTERFACES(MpxPluginViewInterface) |
|
29 Q_OBJECT |
|
30 |
|
31 public: |
|
32 |
|
33 SimpleViewPlugin(); |
|
34 |
|
35 virtual ~SimpleViewPlugin(); |
|
36 |
|
37 virtual void createView(); |
|
38 |
|
39 virtual void destroyView(); |
|
40 |
|
41 virtual void activateView(); |
|
42 |
|
43 virtual void deactivateView(); |
|
44 |
|
45 virtual QGraphicsWidget* getView(); |
|
46 |
|
47 virtual MpxViewPlugin *viewPlugin(); |
|
48 |
|
49 public slots: |
|
50 |
|
51 virtual void orientationChange(Qt::Orientation orientation); |
|
52 |
|
53 virtual void back(); |
|
54 |
|
55 private: |
|
56 |
|
57 HbView *viewInstance; |
|
58 |
|
59 }; |
|
60 |
|
61 #endif /* SIMPLEVIEWLUGIN_H_ */ |