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