15 * Control Panel QT UI for WPA2 only configuration |
15 * Control Panel QT UI for WPA2 only configuration |
16 * |
16 * |
17 */ |
17 */ |
18 |
18 |
19 /* |
19 /* |
20 * %version: 10 % |
20 * %version: 14 % |
21 */ |
21 */ |
22 |
22 |
23 |
23 |
24 #ifndef CPWPA2UI_H |
24 #ifndef CPWPA2UI_H |
25 #define CPWPA2UI_H |
25 #define CPWPA2UI_H |
26 |
26 |
27 // System includes |
27 // System includes |
28 #include <cpsettingformitemdata.h> |
28 #include <cpsettingformitemdata.h> |
29 #include <HbMessageBox> |
29 #include <cpwlansecurityplugininterface.h> |
30 //#include <HbTranslator> |
30 |
31 //#include <QSharedPointer> |
31 // User includes |
32 #include <QTranslator> |
|
33 |
32 |
34 |
33 |
35 // User includes |
|
36 #include "cpwlansecurityplugininterface.h" |
|
37 |
|
38 // Forward declarations |
34 // Forward declarations |
39 class EapPluginInformation; |
|
40 class PluginInformation; |
|
41 class CpBaseSettingView; |
|
42 class EapQtConfigInterface; |
35 class EapQtConfigInterface; |
43 class EapEntyItemData; |
|
44 class CpWpaCmnUi; |
36 class CpWpaCmnUi; |
45 class CmConnectionMethodShim; |
37 class CmConnectionMethodShim; |
|
38 class HbTranslator; |
|
39 |
46 |
40 |
47 /*! |
41 /*! |
48 * @addtogroup group_wlan_security_ui_plugin_wpa2_only |
42 * @addtogroup group_wlan_security_ui_plugin_wpa2_only |
49 * @{ |
43 * @{ |
50 */ |
44 */ |
72 |
66 |
73 int orderNumber() const; |
67 int orderNumber() const; |
74 |
68 |
75 CpSettingFormItemData* uiInstance( |
69 CpSettingFormItemData* uiInstance( |
76 CpItemDataHelper &dataHelper); |
70 CpItemDataHelper &dataHelper); |
77 |
|
78 private: |
|
79 |
71 |
80 bool tryUpdate(); |
72 bool validateSettings(); |
81 |
|
82 void handleUpdateError(); |
|
83 |
|
84 void showMessageBox( HbMessageBox::MessageBoxType type, |
|
85 const QString &text); |
|
86 |
|
87 void updateWpaSettings(); |
|
88 |
|
89 private slots: |
|
90 |
|
91 //void currentEapPlugin(int currentPlugin); |
|
92 //void wpaTypeChanged(int pskEnable); |
|
93 void pskKeyChanged(QString& key); |
|
94 |
|
95 |
73 |
96 private: |
74 private: |
97 |
75 |
98 Q_DISABLE_COPY(CpWpa2Ui) |
76 Q_DISABLE_COPY(CpWpa2Ui) |
99 |
77 |
100 //!WPA security group item |
78 //!WPA security group item |
101 CpSettingFormItemData* mUi; |
79 CpSettingFormItemData* mUi; |
|
80 |
|
81 //!Translator for all the localisation Text Id's |
|
82 HbTranslator* mTranslator; |
102 |
83 |
103 //! Connection method Id |
|
104 int mCmId; |
|
105 |
|
106 //!Translator for all the localisation Text Id's |
|
107 //QSharedPointer<HbTranslator> mTranslator; |
|
108 QTranslator* mTranslator; |
|
109 |
|
110 //! Connection Settings Shim connection method pointer |
84 //! Connection Settings Shim connection method pointer |
111 CmConnectionMethodShim *mCmCM; |
85 CmConnectionMethodShim *mCmCM; |
112 |
86 |
113 //! Eap Plugin config interface |
87 //! Eap Plugin config interface |
114 EapQtConfigInterface *mEapQtConfigInterface; |
88 EapQtConfigInterface *mEapQtConfigInterface; |
115 |
89 |
116 //!WPA ui Implementer Interface |
90 //!WPA ui Implementer Interface |
117 QScopedPointer <CpWpaCmnUi> mWpa2Ui; |
91 QScopedPointer <CpWpaCmnUi> mWpa2Ui; |
118 |
|
119 //! Message box for info notes |
|
120 QSharedPointer<HbMessageBox> mMessageBox; |
|
121 |
92 |
122 }; |
93 }; |
123 |
94 |
124 /*! @} */ |
95 /*! @} */ |
125 |
96 |