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 UNIFIEDVIEWERPLUGIN_H |
|
19 #define UNIFIEDVIEWERPLUGIN_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <QtPlugin> |
|
23 #include <hbstyleinterface.h> |
|
24 #include <hbglobal.h> |
|
25 |
|
26 /** |
|
27 * TODO: add comment |
|
28 */ |
|
29 class UnifiedViewerPlugin : public QObject, public HbStyleInterface |
|
30 { |
|
31 Q_OBJECT |
|
32 Q_INTERFACES(HbStyleInterface) |
|
33 |
|
34 public: |
|
35 /** |
|
36 * Inherited from HbStyleInterface |
|
37 * @see HbStyleInterface docs |
|
38 */ |
|
39 int primitiveCount() const; |
|
40 |
|
41 /** |
|
42 * Inherited from HbStyleInterface |
|
43 * @see HbStyleInterface docs |
|
44 */ |
|
45 QGraphicsItem *createPrimitive(HbStyle::Primitive primitive, |
|
46 QGraphicsItem *parent = 0) const; |
|
47 |
|
48 /** |
|
49 * Inherited from HbStyleInterface |
|
50 * @see HbStyleInterface docs |
|
51 */ |
|
52 void updatePrimitive(QGraphicsItem *item, HbStyle::Primitive primitive, |
|
53 const QStyleOption *option) const; |
|
54 |
|
55 /** |
|
56 * Inherited from HbStyleInterface |
|
57 * @see HbStyleInterface docs |
|
58 */ |
|
59 QString layoutPath() const; |
|
60 |
|
61 }; |
|
62 |
|
63 #endif // UNIFIEDVIEWERPLUGIN_H |
|
64 // EOF |
|