ncdengine/provider/deviceinteraction/src/ncdinstallationserviceimpl.cpp
changeset 24 84a16765cd86
parent 2 661f3784fe57
child 25 98b66e4fb0be
--- a/ncdengine/provider/deviceinteraction/src/ncdinstallationserviceimpl.cpp	Tue Feb 02 00:20:15 2010 +0200
+++ b/ncdengine/provider/deviceinteraction/src/ncdinstallationserviceimpl.cpp	Fri Mar 19 09:33:35 2010 +0200
@@ -32,6 +32,7 @@
 #include <e32property.h>
 #include <sacls.h>
 
+/*  HLa - temporary java remove
 #ifdef USE_OLD_JAVA_API
     #include <mjavaregistry.h>
     #include <swi/minstalledappsregistry.h>
@@ -41,7 +42,7 @@
 
     using namespace Java;
 #endif
-
+*/
 #include "ncdinstallationserviceobserver.h"
 #include "ncdactiveoperationobserver.h"
 #include "ncdsilentinstallactiveobserver.h"
@@ -55,6 +56,7 @@
 
 const TUint KFileOpenFlags = EFileShareReadersOrWriters;
 
+/*  HLa - temporary java remove
 #ifdef __SERIES60_31__
 
     const TInt32 KPSUidJavaLatestInstallation = KUidJmiLatestInstallation;
@@ -67,6 +69,7 @@
     #include <javadomainpskeys.h>
 
 #endif
+*/
 
 // length taken from WidgetRegistryData.h
 const TInt KWidgetBundleIdLength = KWidgetRegistryVal + 1;    
@@ -133,10 +136,14 @@
     delete iInstallationCompleteCallback;
     delete iJadFileName;
     delete iRecognizedMime;
+    
+     /*  HLa - temporary java remove
 #ifdef USE_OLD_JAVA_API    
     iMIDletUids.Close();
 #endif    
     iApaLs.Close();
+    */
+    
     if( iThemes )
         {
         iThemes->ResetAndDestroy();
@@ -493,11 +500,14 @@
 //
 // ---------------------------------------------------------------------------
 //
+
 #ifdef USE_OLD_JAVA_API
 
 TBool CNcdInstallationService::JavaAppExistsL( 
     const TUid& aUid )
     {
+    	
+    /*  HLa - temporary java remove
     DLTRACEIN((""));
 
     MJavaRegistry* javaRegistry = MJavaRegistry::CreateL();
@@ -515,6 +525,8 @@
     
     CleanupStack::PopAndDestroy( javaRegistry );
     return err == KErrNone;
+    */
+    
     }
 
 #else
@@ -523,6 +535,7 @@
     const TUid& aUid )
     {
     DLTRACEIN((""));
+    /*  HLa - temporary java remove
 
     CJavaRegistry* javaRegistry = CJavaRegistry::NewLC();    
 
@@ -530,10 +543,13 @@
     
     CleanupStack::PopAndDestroy( javaRegistry );
     return exists;
+    */
+    
     }
 
 #endif
-    
+
+  
 // ---------------------------------------------------------------------------
 // Checks the application status
 // ---------------------------------------------------------------------------
@@ -1449,11 +1465,13 @@
 #ifdef USE_OLD_JAVA_API
     // Store installed java app uids before installation to see
     // which one is a new java app later.
+    /*  HLa - temporary java remove
     MJavaRegistry* javaRegistry = MJavaRegistry::CreateL();
     CleanupReleasePushL( *javaRegistry );
     iMIDletUids.Reset();
     javaRegistry->InstalledMIDletUidsL( iMIDletUids );
     CleanupStack::PopAndDestroy( javaRegistry );
+    */
 #endif
     
     // In platform security systems JAR and JAD has to be in same folder
@@ -1828,21 +1846,25 @@
 
 void CNcdInstallationService::MidletUidsL( RArray<TUid>& aUids )
     {
+    	 /*  HLa - temporary java remove
     DLTRACEIN((""));
     MJavaRegistry* javaRegistry = MJavaRegistry::CreateL();
     CleanupReleasePushL( *javaRegistry );
     javaRegistry->InstalledMIDletUidsL( aUids );
-    CleanupStack::PopAndDestroy( javaRegistry );    
+    CleanupStack::PopAndDestroy( javaRegistry ); 
+    */   
     }
 
 #else
 
 void CNcdInstallationService::MidletUidsL( RArray<TUid>& aUids )
     {
+    /*  HLa - temporary java remove
     DLTRACEIN((""));
     CJavaRegistry* javaRegistry = CJavaRegistry::NewLC();
     javaRegistry->GetRegistryEntryUidsL( aUids );          
-    CleanupStack::PopAndDestroy( javaRegistry );    
+    CleanupStack::PopAndDestroy( javaRegistry );   
+    */ 
     }
 
 #endif
@@ -1864,6 +1886,8 @@
 // been installed since the last device restart
 // ---------------------------------------------------------------------------
 //
+
+/*  HLa - temporary java remove
 #ifdef USE_OLD_JAVA_API
 
 TUid CNcdInstallationService::LatestMidletUidL( 
@@ -1973,6 +1997,7 @@
 
 
 #endif
+*/
 
 // ---------------------------------------------------------------------------
 // Returns true if the MIME type matches a Java application or descriptor
@@ -1988,8 +2013,11 @@
 
 #ifdef USE_OLD_JAVA_API
 
+
 TUid CNcdInstallationService::InstalledMidletUidL()
     {
+    	
+    /* HLa - temporary java remove
     DLTRACEIN((""));
     RArray<TUid> MIDletUids;
     CleanupClosePushL( MIDletUids );
@@ -2024,17 +2052,21 @@
 
     iMIDletUids.Reset();
     return MIDletUid;
+    */
+    
     }
 
 #else // USE_OLD_JAVA_API
 
 TUid CNcdInstallationService::InstalledMidletUidL()
     {
+    /* HLa - temporary java remove
     DLTRACEIN((""));
     CJavaRegistry* registry = CJavaRegistry::NewLC();
     TUid midletUid = LatestMidletUidL( *registry );
     CleanupStack::PopAndDestroy( registry );
     return midletUid;
+    */
     }
 
 #endif // USE_OLD_JAVA_API