equal
deleted
inserted
replaced
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2006-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". |
404 BlockAsync(aSession, aMessage); |
404 BlockAsync(aSession, aMessage); |
405 state = static_cast<TBTPowerState>(aMessage.Int3()); |
405 state = static_cast<TBTPowerState>(aMessage.Int3()); |
406 err = iHCI.SetPower(state, NULL); |
406 err = iHCI.SetPower(state, NULL); |
407 if(err != KErrNone) |
407 if(err != KErrNone) |
408 { |
408 { |
409 aMessage.Complete(err); |
409 CompleteAsyncTask(err); |
410 return; |
410 return; |
411 } |
411 } |
412 break; |
412 break; |
413 |
413 |
414 case EHCIGetPower: |
414 case EHCIGetPower: |