|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: EAP-MSCHAPv2 New Password Input Dialog |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 3 % |
|
20 */ |
|
21 |
|
22 #ifndef __EAPMSCHAPV2NEWPWDDIALOG_H__ |
|
23 #define __EAPMSCHAPV2NEWPWDDIALOG_H__ |
|
24 |
|
25 #include <HbInputDialog> |
|
26 #include <hbdevicedialoginterface.h> |
|
27 |
|
28 class EapQtValidator; |
|
29 class HbTranslator; |
|
30 class HbLineEdit; |
|
31 class HbAction; |
|
32 |
|
33 class EapMschapv2NewPwdDialog: public HbInputDialog, public HbDeviceDialogInterface |
|
34 { |
|
35 Q_OBJECT |
|
36 |
|
37 public: |
|
38 /* Constructor */ |
|
39 EapMschapv2NewPwdDialog(const QVariantMap ¶meters); |
|
40 /* Destructor */ |
|
41 ~EapMschapv2NewPwdDialog(); |
|
42 |
|
43 /* Function creates the actual dialog widget */ |
|
44 void createDialog( const QVariantMap ¶meters ); |
|
45 |
|
46 /* Device dialog parameters to be set while dialog is displayed. |
|
47 * Not supported. |
|
48 */ |
|
49 bool setDeviceDialogParameters(const QVariantMap ¶meters); |
|
50 |
|
51 /* Not supported */ |
|
52 int deviceDialogError() const; |
|
53 |
|
54 /* Closes the device dialog */ |
|
55 void closeDeviceDialog(bool byClient); |
|
56 |
|
57 /* Returns a pointer to this dialog widget */ |
|
58 HbPopup *deviceDialogWidget() const; |
|
59 |
|
60 signals: |
|
61 /* Signal is emitted when the dialog is closed */ |
|
62 void deviceDialogClosed(); |
|
63 |
|
64 /* Data is emitted in QVariantMap when Ok Action button is selected */ |
|
65 void deviceDialogData(QVariantMap data); |
|
66 |
|
67 private slots: |
|
68 /* Slot that is mapped to the Ok Action button's triggered signal */ |
|
69 void okPressed(); |
|
70 |
|
71 /* Slot that is mapped to the Cancel Action button's triggered signal */ |
|
72 void cancelPressed(); |
|
73 |
|
74 /* Slot that is mapped to the signal that indicates to closing of the dialog */ |
|
75 void closingDialog(); |
|
76 |
|
77 private: |
|
78 |
|
79 bool validate() const; |
|
80 |
|
81 Q_DISABLE_COPY(EapMschapv2NewPwdDialog) |
|
82 |
|
83 private: |
|
84 /* Pointer to the line edit 1 object */ |
|
85 HbLineEdit *mEdit1; |
|
86 |
|
87 /* Pointer to the line edit 2 object */ |
|
88 HbLineEdit *mEdit2; |
|
89 |
|
90 /* Pointer to the password validator object */ |
|
91 QScopedPointer<EapQtValidator> mPwdValidator; |
|
92 |
|
93 /* Pointer to the main HbTranslator */ |
|
94 QScopedPointer<HbTranslator> mTranslator; |
|
95 |
|
96 /* Pointer to the error message HbTranslator */ |
|
97 QScopedPointer<HbTranslator> mErrMsgTranslator; |
|
98 |
|
99 /* Tells whether close has already been called for the dialog */ |
|
100 bool mClose; |
|
101 |
|
102 }; |
|
103 |
|
104 |
|
105 #endif // __EAPMSCHAPV2NEWPWDDIALOG_H__ |
|
106 |