equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 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: Mail Indicator Plugin Class |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef NMINDICATORPLUGIN_H |
|
19 #define NMINDICATORPLUGIN_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <QStringList> |
|
23 #include <QVariant> |
|
24 #include <QTranslator> |
|
25 |
|
26 #include <hbindicatorplugininterface.h> |
|
27 #include <hbindicatorinterface.h> |
|
28 |
|
29 class NmIndicatorPlugin : public QObject, public HbIndicatorPluginInterface |
|
30 { |
|
31 Q_OBJECT |
|
32 Q_INTERFACES(HbIndicatorPluginInterface) |
|
33 |
|
34 public: |
|
35 |
|
36 NmIndicatorPlugin(); |
|
37 |
|
38 ~NmIndicatorPlugin(); |
|
39 |
|
40 public: // From HbIndicatorPluginInterface |
|
41 QStringList indicatorTypes() const; |
|
42 bool accessAllowed(const QString &indicatorType, |
|
43 const HbSecurityInfo *securityInfo) const; |
|
44 HbIndicatorInterface* createIndicator(const QString &indicatorType); |
|
45 int error() const; |
|
46 |
|
47 private: |
|
48 Q_DISABLE_COPY(NmIndicatorPlugin) |
|
49 |
|
50 int mError; |
|
51 QStringList mIndicatorTypes; |
|
52 QTranslator *mTranslator; // owned |
|
53 }; |
|
54 |
|
55 #endif // NMINDICATORPLUGIN_H |
|
56 |