equal
deleted
inserted
replaced
14 * Description: EAP-MSCHAPv2 New Password Input Dialog |
14 * Description: EAP-MSCHAPv2 New Password Input Dialog |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 /* |
18 /* |
19 * %version: 3 % |
19 * %version: 4 % |
20 */ |
20 */ |
21 |
21 |
22 #ifndef __EAPMSCHAPV2NEWPWDDIALOG_H__ |
22 #ifndef __EAPMSCHAPV2NEWPWDDIALOG_H__ |
23 #define __EAPMSCHAPV2NEWPWDDIALOG_H__ |
23 #define __EAPMSCHAPV2NEWPWDDIALOG_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 EapQtValidator; |
32 class EapQtValidator; |
29 class HbTranslator; |
33 class HbTranslator; |
30 class HbLineEdit; |
34 class HbLineEdit; |
31 class HbAction; |
35 class HbAction; |
|
36 |
|
37 // External data types |
|
38 |
|
39 // Constants |
|
40 |
|
41 /*! |
|
42 @addtogroup group_eap_mschapv2_new_pwd_dialog |
|
43 @{ |
|
44 */ |
|
45 |
|
46 // Class declaration |
32 |
47 |
33 class EapMschapv2NewPwdDialog: public HbInputDialog, public HbDeviceDialogInterface |
48 class EapMschapv2NewPwdDialog: 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. |
|
63 * (from HbDeviceDialogInterface) |
48 */ |
64 */ |
49 bool setDeviceDialogParameters(const QVariantMap ¶meters); |
65 bool setDeviceDialogParameters(const QVariantMap ¶meters); |
50 |
66 |
51 /* Not supported */ |
67 /* Not supported. (from HbDeviceDialogInterface)*/ |
52 int deviceDialogError() const; |
68 int deviceDialogError() const; |
53 |
69 |
54 /* Closes the device dialog */ |
70 /* Closes the device dialog. (from HbDeviceDialogInterface)*/ |
55 void closeDeviceDialog(bool byClient); |
71 void closeDeviceDialog(bool byClient); |
56 |
72 |
57 /* Returns a pointer to this dialog widget */ |
73 /* Returns a pointer to this dialog widget. (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(EapMschapv2NewPwdDialog) |
97 Q_DISABLE_COPY(EapMschapv2NewPwdDialog) |
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 *mEdit1; |
102 HbLineEdit *mEdit1; |
86 |
103 |
87 /* Pointer to the line edit 2 object */ |
104 //! Pointer to the line edit 2 object |
88 HbLineEdit *mEdit2; |
105 HbLineEdit *mEdit2; |
89 |
106 |
90 /* Pointer to the password validator object */ |
107 // OWNED |
|
108 //! Pointer to the password validator object |
91 QScopedPointer<EapQtValidator> mPwdValidator; |
109 QScopedPointer<EapQtValidator> mPwdValidator; |
92 |
110 |
93 /* Pointer to the main HbTranslator */ |
111 //! Pointer to the main HbTranslator |
94 QScopedPointer<HbTranslator> mTranslator; |
112 QScopedPointer<HbTranslator> mTranslator; |
95 |
113 |
96 /* Pointer to the error message HbTranslator */ |
114 //! Pointer to the error message HbTranslator |
97 QScopedPointer<HbTranslator> mErrMsgTranslator; |
115 QScopedPointer<HbTranslator> mErrMsgTranslator; |
98 |
116 |
99 /* Tells whether close has already been called for the dialog */ |
117 //! Tells whether close has already been called for the dialog |
100 bool mClose; |
118 bool mClose; |
101 |
119 |
102 }; |
120 }; |
103 |
121 |
|
122 /*! @} */ |
104 |
123 |
105 #endif // __EAPMSCHAPV2NEWPWDDIALOG_H__ |
124 #endif // __EAPMSCHAPV2NEWPWDDIALOG_H__ |
106 |
125 |