equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 * |
8 * |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * WLAN Wizard: API. |
15 * WLAN Wizard: API. |
16 * |
16 */ |
17 */ |
|
18 |
17 |
19 // System includes |
18 // System includes |
20 |
19 |
21 // User includes |
20 // User includes |
22 #include "wlanwizard.h" |
21 #include "wlanwizard.h" |
29 Example usage: |
28 Example usage: |
30 \code |
29 \code |
31 MyClass::createWizard() { |
30 MyClass::createWizard() { |
32 mWizard = new WlanWizard(mainWindow()); |
31 mWizard = new WlanWizard(mainWindow()); |
33 connect( |
32 connect( |
34 mWizard, SIGNAL(finished(int, bool)), |
33 mWizard, |
35 this, SLOT(finished(int, bool))); |
34 SIGNAL(finished(int, bool)), |
|
35 this, |
|
36 SLOT(finished(int, bool))); |
36 connect(mWizard, SIGNAL(cancelled()), this, SLOT(cancelled())); |
37 connect(mWizard, SIGNAL(cancelled()), this, SLOT(cancelled())); |
37 |
38 |
38 // If client know the parameters for WLAN Access Point call following |
39 // If client know the parameters for WLAN Access Point call following |
39 mWizard->setParameters( |
40 mWizard->setParameters( |
40 "MySSid", |
41 "MySSid", |
41 CmManagerShim::Infra, |
42 CmManagerShim::Infra, |
42 CmManagerShim::WlanSecModeWpa, |
43 CmManagerShim::WlanSecModeWpa, |
43 true, // WPA-PSK |
44 true, // WPA-PSK |
44 false, // Non-Hidden |
45 false); // Non-Wifi Protected Setup |
45 false ); // Non-Wifi Protected Setup |
|
46 |
46 |
47 // and execute wizard |
47 // and execute wizard |
48 mWizard->show(); |
48 mWizard->show(); |
49 } |
49 } |
50 |
50 |
139 |
139 |
140 @param [in] ssid The name of WLAN network (ssid), max length 32 characters. |
140 @param [in] ssid The name of WLAN network (ssid), max length 32 characters. |
141 @param [in] networkMode Network mode of known access point |
141 @param [in] networkMode Network mode of known access point |
142 @param [in] securityMode Security mode of known access point |
142 @param [in] securityMode Security mode of known access point |
143 @param [in] usePsk used only with WPA or WPA2 \a securityMode |
143 @param [in] usePsk used only with WPA or WPA2 \a securityMode |
144 @param [in] hidden if true WLAN is hidden. |
|
145 @param [in] wps is Wifi Protected Setup supported? |
144 @param [in] wps is Wifi Protected Setup supported? |
146 */ |
145 */ |
147 void WlanWizard::setParameters( |
146 void WlanWizard::setParameters( |
148 const QString &ssid, |
147 const QString &ssid, |
149 int networkMode, |
148 int networkMode, |
150 int securityMode, |
149 int securityMode, |
151 bool usePsk, |
150 bool usePsk, |
152 bool hidden, |
|
153 bool wps) |
151 bool wps) |
154 { |
152 { |
155 d_ptr->setParameters(ssid, networkMode, securityMode, usePsk, hidden, wps); |
153 d_ptr->setParameters(ssid, networkMode, securityMode, usePsk, wps); |
156 } |
154 } |
157 |
155 |
158 /*! |
156 /*! |
159 Executes the wizard and shows the first page. |
157 Executes the wizard and shows the first page. |
160 |
158 |