1 /* |
1 /* |
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 * |
8 * |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
60 |
61 |
61 protected: |
62 protected: |
62 void close(); |
63 void close(); |
63 |
64 |
64 private: |
65 private: |
65 void initializeSimAkaUi(); |
66 void createUi(); |
|
67 void createUsername(); |
|
68 void createRealm(); |
|
69 |
66 bool checkStateToBool(const int state); |
70 bool checkStateToBool(const int state); |
67 int boolToCheckState(const bool state); |
71 int boolToCheckState(const bool state); |
68 void storeSettings(); |
72 |
|
73 bool storeSettings(); |
69 bool validate(); |
74 bool validate(); |
70 bool validateGroup(CpSettingFormItemData *edit, CpSettingFormItemData *checkBox, |
75 bool validateGroup(CpSettingFormItemData *edit, CpSettingFormItemData *checkBox, |
71 EapQtValidator* validator); |
76 EapQtValidator* validator); |
72 |
77 |
73 private slots: |
78 private slots: |
74 void setValidator(const QModelIndex); |
79 void setValidator(const QModelIndex); |
75 void usernameAutomaticChanged(int state); |
80 void usernameAutomaticChanged(int state); |
76 void realmAutomaticChanged(int state); |
81 void realmAutomaticChanged(int state); |
77 |
82 |
78 private: |
83 private: |
|
84 //! Pointer to EapQtConfigInterface |
79 QScopedPointer <EapQtConfigInterface> mConfigIf; |
85 QScopedPointer <EapQtConfigInterface> mConfigIf; |
|
86 //! Plugin info |
80 EapQtPluginInfo mPluginInfo; |
87 EapQtPluginInfo mPluginInfo; |
|
88 //! Outer handle |
81 EapQtPluginHandle mOuterHandle; |
89 EapQtPluginHandle mOuterHandle; |
|
90 //! Current EAP configuration |
|
91 EapQtConfig mEapConfig; |
|
92 |
|
93 //! Dataform |
82 HbDataForm *mForm; |
94 HbDataForm *mForm; |
|
95 //! Datform model |
83 HbDataFormModel *mModel; |
96 HbDataFormModel *mModel; |
|
97 //! Control Panel item data helper for EAP-SIM/AKA plugins |
|
98 CpItemDataHelper *mItemDataHelper; |
|
99 //! EAP-SIM/AKA settings group |
|
100 HbDataFormModelItem *mGroupItem; |
|
101 //! Username generate automatically checkBox |
84 CpSettingFormItemData *mUsernameAutomatic; |
102 CpSettingFormItemData *mUsernameAutomatic; |
|
103 //! Username lineEdit |
85 CpSettingFormItemData *mUsername; |
104 CpSettingFormItemData *mUsername; |
|
105 //! Realm generate automatically checkBox |
86 CpSettingFormItemData *mRealmAutomatic; |
106 CpSettingFormItemData *mRealmAutomatic; |
|
107 //! Realm lineEdit |
87 CpSettingFormItemData *mRealm; |
108 CpSettingFormItemData *mRealm; |
88 |
109 |
|
110 //! Realm validator |
89 QScopedPointer<EapQtValidator> mValidatorRealm; |
111 QScopedPointer<EapQtValidator> mValidatorRealm; |
|
112 //! Username validator |
90 QScopedPointer<EapQtValidator> mValidatorUsername; |
113 QScopedPointer<EapQtValidator> mValidatorUsername; |
91 }; |
114 }; |
92 |
115 |
93 /*! @} */ |
116 /*! @} */ |
94 |
117 |