54 _LIT8( KHspsAppUid, "appUid" ); |
54 _LIT8( KHspsAppUid, "appUid" ); |
55 _LIT8( KKeyPluginId, "pluginId" ); |
55 _LIT8( KKeyPluginId, "pluginId" ); |
56 _LIT8( KKeyConfUid, "confUid" ); |
56 _LIT8( KKeyConfUid, "confUid" ); |
57 _LIT8( KInterface, "interface" ); |
57 _LIT8( KInterface, "interface" ); |
58 _LIT8( KType, "type" ); |
58 _LIT8( KType, "type" ); |
|
59 _LIT8( KCopyLogos, "copylogos" ); |
59 _LIT8( KKeyPlugins, "plugins" ); |
60 _LIT8( KKeyPlugins, "plugins" ); |
60 _LIT8( KKeyItemId, "itemId" ); |
61 _LIT8( KKeyItemId, "itemId" ); |
61 _LIT8( KKeyName, "name" ); |
62 _LIT8( KKeyName, "name" ); |
62 _LIT8( KKeyValue, "value" ); |
63 _LIT8( KKeyValue, "value" ); |
63 _LIT8( KKeyProperties, "properties" ); |
64 _LIT8( KKeyProperties, "properties" ); |
496 typeParam.SetNameAndValueL( KType, TLiwVariant(aPluginType ) ); |
499 typeParam.SetNameAndValueL( KType, TLiwVariant(aPluginType ) ); |
497 typeParam.PushL(); |
500 typeParam.PushL(); |
498 inParamList.AppendL( typeParam ); |
501 inParamList.AppendL( typeParam ); |
499 CleanupStack::Pop(&typeParam); |
502 CleanupStack::Pop(&typeParam); |
500 typeParam.Reset(); |
503 typeParam.Reset(); |
|
504 |
|
505 TLiwGenericParam logosParam; |
|
506 logosParam.SetNameAndValueL( KCopyLogos, TLiwVariant( ETrue ) ); |
|
507 logosParam.PushL(); |
|
508 inParamList.AppendL( logosParam ); |
|
509 CleanupStack::Pop(&logosParam); |
|
510 logosParam.Reset(); |
501 |
511 |
502 iHspsInterface->ExecuteCmdL( KHSPSCommandGetPlugins, inParamList, outParamList ); |
512 iHspsInterface->ExecuteCmdL( KHSPSCommandGetPlugins, inParamList, outParamList ); |
503 inParamList.Reset(); |
513 inParamList.Reset(); |
504 |
514 |
505 TInt index(0); |
515 TInt index(0); |
763 } |
783 } |
764 |
784 |
765 // --------------------------------------------------------------------------- |
785 // --------------------------------------------------------------------------- |
766 // --------------------------------------------------------------------------- |
786 // --------------------------------------------------------------------------- |
767 // |
787 // |
768 EXPORT_C TInt CHspsWrapper::RestoreActiveViewL() |
788 EXPORT_C TInt CHspsWrapper::RestoreRootL() |
|
789 { |
|
790 CLiwGenericParamList& inParamList = iServiceHandler->InParamListL(); |
|
791 CLiwGenericParamList& outParamList = iServiceHandler->OutParamListL(); |
|
792 |
|
793 // Compose Liw message |
|
794 TLiwGenericParam restoreTypeParam; |
|
795 restoreTypeParam.SetNameAndValueL( KRestore, TLiwVariant( KAll ) ); |
|
796 restoreTypeParam.PushL(); |
|
797 inParamList.AppendL( restoreTypeParam ); |
|
798 CleanupStack::Pop( &restoreTypeParam ); |
|
799 restoreTypeParam.Reset(); |
|
800 |
|
801 iHspsInterface->ExecuteCmdL( KHSPSCommandRestoreConfigurations, |
|
802 inParamList, |
|
803 outParamList ); |
|
804 |
|
805 inParamList.Reset(); |
|
806 |
|
807 // check success |
|
808 const TLiwGenericParam* outParam = NULL; |
|
809 TInt pos(0); |
|
810 outParam = outParamList.FindFirst( pos, KOutKeyStatus ); |
|
811 TInt status(KErrGeneral); |
|
812 |
|
813 if ( outParam ) |
|
814 { |
|
815 status = outParam->Value().AsTInt32(); |
|
816 } |
|
817 outParamList.Reset(); |
|
818 return status; |
|
819 } |
|
820 |
|
821 // --------------------------------------------------------------------------- |
|
822 // --------------------------------------------------------------------------- |
|
823 // |
|
824 EXPORT_C TInt CHspsWrapper::RestoreDefaultConfL() |
769 { |
825 { |
770 CLiwGenericParamList& inParamList = iServiceHandler->InParamListL(); |
826 CLiwGenericParamList& inParamList = iServiceHandler->InParamListL(); |
771 CLiwGenericParamList& outParamList = iServiceHandler->OutParamListL(); |
827 CLiwGenericParamList& outParamList = iServiceHandler->OutParamListL(); |
772 |
828 |
773 // Compose Liw message |
829 // Compose Liw message |
774 TLiwGenericParam restoreTypeParam; |
830 TLiwGenericParam restoreTypeParam; |
775 restoreTypeParam.SetNameAndValueL( KRestore, TLiwVariant( KActive ) ); |
831 restoreTypeParam.SetNameAndValueL( KRestore, TLiwVariant( KActive ) ); |
776 restoreTypeParam.PushL(); |
|
777 inParamList.AppendL( restoreTypeParam ); |
|
778 CleanupStack::Pop( &restoreTypeParam ); |
|
779 restoreTypeParam.Reset(); |
|
780 |
|
781 iHspsInterface->ExecuteCmdL( KHSPSCommandRestoreConfigurations, |
|
782 inParamList, |
|
783 outParamList ); |
|
784 |
|
785 inParamList.Reset(); |
|
786 |
|
787 // check success |
|
788 const TLiwGenericParam* outParam = NULL; |
|
789 TInt pos(0); |
|
790 outParam = outParamList.FindFirst( pos, KOutKeyStatus ); |
|
791 TInt status(KErrGeneral); |
|
792 |
|
793 if ( outParam ) |
|
794 { |
|
795 status = outParam->Value().AsTInt32(); |
|
796 } |
|
797 outParamList.Reset(); |
|
798 return status; |
|
799 } |
|
800 |
|
801 // --------------------------------------------------------------------------- |
|
802 // --------------------------------------------------------------------------- |
|
803 // |
|
804 EXPORT_C TInt CHspsWrapper::RestoreRootL() |
|
805 { |
|
806 CLiwGenericParamList& inParamList = iServiceHandler->InParamListL(); |
|
807 CLiwGenericParamList& outParamList = iServiceHandler->OutParamListL(); |
|
808 |
|
809 // Compose Liw message |
|
810 TLiwGenericParam restoreTypeParam; |
|
811 restoreTypeParam.SetNameAndValueL( KRestore, TLiwVariant( KAll ) ); |
|
812 restoreTypeParam.PushL(); |
832 restoreTypeParam.PushL(); |
813 inParamList.AppendL( restoreTypeParam ); |
833 inParamList.AppendL( restoreTypeParam ); |
814 CleanupStack::Pop( &restoreTypeParam ); |
834 CleanupStack::Pop( &restoreTypeParam ); |
815 restoreTypeParam.Reset(); |
835 restoreTypeParam.Reset(); |
816 |
836 |