|
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: Backgroundchecker Indicator Plugin Class |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef BGCINDICATORPLUGIN_H |
|
19 #define BGCINDICATORPLUGIN_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <QStringList> |
|
23 #include <QVariant> |
|
24 |
|
25 #include <hbindicatorplugininterface.h> |
|
26 #include <hbindicatorinterface.h> |
|
27 |
|
28 /** |
|
29 * Backgroundchecker indicator plugin class. |
|
30 * Main class of backgroundchecker indicator plugin. |
|
31 */ |
|
32 class BgcIndicatorPlugin : public QObject, public HbIndicatorPluginInterface |
|
33 { |
|
34 Q_OBJECT |
|
35 Q_INTERFACES(HbIndicatorPluginInterface) |
|
36 |
|
37 public: |
|
38 /** |
|
39 * Constructor |
|
40 */ |
|
41 BgcIndicatorPlugin(); |
|
42 |
|
43 /** |
|
44 * Destructor |
|
45 */ |
|
46 ~BgcIndicatorPlugin(); |
|
47 |
|
48 /** |
|
49 * @see HbIndicatorPluginInterface |
|
50 */ |
|
51 QStringList indicatorTypes() const; |
|
52 |
|
53 /** |
|
54 * @see HbIndicatorPluginInterface |
|
55 */ |
|
56 bool accessAllowed(const QString &indicatorType, |
|
57 const QVariantMap &securityInfo) const; |
|
58 /** |
|
59 * @see HbIndicatorPluginInterface |
|
60 */ |
|
61 HbIndicatorInterface* createIndicator(const QString &indicatorType); |
|
62 |
|
63 /** |
|
64 * @see HbIndicatorPluginInterface |
|
65 */ |
|
66 int error() const; |
|
67 |
|
68 private: |
|
69 Q_DISABLE_COPY(BgcIndicatorPlugin) |
|
70 |
|
71 /** |
|
72 * Error value |
|
73 */ |
|
74 int mError; |
|
75 |
|
76 |
|
77 /** |
|
78 * Indicator types |
|
79 * supported indicator types. |
|
80 */ |
|
81 QStringList mIndicatorTypes; |
|
82 }; |
|
83 |
|
84 #endif // BGCINDICATORPLUGIN_H |
|
85 |