36
|
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 CPSILENCEINDICATORPLUGIN_H
|
|
19 |
#define CPSILENCEINDICATORPLUGIN_H
|
|
20 |
|
|
21 |
#include <QtCore/QVariant>
|
|
22 |
#include <hbindicatorplugininterface.h>
|
|
23 |
#include <hbindicatorinterface.h>
|
|
24 |
|
|
25 |
class MProfileEngineExtended2;
|
|
26 |
class CpSilenceIndicatorPlugin : public HbIndicatorInterface, public HbIndicatorPluginInterface
|
|
27 |
{
|
|
28 |
Q_OBJECT
|
|
29 |
Q_INTERFACES(HbIndicatorPluginInterface)
|
|
30 |
|
|
31 |
public:
|
|
32 |
CpSilenceIndicatorPlugin();
|
|
33 |
~CpSilenceIndicatorPlugin();
|
|
34 |
|
|
35 |
public:
|
|
36 |
//from HbIndicatorPluginInterface
|
|
37 |
QStringList indicatorTypes() const;
|
|
38 |
bool accessAllowed(const QString &indicatorType,
|
|
39 |
const QVariantMap &securityInfo ) const;
|
|
40 |
HbIndicatorInterface* createIndicator(const QString &indicatorType);
|
|
41 |
int error() const;
|
|
42 |
|
|
43 |
public:
|
|
44 |
//from HbIndicatorInterface
|
|
45 |
bool handleClientRequest (RequestType type, const QVariant ¶meter);
|
|
46 |
bool handleInteraction (InteractionType type);
|
|
47 |
QVariant indicatorData(int role) const;
|
|
48 |
|
|
49 |
private:
|
|
50 |
|
|
51 |
Q_DISABLE_COPY(CpSilenceIndicatorPlugin)
|
|
52 |
QStringList mIndicatorTypes; // Type of indicator
|
|
53 |
int mError; // Indicator errors
|
|
54 |
MProfileEngineExtended2 *mEngine;
|
|
55 |
};
|
|
56 |
#endif //CPSILENCEINDICATORPLUGIN_H
|