|
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 |
|
19 #ifndef GLXEXTERNALVIEWPLUGIN_H |
|
20 #define GLXEXTERNALVIEWPLUGIN_H |
|
21 |
|
22 #include <QObject> |
|
23 #include <glxstatemanager.h> |
|
24 #include <qviewplugin.h> |
|
25 |
|
26 class HbView; |
|
27 class HbPushButton; |
|
28 class QGraphicsGridLayout; |
|
29 |
|
30 class GlxExternalViewPlugin : public QViewPlugin |
|
31 { |
|
32 Q_OBJECT |
|
33 //Q_INTERFACES( QViewPlugin ) |
|
34 |
|
35 public: |
|
36 /** |
|
37 * Constructor. |
|
38 * |
|
39 */ |
|
40 GlxExternalViewPlugin(); |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 * |
|
45 */ |
|
46 virtual ~GlxExternalViewPlugin(); |
|
47 |
|
48 /** |
|
49 * Interface method to create view. |
|
50 * |
|
51 */ |
|
52 QGraphicsWidget* getView(); |
|
53 |
|
54 void createView(){}; |
|
55 |
|
56 /** |
|
57 * Interface method to destroy view. |
|
58 * |
|
59 */ |
|
60 void destroyView(); |
|
61 |
|
62 /** |
|
63 * Interface method to activate view. |
|
64 * |
|
65 * @param aParam Parameter required to activate the view. |
|
66 */ |
|
67 void activateView(); |
|
68 |
|
69 /** |
|
70 * Interface method to deactivate view. |
|
71 * |
|
72 */ |
|
73 void deactivateView() ; |
|
74 |
|
75 public slots: |
|
76 void back(){}; |
|
77 void externalCommand(int cmdId); |
|
78 void orientationChange( Qt::Orientation orientation ); |
|
79 |
|
80 private: |
|
81 |
|
82 HbView* iView; |
|
83 |
|
84 HbPushButton* collectionButton; |
|
85 HbPushButton* imageButton; |
|
86 |
|
87 QGraphicsGridLayout* iLayout; |
|
88 GlxStateManager mStateMgr; |
|
89 |
|
90 }; |
|
91 |
|
92 |
|
93 #endif //GLXEXTERNALVIEWPLUGIN_H |