72
|
1 |
/*******************************************************************************
|
|
2 |
* Copyright (c) 2009, 2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved. This program and the accompanying materials
|
|
4 |
* are made available under the terms of the Eclipse Public License v1.0
|
|
5 |
* which accompanies this distribution, and is available at
|
|
6 |
* http://www.eclipse.org/legal/epl-v10.html
|
|
7 |
*
|
|
8 |
* Contributors:
|
|
9 |
* Nokia Corporation - initial implementation
|
|
10 |
*******************************************************************************/
|
|
11 |
|
|
12 |
#ifndef JAVASOFTINDICATORPLUGIN_H
|
|
13 |
#define JAVASOFTINDICATORPLUGIN_H
|
|
14 |
|
|
15 |
#include <QObject>
|
|
16 |
#include <QStringList>
|
|
17 |
#include <hbindicatorplugininterface.h>
|
|
18 |
|
|
19 |
/**
|
|
20 |
* Main class of java indicator plugin.
|
|
21 |
*/
|
|
22 |
class JavaSoftIndicatorPlugin : public QObject,
|
|
23 |
public HbIndicatorPluginInterface
|
|
24 |
{
|
|
25 |
Q_OBJECT
|
|
26 |
Q_INTERFACES(HbIndicatorPluginInterface)
|
|
27 |
|
|
28 |
public:
|
|
29 |
/**
|
|
30 |
* Constructor
|
|
31 |
*/
|
|
32 |
JavaSoftIndicatorPlugin();
|
|
33 |
|
|
34 |
/**
|
|
35 |
* Destructor
|
|
36 |
*/
|
|
37 |
virtual ~JavaSoftIndicatorPlugin();
|
|
38 |
|
|
39 |
/**
|
|
40 |
* @see HbIndicatorPluginInterface
|
|
41 |
*/
|
|
42 |
QStringList indicatorTypes() const;
|
|
43 |
|
|
44 |
/**
|
|
45 |
* @see HbIndicatorPluginInterface
|
|
46 |
*/
|
|
47 |
bool accessAllowed(const QString &indicatorType,
|
|
48 |
const QVariantMap &securityInfo) const;
|
|
49 |
|
|
50 |
/**
|
|
51 |
* @see HbIndicatorPluginInterface
|
|
52 |
*/
|
|
53 |
HbIndicatorInterface* createIndicator(const QString &indicatorType);
|
|
54 |
|
|
55 |
/**
|
|
56 |
* @see HbIndicatorPluginInterface
|
|
57 |
*/
|
|
58 |
int error() const;
|
|
59 |
|
|
60 |
private:
|
|
61 |
Q_DISABLE_COPY( JavaSoftIndicatorPlugin)
|
|
62 |
|
|
63 |
/**
|
|
64 |
* Error value
|
|
65 |
*/
|
|
66 |
int iError;
|
|
67 |
|
|
68 |
/**
|
|
69 |
* Indicator types
|
|
70 |
* supported indicator types.
|
|
71 |
*/
|
|
72 |
//QStringList iIndicatorTypes;
|
|
73 |
};
|
|
74 |
|
|
75 |
#endif // JAVASOFTINDICATORPLUGIN_H
|