diff -r 5cc91383ab1e -r 7333d7932ef7 ncdengine/provider/deviceinteraction/inc/ncdinstallationserviceimpl.h --- a/ncdengine/provider/deviceinteraction/inc/ncdinstallationserviceimpl.h Thu Aug 19 10:02:49 2010 +0300 +++ b/ncdengine/provider/deviceinteraction/inc/ncdinstallationserviceimpl.h Tue Aug 31 15:21:33 2010 +0300 @@ -26,8 +26,8 @@ #include #include #include -#include -#include +#include +#include #include "ncdinstallationservice.h" #include "ncditempurpose.h" @@ -36,24 +36,6 @@ #include "ncdwidgetregistrydata.h" - -/** - * New Java registry API was introduced in 3.2. We start using it - * from 5.0 onwards because it seems that some 3.2 devices don't support - * it entirely - */ -#if defined( __SERIES60_30__ ) || defined( __SERIES60_31__ ) || defined ( __S60_32__ ) - #define USE_OLD_JAVA_API - class MJavaRegistrySuiteEntry; - class MJavaRegistry; -#else - namespace Java - { - class CJavaRegistry; - } -#endif - - class CDocumentHandler; class MNcdInstallationServiceObserver; @@ -139,7 +121,7 @@ void SilentInstallL( RFile& aFile, const TDesC& aMimeType, const TNcdItemPurpose& aPurpose, - const SwiUI::TInstallOptionsPckg& aInstallOptionsPckg ); + const Usif::COpaqueNamedParams* aInstallOptionsPckg ); /** * @see MNcdInstallationService::SilentInstallJavaL @@ -147,13 +129,13 @@ void SilentInstallJavaL( RFile& aFile, const TDesC& aMimeType, const TDesC8& aDescriptorData, - const SwiUI::TInstallOptionsPckg& aInstallOptionsPckg ); + const Usif::COpaqueNamedParams* aInstallOptionsPckg ); /** * @see MNcdInstallationService::SilentInstallWidgetJavaL */ void SilentInstallWidgetL( RFile& aFile, - const SwiUI::TInstallOptionsPckg& aInstallOptionsPckg ); + const Usif::COpaqueNamedParams* aInstallOptionsPckg ); /** * @see MNcdInstallationService::MNcdCancelSilentInstall @@ -311,7 +293,7 @@ void InstallL( RFile& aFile, const TDesC& aMimeType, const TNcdItemPurpose& aPurpose, - const SwiUI::TInstallOptionsPckg* aSilentInstallOptionsPckg ); + const Usif::COpaqueNamedParams* aSilentInstallOptions ); /** * @see MNcdInstallationService::InstallJavaL @@ -322,12 +304,12 @@ void InstallJavaL( RFile& aFile, const TDesC& aMimeType, const TDesC8& aDescriptorData, - const SwiUI::TInstallOptionsPckg* aSilentInstallOptionsPckg ); + const Usif::COpaqueNamedParams* aSilentInstallOptions ); void InstallWidgetL( RFile& aFile, - const SwiUI::TInstallOptionsPckg* aSilentInstallOptionsPckg ); + const Usif::COpaqueNamedParams* aSilentInstallOptions ); // Sets correct values for member variables after installation has finished @@ -385,20 +367,6 @@ */ TBool IsRomApplication( const TUid& aUid ) const; - - /** - * Gets the UID of the latest installed midlet by using the - * Java installer's P&S key - * - * @param aJavaRegistry Java registry - * @return Midlet UID - */ -#ifdef USE_OLD_JAVA_API - TUid LatestMidletUidL( MJavaRegistry& aJavaRegistry ) const; -#else - TUid LatestMidletUidL( Java::CJavaRegistry& aJavaRegistry ) const; -#endif - static TBool MatchJava( const TDesC& aMime ); TUid InstalledMidletUidL(); @@ -455,11 +423,6 @@ // When installing java with JAD, the JAD path is stored here HBufC* iJadFileName; -#ifdef USE_OLD_JAVA_API - // For comparing installed midlet uids to find out the uid for the newly - // installed java app. - RArray iMIDletUids; -#endif // Theme handling // Server session @@ -483,18 +446,18 @@ CNcdActiveOperationObserver* iInstallStatusObserver; - SwiUI::RSWInstLauncher iInstaller; - + //SwiUI::RSWInstLauncher iInstaller; + Usif::RSoftwareInstall iInstaller; + Usif::COpaqueNamedParams* iArguments; + Usif::COpaqueNamedParams* iResults; + // ROM application UIDS RArray iRomUids; - // needed for cancelling install correctly - SwiUI::TServerRequest iCancelCode; - + //RWidgetRegistryClientSession iWidgetRegistry; + Usif::RSoftwareComponentRegistry iScrSession; - RWidgetRegistryClientSession iWidgetRegistry; - - RWidgetInfoArray iInstalledWidgets; + //RWidgetInfoArray iInstalledWidgets; RPointerArray iInstalledWidgetsInfos; };