equal
deleted
inserted
replaced
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
326 iParent.PhysicalLinksMgr().SetSimplePairingDebugMode(static_cast<TBool>(debugMode)); |
326 iParent.PhysicalLinksMgr().SetSimplePairingDebugMode(static_cast<TBool>(debugMode)); |
327 } |
327 } |
328 } |
328 } |
329 } |
329 } |
330 |
330 |
331 |
331 //----------------- |
|
332 |
|
333 CPageScanParametersSubscriber* CPageScanParametersSubscriber::NewL(CLinkMgrProtocol& aLinkMgrProtocol) |
|
334 { |
|
335 CPageScanParametersSubscriber* s = new(ELeave) CPageScanParametersSubscriber(aLinkMgrProtocol); |
|
336 CleanupStack::PushL(s); |
|
337 s->ConstructL(KPropertyKeyBluetoothSetPageScanParameters); |
|
338 CleanupStack::Pop(s); |
|
339 return s; |
|
340 } |
|
341 |
|
342 CPageScanParametersSubscriber::CPageScanParametersSubscriber(CLinkMgrProtocol& aLinkMgrProtocol) |
|
343 : CSubscriber(aLinkMgrProtocol) |
|
344 { |
|
345 } |
|
346 |
|
347 void CPageScanParametersSubscriber::RunL() |
|
348 { |
|
349 //Get this value first before we subscribe again |
|
350 TInt ret = iStatus.Int(); |
|
351 Subscribe(); |
|
352 |
|
353 if(ret==KErrNone) |
|
354 { |
|
355 TInt pageScanParameters; |
|
356 ret = iProperty.Get(pageScanParameters); |
|
357 if(ret == KErrNone) |
|
358 { |
|
359 iParent.SetPageScanParameters(static_cast<TPageScanParameterSettings>(pageScanParameters)); |
|
360 } |
|
361 } |
|
362 } |