31
|
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 |
* WLAN Wizard Page: Security mode selection
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
#ifndef WLANWIZARDPAGESECURITYMODE_H
|
|
20 |
#define WLANWIZARDPAGESECURITYMODE_H
|
|
21 |
|
|
22 |
// System includes
|
|
23 |
|
|
24 |
// User includes
|
|
25 |
#include "wlanwizardpageinternal.h"
|
|
26 |
|
|
27 |
// Forward declarations
|
|
28 |
class HbRadioButtonList;
|
|
29 |
class HbLabel;
|
|
30 |
class WlanWizardPrivate;
|
|
31 |
class HbDocumentLoader;
|
|
32 |
|
|
33 |
// External data types
|
|
34 |
|
|
35 |
// Constants
|
|
36 |
|
|
37 |
/*!
|
|
38 |
* @addtogroup group_wlan_wizard
|
|
39 |
* @{
|
|
40 |
*/
|
|
41 |
|
|
42 |
class WlanWizardPageSecurityMode: public WlanWizardPageInternal
|
|
43 |
{
|
|
44 |
Q_OBJECT
|
|
45 |
public:
|
39
|
46 |
explicit WlanWizardPageSecurityMode(WlanWizardPrivate* parent);
|
|
47 |
virtual ~WlanWizardPageSecurityMode();
|
31
|
48 |
|
39
|
49 |
public:
|
31
|
50 |
HbWidget* initializePage();
|
|
51 |
int nextId(bool &removeFromStack) const;
|
|
52 |
bool showPage();
|
|
53 |
|
39
|
54 |
signals:
|
|
55 |
|
|
56 |
public slots:
|
|
57 |
|
|
58 |
protected:
|
|
59 |
|
|
60 |
protected slots:
|
31
|
61 |
|
|
62 |
private:
|
39
|
63 |
Q_DISABLE_COPY(WlanWizardPageSecurityMode)
|
61
|
64 |
void populateSecModeList(QStringList &list);
|
39
|
65 |
void addToList(
|
|
66 |
QStringList &list,
|
|
67 |
const QString &item,
|
|
68 |
int mode,
|
|
69 |
int page,
|
|
70 |
bool psk);
|
|
71 |
|
|
72 |
private slots:
|
|
73 |
void itemSelected();
|
|
74 |
void loadDocmlSection(Qt::Orientation orientation);
|
31
|
75 |
|
39
|
76 |
private:
|
31
|
77 |
/*!
|
|
78 |
* Pointer to the view.
|
|
79 |
*/
|
|
80 |
HbWidget *mWidget;
|
|
81 |
|
|
82 |
/*!
|
|
83 |
* Pointer to the radio button list object.
|
|
84 |
*/
|
|
85 |
HbRadioButtonList *mList;
|
|
86 |
|
|
87 |
/*!
|
|
88 |
* Pointer to the label object.
|
|
89 |
*/
|
|
90 |
HbLabel *mLabel;
|
|
91 |
|
|
92 |
/*!
|
|
93 |
* Pointer to document loader object.
|
|
94 |
*/
|
|
95 |
HbDocumentLoader *mLoader;
|
|
96 |
|
|
97 |
/*!
|
|
98 |
* List of sequrity modes. This list is tied to the radio buttons during
|
|
99 |
* the initialization of the page.
|
|
100 |
*/
|
|
101 |
QList<int> mSecModes;
|
|
102 |
|
|
103 |
/*!
|
|
104 |
* List of page identifiers. This list is tied to the radio buttons during
|
|
105 |
* the initialization of the page.
|
|
106 |
*/
|
|
107 |
QList<int> mPageIds;
|
|
108 |
|
|
109 |
/*!
|
|
110 |
* List of password usage. This list is tied to the radio buttons during
|
|
111 |
* the initialization of the page. True, if password is to be queried,
|
|
112 |
* false otherwise
|
|
113 |
*/
|
|
114 |
QList<bool> mUsePsk;
|
|
115 |
};
|
|
116 |
|
|
117 |
/*! @} */
|
|
118 |
|
|
119 |
#endif
|