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