|
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: Parameter definitions for untrusted certificate dialog. |
|
15 * Untrusted certificate dialog is displayed for secure |
|
16 * connection (TLS) server authentication failure errors. |
|
17 * |
|
18 */ |
|
19 |
|
20 #ifndef UNTRUSTEDCERTIFICATEDEFINITIONS_H |
|
21 #define UNTRUSTEDCERTIFICATEDEFINITIONS_H |
|
22 |
|
23 // Device dialog type for untrusted certificate dialog |
|
24 const QString KUntrustedCertificateDialog = "com.nokia.untrustedcert/1.0"; |
|
25 |
|
26 // Corresponds to CServerAuthenticationFailureInput class |
|
27 const QString KUntrustedCertEncodedCertificate = "cert"; // bytearray, mandatory |
|
28 const QString KUntrustedCertServerName = "host"; // string, mandatory |
|
29 const QString KUntrustedCertValidationError = "err"; // int (TValidationError), mandatory |
|
30 const QString KUntrustedCertTrustedSiteStoreFail = "tss"; // any, prevents permanent acceptance |
|
31 |
|
32 // Dialog return codes |
|
33 const QString KUntrustedCertificateDialogResult = "result"; // int |
|
34 const int KDialogRejected = 0; |
|
35 const int KDialogAccepted = 1; |
|
36 const int KDialogAcceptedPermanently = 2; |
|
37 |
|
38 #endif // UNTRUSTEDCERTIFICATEDEFINITIONS_H |
|
39 |