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