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