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