applicationmanagement/server/src/AMPreInstallApp.cpp
branchRCL_3
changeset 58 5b858729772b
parent 57 6757f1e2efd2
--- a/applicationmanagement/server/src/AMPreInstallApp.cpp	Tue Aug 31 15:05:55 2010 +0300
+++ b/applicationmanagement/server/src/AMPreInstallApp.cpp	Wed Sep 01 12:31:32 2010 +0100
@@ -15,22 +15,20 @@
  *
  */
 
-
+#include "AMPreInstallApp.h"
 #include <pathinfo.h>
 #include <driveinfo.h>
+#include "debug.h"
 #include <apmstd.h>  //for KMaxDataTypeLength
 #include <sisregistrysession.h>
 #include <sisregistrypackage.h>
 #include <e32cmn.h> 
-#include <utf.h>
-#include <sisregistryentry.h>
+#include<utf.h>
+#include<sisregistryentry.h>
 #include <caf/caf.h>
 #include <apgcli.h>
 #include <SWInstDefs.h>
 
-#include "AMPreInstallApp.h"
-#include "debug.h"
-
 using namespace NApplicationManagement;
 CAMPreInstallApp* CAMPreInstallApp::NewL()
     {
@@ -39,13 +37,11 @@
     return self;
 
     }
-
-
 CAMPreInstallApp* CAMPreInstallApp::NewLC()
     {
-    CAMPreInstallApp *self = new (ELeave) CAMPreInstallApp();
-    CleanupStack::PushL(self);
-    self->ConstructL();
+    CAMPreInstallApp *self = new ( ELeave ) CAMPreInstallApp(  );
+    CleanupStack::PushL( self ) ;
+    self->ConstructL() ;
     return self;
 
     }
@@ -69,8 +65,7 @@
       iPreInstallPath.Append(mmcDrive);
       iPreInstallPath.Append(KPreInstallPath);
     }
-void CAMPreInstallApp::GetPreInstalledAppsL(RPointerArray<
-        TPreInstalledAppParams> &aPreInstalledAppParams)
+void CAMPreInstallApp::GetPreInstalledAppsL(RPointerArray<TPreInstalledAppParams> &aPreInstalledAppParams)
     {
 
     MakeAllInstallPathsL();
@@ -115,8 +110,7 @@
                 }
 
 #ifdef RD_MULTIPLE_DRIVE
-            if (TParsePtrC(installDocPath).Path().CompareF(KPreInstallPath)
-                    == 0)
+            if ( TParsePtrC( installDocPath ).Path().CompareF(KPreInstallPath) == 0 )
 #else
             if (installDocPath.CompareF(iPreInstallPath) == 0)
 #endif
@@ -161,8 +155,6 @@
 		    {
                 CleanupClosePushL(registryEntry);
                 TBool isPreInstalled = registryEntry.PreInstalledL();
-               // TBool isPreInstalled = ETrue;
-
                 RDEBUG_4("Clist_PreInstallAppUi: ListPreInstalledApp: UID is : '0x%X', installed:, preinstalled %d  %d",appUid,installed,isPreInstalled);
 
                 for (TInt i(0); isPreInstalled && i < uids.Count(); i++)
@@ -233,13 +225,9 @@
     if (iPreInstallDocumentPath.Length() > 0)
         {
         ListPreInstalledAppL(iPreInstallDocumentPath);
-        //_LIT(KInstallpath,"C:\\private\\10202dce\\");
-        //ListPreInstalledAppL(KInstallpath);
         }
 #endif
-
     }
-    
 TBool CAMPreInstallApp::RecognizeL(TDesC& aPathAndName, HBufC* aMimeType)
     {
     TBool IsOK(ETrue);