41
|
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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef LCVTINDICATORPLUGIN_H
|
|
19 |
#define LCVTINDICATORPLUGIN_H
|
|
20 |
|
|
21 |
#include <hbindicatorplugininterface.h>
|
|
22 |
#include <hbindicatorinterface.h>
|
|
23 |
|
|
24 |
class LcVtIndicatorPlugin : public HbIndicatorInterface, public HbIndicatorPluginInterface
|
|
25 |
{
|
|
26 |
Q_OBJECT
|
|
27 |
Q_INTERFACES(HbIndicatorPluginInterface)
|
|
28 |
public:
|
|
29 |
|
|
30 |
LcVtIndicatorPlugin();
|
|
31 |
~LcVtIndicatorPlugin();
|
|
32 |
|
|
33 |
public: //from HbIndicatorPluginInterface
|
|
34 |
QStringList indicatorTypes() const;
|
|
35 |
bool accessAllowed(const QString &indicatorType,
|
|
36 |
const QVariantMap &securityInfo) const;
|
|
37 |
HbIndicatorInterface* createIndicator(const QString &indicatorType);
|
|
38 |
int error() const;
|
|
39 |
|
|
40 |
public: //from HbIndicatorInterface
|
|
41 |
bool handleInteraction(InteractionType type);
|
|
42 |
QVariant indicatorData(int role) const;
|
|
43 |
|
|
44 |
|
|
45 |
protected: //from HbIndicatorInterface
|
|
46 |
bool handleClientRequest(RequestType type, const QVariant ¶meter);
|
|
47 |
|
|
48 |
|
|
49 |
private:
|
|
50 |
|
|
51 |
bool bringVtToForeground();
|
|
52 |
|
|
53 |
private:
|
|
54 |
Q_DISABLE_COPY(LcVtIndicatorPlugin)
|
|
55 |
int mError;
|
|
56 |
QStringList mIndicatorTypes;
|
|
57 |
QVariant mParameter;
|
|
58 |
|
|
59 |
friend class UT_LcVtIndicatorPlugin;
|
|
60 |
};
|
|
61 |
|
|
62 |
#endif // LCVTINDICATORPLUGIN_H
|