9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: Fast Pac Store Password Query Dialog |
14 * Description: EAP-FAST PAC Store Password Query Dialog |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 /* |
18 /* |
19 * %version: 3 % |
19 * %version: 4 % |
20 */ |
20 */ |
21 |
21 |
22 #ifndef __EAPFASTPACSTOREPWQUERYDIALOG_H__ |
22 #ifndef __EAPFASTPACSTOREPWQUERYDIALOG_H__ |
23 #define __EAPFASTPACSTOREPWQUERYDIALOG_H__ |
23 #define __EAPFASTPACSTOREPWQUERYDIALOG_H__ |
24 |
24 |
|
25 // System includes |
25 #include <HbInputDialog> |
26 #include <HbInputDialog> |
26 #include <hbdevicedialoginterface.h> |
27 #include <hbdevicedialoginterface.h> |
27 |
28 |
|
29 // User includes |
|
30 |
|
31 // Forward declarations |
28 class HbTranslator; |
32 class HbTranslator; |
29 class EapQtValidator; |
33 class EapQtValidator; |
|
34 |
|
35 // External data types |
|
36 |
|
37 // Constants |
|
38 |
|
39 /*! |
|
40 @addtogroup group_eap_fast_pac_store_pwd_query_dialog |
|
41 @{ |
|
42 */ |
|
43 |
|
44 // Class declaration |
30 |
45 |
31 class EapFastPacStorePwQueryDialog: public HbInputDialog, public HbDeviceDialogInterface |
46 class EapFastPacStorePwQueryDialog: public HbInputDialog, public HbDeviceDialogInterface |
32 { |
47 { |
33 Q_OBJECT |
48 Q_OBJECT |
34 |
49 |
36 /* Constructor */ |
51 /* Constructor */ |
37 EapFastPacStorePwQueryDialog(const QVariantMap ¶meters); |
52 EapFastPacStorePwQueryDialog(const QVariantMap ¶meters); |
38 /* Destructor */ |
53 /* Destructor */ |
39 ~EapFastPacStorePwQueryDialog(); |
54 ~EapFastPacStorePwQueryDialog(); |
40 |
55 |
41 /* Function creates the actual dialog widget */ |
56 /* Function creates the actual dialog widget. */ |
42 void createDialog( const QVariantMap ¶meters ); |
57 void createDialog(); |
43 |
58 |
44 /* Device dialog parameters to be set while dialog is displayed. |
59 /* Device dialog parameters to be set while dialog is displayed. |
45 * Not supported. |
60 * Not supported. (from HbDeviceDialogInterface) |
46 */ |
61 */ |
47 bool setDeviceDialogParameters(const QVariantMap ¶meters); |
62 bool setDeviceDialogParameters(const QVariantMap ¶meters); |
48 |
63 |
49 /* Not supported */ |
64 /* Not supported. (from HbDeviceDialogInterface) */ |
50 int deviceDialogError() const; |
65 int deviceDialogError() const; |
51 |
66 |
52 /* Closes the device dialog */ |
67 /* Closes the device dialog. (from HbDeviceDialogInterface)*/ |
53 void closeDeviceDialog(bool byClient); |
68 void closeDeviceDialog(bool byClient); |
54 |
69 |
55 /* Returns a pointer to this dialog widget */ |
70 /* Returns a pointer to this dialog widget. |
|
71 (from HbDeviceDialogInterface) */ |
56 HbPopup *deviceDialogWidget() const; |
72 HbPopup *deviceDialogWidget() const; |
57 |
73 |
58 signals: |
74 signals: |
59 /* Signal is emitted when the dialog is closed */ |
75 /* Signal is emitted when the dialog is closed */ |
60 void deviceDialogClosed(); |
76 void deviceDialogClosed(); |
76 |
92 |
77 bool validate() const; |
93 bool validate() const; |
78 |
94 |
79 Q_DISABLE_COPY(EapFastPacStorePwQueryDialog) |
95 Q_DISABLE_COPY(EapFastPacStorePwQueryDialog) |
80 |
96 |
81 private: |
97 private: // data |
82 /* Pointer to the line edit object */ |
98 // NOT OWNED |
|
99 //! Pointer to the line edit object |
83 HbLineEdit *mEdit; |
100 HbLineEdit *mEdit; |
84 |
101 |
85 /* Pointer to the password validator object */ |
102 // OWNED |
|
103 //! Pointer to the password validator object |
86 QScopedPointer<EapQtValidator> mPwdValidator; |
104 QScopedPointer<EapQtValidator> mPwdValidator; |
87 |
105 |
88 /* Pointer to the HbTranslator */ |
106 //! Pointer to the HbTranslator |
89 QScopedPointer<HbTranslator> mTranslator; |
107 QScopedPointer<HbTranslator> mTranslator; |
90 |
108 |
91 /* Pointer to the error message HbTranslator */ |
109 //! Pointer to the error message HbTranslator |
92 QScopedPointer<HbTranslator> mErrMsgTranslator; |
110 QScopedPointer<HbTranslator> mErrMsgTranslator; |
93 |
111 |
94 /* Tells whether close has already been called for the dialog */ |
112 //! Tells whether close has already been called for the dialog |
95 bool mClose; |
113 bool mClose; |
96 |
114 |
97 }; |
115 }; |
98 |
116 |
|
117 /*! @} */ |
99 |
118 |
100 #endif // __EAPFASTPACSTOREPWQUERYDIALOG_H__ |
119 #endif // __EAPFASTPACSTOREPWQUERYDIALOG_H__ |
101 |
120 |