homescreensrv_plat/sapi_homescreenplugin/hspsservice/src/hspspersonalisationservice.cpp
equal
deleted
inserted
replaced
345 |
345 |
346 // ----------------------------------------------------------------------------- |
346 // ----------------------------------------------------------------------------- |
347 // Restore active application configuration |
347 // Restore active application configuration |
348 // ----------------------------------------------------------------------------- |
348 // ----------------------------------------------------------------------------- |
349 EXPORT_C void CHspsPersonalisationService::RestoreActiveAppConfL( |
349 EXPORT_C void CHspsPersonalisationService::RestoreActiveAppConfL( |
350 TInt aAppUid, |
350 TInt aAppUid ) |
351 TDesC8& aConfUid ) |
351 { |
352 { |
|
353 |
|
354 const TInt confUid = HspsServiceUtilities::HexString2IntL( aConfUid ); |
|
355 |
|
356 // Set configuration state |
352 // Set configuration state |
357 const ThspsServiceCompletedMessage ret = iHspsClient->hspsRestoreActiveAppConf( |
353 const ThspsServiceCompletedMessage ret = |
358 aAppUid, |
354 iHspsClient->hspsRestoreActiveAppConf( aAppUid ); |
359 confUid ); |
|
360 |
355 |
361 if ( ret != EhspsRestoreActiveAppConfSuccess ) |
356 if ( ret != EhspsRestoreActiveAppConfSuccess ) |
362 { |
357 { |
363 User::Leave( KErrNotFound ); |
358 User::Leave( KErrNotFound ); |
364 } |
359 } |
432 // ----------------------------------------------------------------------------- |
427 // ----------------------------------------------------------------------------- |
433 EXPORT_C void CHspsPersonalisationService::RestoreConfigurationsL( |
428 EXPORT_C void CHspsPersonalisationService::RestoreConfigurationsL( |
434 const TInt aAppUid, |
429 const TInt aAppUid, |
435 const TRestore aOperation ) |
430 const TRestore aOperation ) |
436 { |
431 { |
437 ThspsRestore operation( EhspsRestoreAll ); |
432 ThspsRestore operation( EhspsRestoreAll ); |
438 if( aOperation == EDefault ) |
433 if( aOperation == EAll ) |
439 { |
434 { |
440 operation = EhspsRestoreAll; |
435 operation = EhspsRestoreAll; |
441 } |
436 } |
442 else if( aOperation == ERom ) |
437 else if( aOperation == ERom ) |
443 { |
438 { |