equal
deleted
inserted
replaced
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2009-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". |
276 void CTestRSsmStateManager::RunL(CActive* aActive, TInt aIndex) |
276 void CTestRSsmStateManager::RunL(CActive* aActive, TInt aIndex) |
277 { |
277 { |
278 INFO_PRINTF1(_L("RSsmStateManager->RunL()is called")); |
278 INFO_PRINTF1(_L("RSsmStateManager->RunL()is called")); |
279 if (aActive == iActiveNotifyOnChange) |
279 if (aActive == iActiveNotifyOnChange) |
280 { |
280 { |
281 TInt err=iActiveNotifyOnChange->iStatus.Int(); |
281 TInt err=iActiveNotifyOnChange->iStatus.Int(); |
282 if ( err != KErrNone ) |
282 if ( err != KErrNone ) |
283 { |
283 { |
284 ERR_PRINTF2(_L("RunL Error %d"), err); |
284 ERR_PRINTF2(_L("RunL Error %d"), err); |
285 SetAsyncError(aIndex, err); |
285 SetAsyncError(aIndex, err); |
286 } |
286 } |
362 aSubState = ESsmNormalSubState; |
362 aSubState = ESsmNormalSubState; |
363 } |
363 } |
364 else if(!(aGetSubState.Compare(_L("ESsmNormalRfOnSubState")))) |
364 else if(!(aGetSubState.Compare(_L("ESsmNormalRfOnSubState")))) |
365 { |
365 { |
366 aSubState = ESsmNormalRfOnSubState; |
366 aSubState = ESsmNormalRfOnSubState; |
367 } |
367 } |
|
368 else if(!(aGetSubState.Compare(_L("ESsmShutdownSubStateCritical")))) |
|
369 { |
|
370 aSubState = ESsmShutdownSubStateCritical; |
|
371 } |
|
372 else if(!(aGetSubState.Compare(_L("ESsmShutdownSubStateNonCritical")))) |
|
373 { |
|
374 aSubState = ESsmShutdownSubStateNonCritical; |
|
375 } |
|
376 else if(!(aGetSubState.Compare(_L("ESsmShutdownSubStatePowerOff")))) |
|
377 { |
|
378 aSubState = ESsmShutdownSubStatePowerOff; |
|
379 } |
|
380 else if(!(aGetSubState.Compare(_L("ESsmShutdownSubStateReStart")))) |
|
381 { |
|
382 aSubState = ESsmShutdownSubStateReStart; |
|
383 } |
|
384 else if(!(aGetSubState.Compare(_L("ESsmFailSubStatePowerOff")))) |
|
385 { |
|
386 aSubState = ESsmFailSubStatePowerOff; |
|
387 } |
|
388 else if(!(aGetSubState.Compare(_L("KSsmAnySubState")))) |
|
389 { |
|
390 aSubState = KSsmAnySubState; |
|
391 } |
368 else |
392 else |
369 { |
393 { |
370 ret = EFalse; |
394 ret = EFalse; |
371 } |
395 } |
372 return ret; |
396 return ret; |