26
|
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 the License "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 |
* EAP method QT configuration
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
/*
|
27
|
20 |
* %version: 3 %
|
26
|
21 |
*/
|
|
22 |
|
|
23 |
#ifndef EAPQTCONFIG_H
|
|
24 |
#define EAPQTCONFIG_H
|
|
25 |
|
|
26 |
#include <QList>
|
|
27 |
#include <QVariant>
|
27
|
28 |
#include <eapqtconfigdefs.h>
|
26
|
29 |
|
|
30 |
class EapQtConfigPrivate;
|
|
31 |
|
27
|
32 |
class EAP_QT_CONFIG_INTERFACE_EXPORT EapQtConfig
|
26
|
33 |
{
|
|
34 |
public:
|
|
35 |
|
|
36 |
enum SettingsId
|
|
37 |
{
|
|
38 |
// see also EapSettings.h
|
|
39 |
|
|
40 |
/*! bool */
|
|
41 |
UsernameAutomatic,
|
|
42 |
/*! QString */
|
|
43 |
Username,
|
|
44 |
/*! bool */
|
|
45 |
PasswordPrompt,
|
|
46 |
/*! write-only: QString */
|
|
47 |
Password,
|
|
48 |
/*! bool
|
|
49 |
* in read: defines if password already exists in settings database
|
|
50 |
* in write: when true, defines that password is not included in the provided
|
|
51 |
* configuration since it already exists in settings database, i.e. earlier
|
|
52 |
* set password remains unchanged */
|
|
53 |
PasswordStored,
|
|
54 |
/*! write-only: bool
|
|
55 |
* true: clears the password from database
|
|
56 |
* false: does nothing
|
|
57 |
*/
|
|
58 |
PasswordClear,
|
|
59 |
/*! bool */
|
|
60 |
RealmAutomatic,
|
|
61 |
/*! QString */
|
|
62 |
Realm,
|
|
63 |
/*! bool */
|
|
64 |
UsePseudonyms,
|
|
65 |
/*! bool */
|
|
66 |
VerifyServerRealm,
|
|
67 |
/*! bool */
|
|
68 |
ClientAuthenticationRequired,
|
|
69 |
/*! uint */
|
|
70 |
SessionValidityTime,
|
|
71 |
/*!
|
27
|
72 |
* QList<uint> contains RFC2246 numbers for activated ciphersuites
|
26
|
73 |
*
|
27
|
74 |
* TLS_NULL_WITH_NULL_NULL = 0x0000
|
|
75 |
* TLS_RSA_WITH_RC4_128_MD5 = 0x0004
|
|
76 |
* TLS_RSA_WITH_RC4_128_SHA = 0x0005
|
|
77 |
* TLS_RSA_WITH_3DES_EDE_CBC_SHA = 0x000a
|
|
78 |
* TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 0x0016
|
|
79 |
* TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA = 0x0013
|
26
|
80 |
* TLS_RSA_WITH_AES_128_CBC_SHA = 0x002F
|
|
81 |
* TLS_DHE_DSS_WITH_AES_128_CBC_SHA = 0x0032
|
|
82 |
* TLS_DHE_RSA_WITH_AES_128_CBC_SHA = 0x0033
|
27
|
83 |
* TLS_DH_anon_WITH_AES_128_CBC_SHA = 0x0034
|
26
|
84 |
*/
|
|
85 |
CipherSuites,
|
|
86 |
/*! bool */
|
|
87 |
PeapVersion0Allowed,
|
|
88 |
/*! bool */
|
|
89 |
PeapVersion1Allowed,
|
|
90 |
/*! bool */
|
|
91 |
PeapVersion2Allowed,
|
|
92 |
/*! QList< QVariant(EapQtCertificateInfo) > */
|
|
93 |
AuthorityCertificate,
|
|
94 |
/*! QList< QVariant(EapQtCertificateInfo) > */
|
|
95 |
UserCertificate,
|
|
96 |
/*! QList< QVariant(EapQtPluginHandle) > */
|
|
97 |
InnerType,
|
|
98 |
/*! EapQtPluginHandle */
|
|
99 |
OuterType,
|
|
100 |
/*! bool */
|
|
101 |
ProvisioningModeAuthenticated,
|
|
102 |
/*! bool */
|
|
103 |
ProvisioningModeUnauthenticated,
|
|
104 |
/*! QString */
|
|
105 |
PACGroupReference,
|
|
106 |
/*! bool */
|
|
107 |
WarnADHPNoPAC,
|
|
108 |
/*! bool */
|
|
109 |
WarnADHPNoMatchingPAC,
|
|
110 |
/*! bool */
|
|
111 |
WarnNotDefaultServer,
|
|
112 |
/*! bool */
|
|
113 |
UseIdentityPrivacy,
|
|
114 |
/*! bool */
|
|
115 |
AuthorityCertificateAutomatic,
|
|
116 |
/*! marker for the last entry */
|
|
117 |
SettingsIdLast
|
|
118 |
};
|
|
119 |
|
|
120 |
public:
|
|
121 |
EapQtConfig();
|
|
122 |
~EapQtConfig();
|
|
123 |
|
|
124 |
QVariant value(SettingsId id);
|
|
125 |
void setValue(SettingsId id, QVariant newValue);
|
|
126 |
QList<EapQtConfig::SettingsId> validate(
|
|
127 |
QList<EapQtConfig::SettingsId> ids);
|
|
128 |
void clear();
|
|
129 |
|
|
130 |
private:
|
|
131 |
Q_DISABLE_COPY(EapQtConfig)
|
|
132 |
QScopedPointer<EapQtConfigPrivate> d_ptr;
|
|
133 |
};
|
|
134 |
|
|
135 |
#endif
|