javamanager/javainstaller/appinstuiplugin/src/javainstalllauncher.cpp
branchRCL_3
changeset 83 26b2b12093af
parent 71 d5e927d5853b
equal deleted inserted replaced
77:7cee158cb8cd 83:26b2b12093af
    24 #include <data_caging_path_literals.hrh>
    24 #include <data_caging_path_literals.hrh>
    25 #include <SWInstDefs.h>
    25 #include <SWInstDefs.h>
    26 
    26 
    27 #include <CUIUtils.h>
    27 #include <CUIUtils.h>
    28 #include <eikenv.h>
    28 #include <eikenv.h>
    29 #include <sisxuidata.rsg>
    29 #include <SisxUIData.rsg>
    30 
    30 
    31 #include <javadomainpskeys.h>
    31 #include <javadomainpskeys.h>
    32 
    32 
    33 #include "javauids.h"
    33 #include "javauids.h"
    34 #include "logger.h"
    34 #include "logger.h"
   226 
   226 
   227     rJavaInstaller.Resume();
   227     rJavaInstaller.Resume();
   228 
   228 
   229     // Do NOT close rJavaInstaller now -> the caller gets notification when the
   229     // Do NOT close rJavaInstaller now -> the caller gets notification when the
   230     // process actually closes.
   230     // process actually closes.
   231     iHandlesToClose.AppendL(rJavaInstaller);
   231     iHandlesToClose.Append(rJavaInstaller);
   232 }
   232 }
   233 
   233 
   234 void CJavaInstallLauncher::SilentInstallL(RFile& aFile,
   234 void CJavaInstallLauncher::SilentInstallL(RFile& aFile,
   235         TInstallReq& aInstallParams, TBool /*aIsDRM*/, TInstallOptions& aOptions,
   235         TInstallReq& aInstallParams, TBool /*aIsDRM*/, TInstallOptions& aOptions,
   236         TRequestStatus& aStatus)
   236         TRequestStatus& aStatus)
   408               "CJavaInstallLauncher::SilentInstallL: starting JavaInstaller failed, err=%d", err);
   408               "CJavaInstallLauncher::SilentInstallL: starting JavaInstaller failed, err=%d", err);
   409     }
   409     }
   410 
   410 
   411     // Do NOT close rJavaInstaller now -> the caller gets notification when the
   411     // Do NOT close rJavaInstaller now -> the caller gets notification when the
   412     // process actually closes.
   412     // process actually closes.
   413     iHandlesToClose.AppendL(rJavaInstaller);
   413     iHandlesToClose.Append(rJavaInstaller);
   414 }
   414 }
   415 
   415 
   416 void CJavaInstallLauncher::UninstallL(const TUid& aUid, const TDesC8&, /*aMIME*/
   416 void CJavaInstallLauncher::UninstallL(const TUid& aUid, const TDesC8&, /*aMIME*/
   417                                       TRequestStatus& aStatus)
   417                                       TRequestStatus& aStatus)
   418 {
   418 {
   449               "CJavaInstallLauncher::UninstallL: starting JavaInstaller failed, err=%d", err);
   449               "CJavaInstallLauncher::UninstallL: starting JavaInstaller failed, err=%d", err);
   450     }
   450     }
   451 
   451 
   452     // Do NOT close rJavaInstaller now -> the caller gets notification when the
   452     // Do NOT close rJavaInstaller now -> the caller gets notification when the
   453     // process actually closes.
   453     // process actually closes.
   454     iHandlesToClose.AppendL(rJavaInstaller);
   454     iHandlesToClose.Append(rJavaInstaller);
   455 }
   455 }
   456 
   456 
   457 void CJavaInstallLauncher::SilentUninstallL(const TUid& aUid, const TDesC8&, /*aMIME*/
   457 void CJavaInstallLauncher::SilentUninstallL(const TUid& aUid, const TDesC8&, /*aMIME*/
   458         TUninstallOptions& /*aOptions*/, TRequestStatus& aStatus)
   458         TUninstallOptions& /*aOptions*/, TRequestStatus& aStatus)
   459 {
   459 {
   537               "CJavaInstallLauncher::SilentUninstallL: starting JavaInstaller failed, err=%d", err);
   537               "CJavaInstallLauncher::SilentUninstallL: starting JavaInstaller failed, err=%d", err);
   538     }
   538     }
   539 
   539 
   540     // Do NOT close rJavaInstaller now -> the caller gets notification when the
   540     // Do NOT close rJavaInstaller now -> the caller gets notification when the
   541     // process actually closes.
   541     // process actually closes.
   542     iHandlesToClose.AppendL(rJavaInstaller);
   542     iHandlesToClose.Append(rJavaInstaller);
   543 }
   543 }
   544 
   544 
   545 TBool CJavaInstallLauncher::IsAppShellUpdate()
   545 TBool CJavaInstallLauncher::IsAppShellUpdate()
   546 {
   546 {
   547     // All successfull install/uninstall operations cause need to
   547     // All successfull install/uninstall operations cause need to
   617 void CJavaInstallLauncher::OpenUiResourcesL()
   617 void CJavaInstallLauncher::OpenUiResourcesL()
   618 {
   618 {
   619     // Open UI env and resource file.
   619     // Open UI env and resource file.
   620     if (!iEik)
   620     if (!iEik)
   621     {
   621     {
   622         iEik = CEikonEnv::Static();  // codescanner::eikonenvstatic
   622         iEik = CEikonEnv::Static();
   623     }
   623     }
   624     if (!iEik)
   624     if (!iEik)
   625     {
   625     {
   626         ELOG(EJavaInstaller, "CJavaInstallLauncher: CEikonEnv::Static() call returned NULL.");
   626         ELOG(EJavaInstaller, "CJavaInstallLauncher: CEikonEnv::Static() call returned NULL.");
   627         User::Leave(KErrGeneral);
   627         User::Leave(KErrGeneral);