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: |
|
46 explicit WlanWizardPageSecurityMode(WlanWizardPrivate* parent); |
|
47 virtual ~WlanWizardPageSecurityMode(); |
|
48 |
|
49 public: |
|
50 HbWidget* initializePage(); |
|
51 int nextId(bool &removeFromStack) const; |
|
52 bool showPage(); |
|
53 |
|
54 signals: |
|
55 |
|
56 public slots: |
|
57 |
|
58 protected: |
|
59 |
|
60 protected slots: |
|
61 |
|
62 private: |
|
63 Q_DISABLE_COPY(WlanWizardPageSecurityMode) |
|
64 void populateSecModeList(); |
|
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); |
|
75 |
|
76 private: |
|
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 * True, if a mode has been selected. False otherwise. |
|
99 */ |
|
100 bool mValid; |
|
101 |
|
102 /*! |
|
103 * List of sequrity modes. This list is tied to the radio buttons during |
|
104 * the initialization of the page. |
|
105 */ |
|
106 QList<int> mSecModes; |
|
107 |
|
108 /*! |
|
109 * List of page identifiers. This list is tied to the radio buttons during |
|
110 * the initialization of the page. |
|
111 */ |
|
112 QList<int> mPageIds; |
|
113 |
|
114 /*! |
|
115 * List of password usage. This list is tied to the radio buttons during |
|
116 * the initialization of the page. True, if password is to be queried, |
|
117 * false otherwise |
|
118 */ |
|
119 QList<bool> mUsePsk; |
|
120 }; |
|
121 |
|
122 /*! @} */ |
|
123 |
|
124 #endif |
|