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