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: Device dialog plugin that shows untrusted certificate |
|
15 * dialog for TLS server authentication failure errors. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef UNTRUSTEDCERTIFICATEPLUGIN_H |
|
20 #define UNTRUSTEDCERTIFICATEPLUGIN_H |
|
21 |
|
22 #include <hbdevicedialogplugin.h> |
|
23 |
|
24 |
|
25 /** |
|
26 * Untrusted certificate plugin. |
|
27 * Device dialog plugin to show untrusted certificate dialog. |
|
28 * See UntrustedCertificateDialog. |
|
29 */ |
|
30 class UntrustedCertificatePlugin : public HbDeviceDialogPlugin |
|
31 { |
|
32 Q_OBJECT |
|
33 |
|
34 public: |
|
35 UntrustedCertificatePlugin(); |
|
36 ~UntrustedCertificatePlugin(); |
|
37 |
|
38 public: // from HbDeviceDialogPlugin |
|
39 bool accessAllowed(const QString &deviceDialogType, const QVariantMap ¶meters, |
|
40 const QVariantMap &securityInfo) const; |
|
41 HbDeviceDialogInterface *createDeviceDialog(const QString &deviceDialogType, |
|
42 const QVariantMap ¶meters); |
|
43 bool deviceDialogInfo(const QString &deviceDialogType, const QVariantMap ¶meters, |
|
44 DeviceDialogInfo *info) const; |
|
45 QStringList deviceDialogTypes() const; |
|
46 PluginFlags pluginFlags() const; |
|
47 int error() const; |
|
48 |
|
49 private: |
|
50 Q_DISABLE_COPY(UntrustedCertificatePlugin) |
|
51 |
|
52 int mError; |
|
53 }; |
|
54 |
|
55 #endif // UNTRUSTEDCERTIFICATEPLUGIN_H |
|