34
|
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 |
*
|
36
|
14 |
* Description: EAP-FAST PAC Store Password Query Dialog
|
34
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
/*
|
36
|
19 |
* %version: 4 %
|
34
|
20 |
*/
|
|
21 |
|
|
22 |
#ifndef __EAPFASTPACSTOREPWQUERYDIALOG_H__
|
|
23 |
#define __EAPFASTPACSTOREPWQUERYDIALOG_H__
|
|
24 |
|
36
|
25 |
// System includes
|
34
|
26 |
#include <HbInputDialog>
|
|
27 |
#include <hbdevicedialoginterface.h>
|
|
28 |
|
36
|
29 |
// User includes
|
|
30 |
|
|
31 |
// Forward declarations
|
34
|
32 |
class HbTranslator;
|
|
33 |
class EapQtValidator;
|
|
34 |
|
36
|
35 |
// External data types
|
|
36 |
|
|
37 |
// Constants
|
|
38 |
|
|
39 |
/*!
|
|
40 |
@addtogroup group_eap_fast_pac_store_pwd_query_dialog
|
|
41 |
@{
|
|
42 |
*/
|
|
43 |
|
|
44 |
// Class declaration
|
|
45 |
|
34
|
46 |
class EapFastPacStorePwQueryDialog: public HbInputDialog, public HbDeviceDialogInterface
|
|
47 |
{
|
|
48 |
Q_OBJECT
|
|
49 |
|
|
50 |
public:
|
|
51 |
/* Constructor */
|
|
52 |
EapFastPacStorePwQueryDialog(const QVariantMap ¶meters);
|
|
53 |
/* Destructor */
|
|
54 |
~EapFastPacStorePwQueryDialog();
|
|
55 |
|
36
|
56 |
/* Function creates the actual dialog widget. */
|
|
57 |
void createDialog();
|
34
|
58 |
|
|
59 |
/* Device dialog parameters to be set while dialog is displayed.
|
36
|
60 |
* Not supported. (from HbDeviceDialogInterface)
|
34
|
61 |
*/
|
|
62 |
bool setDeviceDialogParameters(const QVariantMap ¶meters);
|
|
63 |
|
36
|
64 |
/* Not supported. (from HbDeviceDialogInterface) */
|
34
|
65 |
int deviceDialogError() const;
|
|
66 |
|
36
|
67 |
/* Closes the device dialog. (from HbDeviceDialogInterface)*/
|
34
|
68 |
void closeDeviceDialog(bool byClient);
|
|
69 |
|
36
|
70 |
/* Returns a pointer to this dialog widget.
|
|
71 |
(from HbDeviceDialogInterface) */
|
34
|
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 Cancel Action button's triggered signal */
|
|
86 |
void cancelPressed();
|
|
87 |
|
|
88 |
/* Slot that is mapped to the signal that indicates to closing of the dialog */
|
|
89 |
void closingDialog();
|
|
90 |
|
|
91 |
private:
|
|
92 |
|
|
93 |
bool validate() const;
|
|
94 |
|
|
95 |
Q_DISABLE_COPY(EapFastPacStorePwQueryDialog)
|
|
96 |
|
36
|
97 |
private: // data
|
|
98 |
// NOT OWNED
|
|
99 |
//! Pointer to the line edit object
|
34
|
100 |
HbLineEdit *mEdit;
|
|
101 |
|
36
|
102 |
// OWNED
|
|
103 |
//! Pointer to the password validator object
|
34
|
104 |
QScopedPointer<EapQtValidator> mPwdValidator;
|
|
105 |
|
36
|
106 |
//! Pointer to the HbTranslator
|
34
|
107 |
QScopedPointer<HbTranslator> mTranslator;
|
|
108 |
|
36
|
109 |
//! Pointer to the error message HbTranslator
|
34
|
110 |
QScopedPointer<HbTranslator> mErrMsgTranslator;
|
|
111 |
|
36
|
112 |
//! Tells whether close has already been called for the dialog
|
34
|
113 |
bool mClose;
|
|
114 |
|
|
115 |
};
|
|
116 |
|
36
|
117 |
/*! @} */
|
34
|
118 |
|
|
119 |
#endif // __EAPFASTPACSTOREPWQUERYDIALOG_H__
|
|
120 |
|