javamanager/javainstaller/installer/javasrc/com/nokia/mj/impl/installer/InstallationNotifier.java
branchRCL_3
changeset 77 7cee158cb8cd
parent 60 6c158198356e
child 83 26b2b12093af
equal deleted inserted replaced
71:d5e927d5853b 77:7cee158cb8cd
    45     public static final int UNINSTALL_FAIL = 0x202;
    45     public static final int UNINSTALL_FAIL = 0x202;
    46 
    46 
    47     // Maximum number of progress updates to SysUtil.setProperty().
    47     // Maximum number of progress updates to SysUtil.setProperty().
    48     private static final int MAX_PROPERTY_PROGRESS_UPDATES = 5;
    48     private static final int MAX_PROPERTY_PROGRESS_UPDATES = 5;
    49     // Maximum number of progress updates to SIF.
    49     // Maximum number of progress updates to SIF.
    50     private static final int MAX_SIF_PROGRESS_UPDATES = 5;
    50     private static final int MAX_SIF_PROGRESS_UPDATES = 8;
    51     // Maximum number of progress updates to UI.
    51     // Maximum number of progress updates to UI.
    52     private static final int MAX_UI_PROGRESS_UPDATES = 20;
    52     private static final int MAX_UI_PROGRESS_UPDATES = 20;
    53 
    53 
    54     // Flag telling if the properties are already defined.
    54     // Flag telling if the properties are already defined.
    55     private static boolean iPropertiesDefined = false;
    55     private static boolean iPropertiesDefined = false;
   130      * engine execution has ended.
   130      * engine execution has ended.
   131      */
   131      */
   132     public void ended()
   132     public void ended()
   133     {
   133     {
   134         Log.log("InstallationNotifier.ended");
   134         Log.log("InstallationNotifier.ended");
       
   135         if (iSifNotifier != null)
       
   136         {
       
   137             // After this SifNotifier is no longer used, destroy it.
       
   138             try
       
   139             {
       
   140                 iSifNotifier.destroy();
       
   141                 iSifNotifier = null;
       
   142             }
       
   143             catch (Throwable t)
       
   144             {
       
   145                 Log.logError("InstallationNotifier: SifNotifier.destroy failed", t);
       
   146             }
       
   147         }
   135         if (iInstallerUi != null)
   148         if (iInstallerUi != null)
   136         {
   149         {
   137             try
   150             try
   138             {
   151             {
   139                 iInstallerUi.ended();
   152                 iInstallerUi.ended();
   140             }
   153             }
   141             catch (Throwable t)
   154             catch (Throwable t)
   142             {
   155             {
   143                 Log.logError(
   156                 Log.logError(
   144                     "InstallationNotifier: InstallerUi.ended threw exception", t);
   157                     "InstallationNotifier: InstallerUi.ended threw exception", t);
   145             }
       
   146         }
       
   147         if (iSifNotifier != null)
       
   148         {
       
   149             // After this SifNotifier is no longer used, destroy it.
       
   150             try
       
   151             {
       
   152                 iSifNotifier.destroy();
       
   153                 iSifNotifier = null;
       
   154             }
       
   155             catch (Throwable t)
       
   156             {
       
   157                 Log.logError("InstallationNotifier: SifNotifier.destroy failed", t);
       
   158             }
   158             }
   159         }
   159         }
   160     }
   160     }
   161 
   161 
   162     /**
   162     /**