FileDocCategorySizeDatePackage
InstallListener.javaAPI DocphoneME MR2 API (J2ME)3457Wed May 02 18:00:04 BST 2007com.sun.midp.installer

InstallListener

public interface InstallListener
Enables a MIDlet to respond installation warnings and status updates.

Fields Summary
Constructors Summary
Methods Summary
public booleanconfirmAuthPath(InstallState state)
Called with the current state of the install so the user can be asked to confirm the authentication path. If false is returned, the an I/O exception thrown and {@link Installer#wasStopped()} will return true if called.

param
state current state of the install.
return
true if the user wants to continue, false to stop the install

public booleanconfirmJarDownload(InstallState state)
Called with the current state of the install so the user can be asked to confirm the jar download. If false is returned, the an I/O exception thrown and {@link Installer#wasStopped()} will return true if called.

param
state current state of the install.
return
true if the user wants to continue, false to stop the install

public booleankeepRMS(InstallState state)
Called with the current state of the install so the user can be asked to confirm if the RMS data should be kept for new version of an updated suite. If false is returned, the an I/O exception thrown and {@link Installer#wasStopped()} will return true if called.

param
state current state of the install.
return
true if the user wants to keep the RMS data for the next suite

public voidupdateStatus(int status, InstallState state)
Called with the current status of the install. See {@link Installer} for the status codes.

param
status current status of the install.
param
state current state of the install.

public booleanwarnUser(InstallState state)
Called with the current state of the install so the user can be asked to override the warning. To get the warning from the state call {@link InstallState#getLastException()}. If false is returned, the last exception in the state will be thrown and {@link Installer#wasStopped()} will return true if called.

param
state current state of the install.
return
true if the user wants to continue, false to stop the install