javamanager/javainstaller/installer/javasrc/com/nokia/mj/impl/installer/midp2/install/steps/InstallBall.java
branchRCL_3
changeset 83 26b2b12093af
parent 77 7cee158cb8cd
equal deleted inserted replaced
77:7cee158cb8cd 83:26b2b12093af
    18 
    18 
    19 package com.nokia.mj.impl.installer.midp2.install.steps;
    19 package com.nokia.mj.impl.installer.midp2.install.steps;
    20 
    20 
    21 import java.util.Hashtable;
    21 import java.util.Hashtable;
    22 
    22 
    23 import com.nokia.mj.impl.installer.Installer;
       
    24 import com.nokia.mj.impl.installer.InstallationNotifier;
    23 import com.nokia.mj.impl.installer.InstallationNotifier;
    25 import com.nokia.mj.impl.installer.applicationregistrator.ApplicationRegistrator;
    24 import com.nokia.mj.impl.installer.applicationregistrator.ApplicationRegistrator;
    26 import com.nokia.mj.impl.installer.applicationregistrator.SifNotifier;
    25 import com.nokia.mj.impl.installer.applicationregistrator.SifNotifier;
    27 import com.nokia.mj.impl.installer.applicationregistrator.SifRegistrator;
    26 import com.nokia.mj.impl.installer.applicationregistrator.SifRegistrator;
    28 import com.nokia.mj.impl.installer.captainservice.CaptainService;
    27 import com.nokia.mj.impl.installer.captainservice.CaptainService;
   231             iApplicationRegistrator.notifyLauncherThatUiIsReady();
   230             iApplicationRegistrator.notifyLauncherThatUiIsReady();
   232         }
   231         }
   233     }
   232     }
   234 
   233 
   235     /**
   234     /**
   236      * Called when InstallerUi is hidden or unhidden.
       
   237      *
       
   238      * @param aHidden true if UI was hidden, false if UI was unhidden.
       
   239      */
       
   240     public void uiIsHidden(boolean aHidden)
       
   241     {
       
   242         log("InstallBall.uiIsHidden " + aHidden);
       
   243         if (iSifNotifier == null)
       
   244         {
       
   245             Log.logWarning("InstallBall.uiIsHidden(" + aHidden +
       
   246                            ") called when SifNotifier does not exist");
       
   247             return;
       
   248         }
       
   249         iSifNotifier.setInstallerUi(getInstallerUi());
       
   250         if (aHidden)
       
   251         {
       
   252             iSifNotifier.activateIndicator();
       
   253         }
       
   254         else
       
   255         {
       
   256             iSifNotifier.deactivateIndicator();
       
   257         }
       
   258     }
       
   259 
       
   260     /**
       
   261      * Called when user cancels the execution from the InstallerUi.
   235      * Called when user cancels the execution from the InstallerUi.
   262      * This method must return quickly.
   236      * This method must return quickly.
   263      */
   237      */
   264     public void cancel()
   238     public void cancel()
   265     {
   239     {
   327                 catch (Throwable t)
   301                 catch (Throwable t)
   328                 {
   302                 {
   329                     Log.logWarning("checkForCancel: Stopping downloader failed", t);
   303                     Log.logWarning("checkForCancel: Stopping downloader failed", t);
   330                 }
   304                 }
   331             }
   305             }
   332             throw new InstallerException(
   306             throw new InstallerException
   333                 Installer.ERR_CANCEL,
   307             (InstallerErrorMessage.INST_CANCEL, null,
   334                 InstallerErrorMessage.INST_CANCEL, null,
   308              InstallerDetailedErrorMessage.NO_MSG, null,
   335                 InstallerDetailedErrorMessage.INST_CANCEL, null,
   309              OtaStatusCode.USER_CANCELLED);
   336                 OtaStatusCode.USER_CANCELLED);
       
   337         }
   310         }
   338     }
   311     }
   339 
   312 
   340     /**
   313     /**
   341      * Returns CaptainService instance.
   314      * Returns CaptainService instance.