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