|
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 |
|
19 #ifndef ____EAPDIALOG_H__PLUGIN_H__ |
|
20 #define ____EAPDIALOG_H__PLUGIN_H__ |
|
21 |
|
22 #include <QObject> |
|
23 #include <hbdevicedialogplugin.h> |
|
24 |
|
25 class EapUsernamePwdDialog; |
|
26 |
|
27 class EapDialogPlugin : public HbDeviceDialogPlugin |
|
28 { |
|
29 Q_OBJECT |
|
30 |
|
31 public: |
|
32 |
|
33 /* Constructor */ |
|
34 EapDialogPlugin(); |
|
35 /* Destructor */ |
|
36 ~EapDialogPlugin(); |
|
37 |
|
38 /* Check whether access is allowed, true is always returned */ |
|
39 bool accessAllowed(const QString &deviceDialogType, |
|
40 const QVariantMap ¶meters, const QVariantMap &securityInfo) const; |
|
41 |
|
42 /* Creates the dialog widget */ |
|
43 HbDeviceDialogInterface *createDeviceDialog(const QString &deviceDialogType, |
|
44 const QVariantMap ¶meters); |
|
45 |
|
46 /* Returns the device dialog type */ |
|
47 bool deviceDialogInfo(const QString &deviceDialogType, |
|
48 const QVariantMap ¶meters, DeviceDialogInfo *info) const; |
|
49 |
|
50 /* Returns a list of dialog types that this plugin implements. |
|
51 * Only one dialog type is supported. |
|
52 */ |
|
53 QStringList deviceDialogTypes() const; |
|
54 |
|
55 /* Returns the possible plugin flags, there are none */ |
|
56 PluginFlags pluginFlags() const; |
|
57 |
|
58 /* Not supported */ |
|
59 int error() const; |
|
60 |
|
61 private: |
|
62 Q_DISABLE_COPY(EapDialogPlugin) |
|
63 |
|
64 }; |
|
65 |
|
66 #endif // ___EAPDIALOG_H__ |