63 _LIT8( KKeyProperties, "properties" ); |
63 _LIT8( KKeyProperties, "properties" ); |
64 _LIT8( KKeySettings, "settings" ); |
64 _LIT8( KKeySettings, "settings" ); |
65 _LIT8( KIndex, "position" ); |
65 _LIT8( KIndex, "position" ); |
66 _LIT8( KConfState, "state" ); |
66 _LIT8( KConfState, "state" ); |
67 _LIT8( KRequestNotification, "RequestNotification" ); |
67 _LIT8( KRequestNotification, "RequestNotification" ); |
|
68 _LIT8( KHSPSCommandRestoreConfigurations, "RestoreConfigurations" ); |
|
69 _LIT8( KRestore, "restore" ); |
|
70 _LIT8( KActive, "active" ); |
|
71 _LIT8( KAll, "all" ); |
68 |
72 |
69 namespace hspswrapper{ |
73 namespace hspswrapper{ |
70 |
74 |
71 // --------------------------------------------------------------------------- |
75 // --------------------------------------------------------------------------- |
72 // --------------------------------------------------------------------------- |
76 // --------------------------------------------------------------------------- |
752 status = outParam->Value().AsTInt32(); |
756 status = outParam->Value().AsTInt32(); |
753 } |
757 } |
754 outParamList.Reset(); |
758 outParamList.Reset(); |
755 return status; |
759 return status; |
756 } |
760 } |
757 |
761 |
|
762 // --------------------------------------------------------------------------- |
|
763 // --------------------------------------------------------------------------- |
|
764 // |
|
765 EXPORT_C TInt CHspsWrapper::RestoreActiveViewL() |
|
766 { |
|
767 CLiwGenericParamList& inParamList = iServiceHandler->InParamListL(); |
|
768 CLiwGenericParamList& outParamList = iServiceHandler->OutParamListL(); |
|
769 |
|
770 // Compose Liw message |
|
771 TLiwGenericParam restoreTypeParam; |
|
772 restoreTypeParam.SetNameAndValueL( KRestore, TLiwVariant( KActive ) ); |
|
773 restoreTypeParam.PushL(); |
|
774 inParamList.AppendL( restoreTypeParam ); |
|
775 CleanupStack::Pop( &restoreTypeParam ); |
|
776 restoreTypeParam.Reset(); |
|
777 |
|
778 iHspsInterface->ExecuteCmdL( KHSPSCommandRestoreConfigurations, |
|
779 inParamList, |
|
780 outParamList ); |
|
781 |
|
782 inParamList.Reset(); |
|
783 |
|
784 // check success |
|
785 const TLiwGenericParam* outParam = NULL; |
|
786 TInt pos(0); |
|
787 outParam = outParamList.FindFirst( pos, KOutKeyStatus ); |
|
788 TInt status(KErrGeneral); |
|
789 |
|
790 if ( outParam ) |
|
791 { |
|
792 status = outParam->Value().AsTInt32(); |
|
793 } |
|
794 outParamList.Reset(); |
|
795 return status; |
|
796 } |
|
797 |
|
798 // --------------------------------------------------------------------------- |
|
799 // --------------------------------------------------------------------------- |
|
800 // |
|
801 EXPORT_C TInt CHspsWrapper::RestoreRootL() |
|
802 { |
|
803 CLiwGenericParamList& inParamList = iServiceHandler->InParamListL(); |
|
804 CLiwGenericParamList& outParamList = iServiceHandler->OutParamListL(); |
|
805 |
|
806 // Compose Liw message |
|
807 TLiwGenericParam restoreTypeParam; |
|
808 restoreTypeParam.SetNameAndValueL( KRestore, TLiwVariant( KAll ) ); |
|
809 restoreTypeParam.PushL(); |
|
810 inParamList.AppendL( restoreTypeParam ); |
|
811 CleanupStack::Pop( &restoreTypeParam ); |
|
812 restoreTypeParam.Reset(); |
|
813 |
|
814 iHspsInterface->ExecuteCmdL( KHSPSCommandRestoreConfigurations, |
|
815 inParamList, |
|
816 outParamList ); |
|
817 |
|
818 inParamList.Reset(); |
|
819 |
|
820 // check success |
|
821 const TLiwGenericParam* outParam = NULL; |
|
822 TInt pos(0); |
|
823 outParam = outParamList.FindFirst( pos, KOutKeyStatus ); |
|
824 TInt status(KErrGeneral); |
|
825 |
|
826 if ( outParam ) |
|
827 { |
|
828 status = outParam->Value().AsTInt32(); |
|
829 } |
|
830 outParamList.Reset(); |
|
831 return status; |
|
832 } |
|
833 |
758 // --------------------------------------------------------------------------- |
834 // --------------------------------------------------------------------------- |
759 // --------------------------------------------------------------------------- |
835 // --------------------------------------------------------------------------- |
760 // |
836 // |
761 EXPORT_C TInt CHspsWrapper::MovePluginsL( |
837 EXPORT_C TInt CHspsWrapper::MovePluginsL( |
762 const TDesC8& aConfId, |
838 const TDesC8& aConfId, |