equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 - 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". |
30 { |
30 { |
31 mWlanMgmtClient = wlanMgmtClient; |
31 mWlanMgmtClient = wlanMgmtClient; |
32 } |
32 } |
33 |
33 |
34 |
34 |
35 void WlanMgmtClientContext::setRunProtectedSetup(const QString &ssid, int completionCode) |
35 void WlanMgmtClientContext::setRunProtectedSetup( |
|
36 const QString &ssid, |
|
37 int completionCode, |
|
38 bool pushButtonMode ) |
36 { |
39 { |
|
40 mWlanMgmtClient->iSsid.SetLength(0); |
37 mWlanMgmtClient->iSsid.Copy((unsigned char*)ssid.toAscii().constData()); |
41 mWlanMgmtClient->iSsid.Copy((unsigned char*)ssid.toAscii().constData()); |
38 mWlanMgmtClient->iCompletionCode = completionCode; |
42 mWlanMgmtClient->iCompletionCode = completionCode; |
|
43 mWlanMgmtClient->iPushButtonMode = pushButtonMode ? ETrue : EFalse; |
39 } |
44 } |
40 |
45 |
41 void WlanMgmtClientContext::appendResult( |
46 void WlanMgmtClientContext::appendResult( |
42 const QString &ssid, |
47 const QString &ssid, |
43 int securityMode, |
48 int securityMode, |