|
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 password expired note Dialog |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 2 % |
|
20 */ |
|
21 |
|
22 #ifndef __EAPMSCHAPV2PWDEXPNOTEDIALOG_H__ |
|
23 #define __EAPMSCHAPV2PWDEXPNOTEDIALOG_H__ |
|
24 |
|
25 |
|
26 #include <HbMessageBox> |
|
27 #include <hbdevicedialoginterface.h> |
|
28 |
|
29 class HbTranslator; |
|
30 |
|
31 class EapMschapv2PwdExpNoteDialog: public HbMessageBox, public HbDeviceDialogInterface |
|
32 { |
|
33 Q_OBJECT |
|
34 |
|
35 public: |
|
36 /* Constructor */ |
|
37 EapMschapv2PwdExpNoteDialog(const QVariantMap ¶meters); |
|
38 /* Destructor */ |
|
39 ~EapMschapv2PwdExpNoteDialog(); |
|
40 |
|
41 /* Function creates the actual dialog widget */ |
|
42 void createDialog(const QVariantMap ¶meters ); |
|
43 |
|
44 /* Device dialog parameters to be set while dialog is displayed. |
|
45 * Not supported. |
|
46 */ |
|
47 bool setDeviceDialogParameters(const QVariantMap ¶meters); |
|
48 |
|
49 /* Not supported */ |
|
50 int deviceDialogError() const; |
|
51 |
|
52 /* Closes the device dialog */ |
|
53 void closeDeviceDialog(bool byClient); |
|
54 |
|
55 /* Returns a pointer to this dialog widget */ |
|
56 HbPopup *deviceDialogWidget() const; |
|
57 |
|
58 signals: |
|
59 /* Signal is emitted when the dialog is closed */ |
|
60 void deviceDialogClosed(); |
|
61 |
|
62 /* Data is emitted in QVariantMap when Ok Action button is selected */ |
|
63 void deviceDialogData(QVariantMap data); |
|
64 |
|
65 private slots: |
|
66 /* Slot that is mapped to the Ok Action button's triggered signal */ |
|
67 void okPressed(); |
|
68 |
|
69 /* Slot that is mapped to the signal that indicates to closing of the dialog */ |
|
70 void closingDialog(); |
|
71 |
|
72 private: |
|
73 |
|
74 Q_DISABLE_COPY(EapMschapv2PwdExpNoteDialog) |
|
75 |
|
76 private: |
|
77 |
|
78 /* Pointer to the HbTranslator */ |
|
79 QScopedPointer<HbTranslator> mTranslator; |
|
80 |
|
81 /* Tells whether Ok Action has already been pressed */ |
|
82 bool mOkActionPressed; |
|
83 }; |
|
84 |
|
85 #endif // __EAPMSCHAPV2PWDEXPNOTEDIALOG_H__ |