diff -r d721605b30d0 -r 89165693e770 idlehomescreen/sapiwrapper/hspswrapper/src/hspswrapper.cpp --- a/idlehomescreen/sapiwrapper/hspswrapper/src/hspswrapper.cpp Mon Jun 21 15:27:11 2010 +0300 +++ b/idlehomescreen/sapiwrapper/hspswrapper/src/hspswrapper.cpp Thu Jul 15 18:25:29 2010 +0300 @@ -69,6 +69,7 @@ _LIT8( KHSPSCommandRestoreConfigurations, "RestoreConfigurations" ); _LIT8( KRestore, "restore" ); _LIT8( KRestoreDefault, "default" ); +_LIT8( KRestoreAll, "all" ); _LIT8( KRestoreRom, "rom" ); _LIT8( KRestoreViews, "views" ); _LIT8( K0, "0" ); @@ -858,6 +859,42 @@ // --------------------------------------------------------------------------- // --------------------------------------------------------------------------- // +EXPORT_C TInt CHspsWrapper::RestoreAllConfL() + { + CLiwGenericParamList& inParamList = iServiceHandler->InParamListL(); + CLiwGenericParamList& outParamList = iServiceHandler->OutParamListL(); + + // Compose Liw message + TLiwGenericParam restoreTypeParam; + restoreTypeParam.SetNameAndValueL( KRestore, TLiwVariant( KRestoreAll ) ); + restoreTypeParam.PushL(); + inParamList.AppendL( restoreTypeParam ); + CleanupStack::Pop( &restoreTypeParam ); + restoreTypeParam.Reset(); + + iHspsInterface->ExecuteCmdL( KHSPSCommandRestoreConfigurations, + inParamList, + outParamList ); + + inParamList.Reset(); + + // check success + const TLiwGenericParam* outParam = NULL; + TInt pos(0); + outParam = outParamList.FindFirst( pos, KOutKeyStatus ); + TInt status(KErrGeneral); + + if ( outParam ) + { + status = outParam->Value().AsTInt32(); + } + outParamList.Reset(); + return status; + } + +// --------------------------------------------------------------------------- +// --------------------------------------------------------------------------- +// EXPORT_C TInt CHspsWrapper::RestoreDefaultConfL() { CLiwGenericParamList& inParamList = iServiceHandler->InParamListL();