|
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 HBDEVICEPOWERMENUPLUGIN_P_H |
|
19 #define HBDEVICEPOWERMENUPLUGIN_P_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <QVariantMap> |
|
23 |
|
24 #include <hbdevicedialogplugin.h> |
|
25 |
|
26 //fwd Declaration |
|
27 class HbDevicePowerMenuPluginPrivate; |
|
28 |
|
29 class HbDevicePowerMenuPlugin : public HbDeviceDialogPlugin |
|
30 { |
|
31 Q_OBJECT |
|
32 |
|
33 public: |
|
34 friend class HbDevicePowerMenuPluginPrivate; |
|
35 |
|
36 HbDevicePowerMenuPlugin(); |
|
37 ~HbDevicePowerMenuPlugin(); |
|
38 |
|
39 //Pure Virtual method of class HbDeviceDialogPluginInterface |
|
40 HbDeviceDialogInterface *createDeviceDialog(const QString &deviceDialogType, const QVariantMap ¶meters); |
|
41 //Pure Virtual Mehods of class HbDeviceDialogPlugin |
|
42 bool accessAllowed(const QString &deviceDialogType, const QVariantMap ¶meters, const QVariantMap &securityInfo) const; |
|
43 bool deviceDialogInfo(const QString &deviceDialogType, const QVariantMap ¶meters, DeviceDialogInfo *info) const; |
|
44 QStringList deviceDialogTypes() const; |
|
45 PluginFlags pluginFlags() const; |
|
46 int error() const; |
|
47 |
|
48 private: |
|
49 Q_DISABLE_COPY(HbDevicePowerMenuPlugin) |
|
50 HbDevicePowerMenuPluginPrivate *d; |
|
51 }; |
|
52 |
|
53 #endif // HBDEVICEPOWERMENUPLUGIN_P_H |
|
54 |