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: Eap Dialog Plugin |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 4 % |
|
20 */ |
|
21 |
|
22 #ifndef ____EAPDIALOG_H__PLUGIN_H__ |
|
23 #define ____EAPDIALOG_H__PLUGIN_H__ |
|
24 |
|
25 // System includes |
|
26 #include <QObject> |
|
27 #include <hbdevicedialogplugin.h> |
|
28 |
|
29 // User includes |
|
30 |
|
31 // Forward declarations |
|
32 |
|
33 // External data types |
|
34 |
|
35 // Constants |
|
36 |
|
37 /*! |
|
38 @addtogroup group_eap_dialog_plugin |
|
39 @{ |
|
40 */ |
|
41 |
|
42 // Class declaration |
|
43 |
|
44 class EapDialogPlugin : public HbDeviceDialogPlugin |
|
45 { |
|
46 Q_OBJECT |
|
47 |
|
48 public: |
|
49 |
|
50 /* Constructor */ |
|
51 EapDialogPlugin(); |
|
52 /* Destructor */ |
|
53 ~EapDialogPlugin(); |
|
54 |
|
55 /* Check whether access is allowed, true is always returned. |
|
56 (from HbDeviceDialogPlugin) */ |
|
57 bool accessAllowed(const QString &deviceDialogType, |
|
58 const QVariantMap ¶meters, const QVariantMap &securityInfo) const; |
|
59 |
|
60 /* Creates the dialog widget. (from HbDeviceDialogPluginInterface) */ |
|
61 HbDeviceDialogInterface *createDeviceDialog(const QString &deviceDialogType, |
|
62 const QVariantMap ¶meters); |
|
63 |
|
64 /* Returns the device dialog type. (from HbDeviceDialogPlugin)*/ |
|
65 bool deviceDialogInfo(const QString &deviceDialogType, |
|
66 const QVariantMap ¶meters, DeviceDialogInfo *info) const; |
|
67 |
|
68 /* Returns a list of dialog types that this plugin implements. |
|
69 * Only one dialog type is supported. (from HbDeviceDialogPlugin) |
|
70 */ |
|
71 QStringList deviceDialogTypes() const; |
|
72 |
|
73 /* Returns the possible plugin flags, there are none. |
|
74 (from HbDeviceDialogPlugin) */ |
|
75 PluginFlags pluginFlags() const; |
|
76 |
|
77 /* Not supported. (from HbDeviceDialogPlugin)*/ |
|
78 int error() const; |
|
79 |
|
80 private: |
|
81 Q_DISABLE_COPY(EapDialogPlugin) |
|
82 |
|
83 }; |
|
84 |
|
85 /*! @} */ |
|
86 |
|
87 #endif // ___EAPDIALOG_H__ |
|