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