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 * PAC store configuration data |
|
16 * |
|
17 */ |
|
18 |
|
19 /* |
|
20 * %version: 1 % |
|
21 */ |
|
22 |
|
23 #ifndef EAPQTPACSTORECONFIG_H |
|
24 #define EAPQTPACSTORECONFIG_H |
|
25 |
|
26 #include <QList> |
|
27 #include <QVariant> |
|
28 |
|
29 #ifdef BUILD_EAP_QT_CONFIG_INTERFACE_DLL |
|
30 #define EAP_QT_CONFIG_EXPORT Q_DECL_EXPORT |
|
31 #else |
|
32 #define EAP_QT_CONFIG_EXPORT Q_DECL_IMPORT |
|
33 #endif |
|
34 |
|
35 class EapQtPacStoreConfigPrivate; |
|
36 |
|
37 class EAP_QT_CONFIG_EXPORT EapQtPacStoreConfig |
|
38 { |
|
39 public: |
|
40 |
|
41 enum PacStoreState { |
|
42 PacStoreStateNotExists = 0, |
|
43 PacStoreStatePasswordConfirmationRequired, |
|
44 PacStoreStateConfirmed, |
|
45 }; |
|
46 |
|
47 enum PacStoreSettings { |
|
48 /*! TODO: PAC Store API, see EapFastPacStore.h */ |
|
49 /*! write-only: QString, sets the state to PacStoreStateConfirmed */ |
|
50 PacStorePassword, |
|
51 /*! write-only: invalid QVariant */ |
|
52 PacStoreReset, |
|
53 /*! read-only: int (PacStoreState) */ |
|
54 PacStoreState, |
|
55 /*! no write nor read operation. for validator only */ |
|
56 PacStorePasswordConfirmation, |
|
57 }; |
|
58 |
|
59 public: |
|
60 EapQtPacStoreConfig(); |
|
61 ~EapQtPacStoreConfig(); |
|
62 |
|
63 QVariant value(PacStoreSettings id); |
|
64 void setValue(PacStoreSettings id, QVariant newValue); |
|
65 void clear(); |
|
66 |
|
67 private: |
|
68 Q_DISABLE_COPY(EapQtPacStoreConfig) |
|
69 QScopedPointer<EapQtPacStoreConfigPrivate> d_ptr; |
|
70 }; |
|
71 |
|
72 #endif |
|