nsIHelperAppLauncher

IID:99a0882d-2ff9-4659-9952-9ac531ba5592
Inherits From:nsICancelable

Properties

readonly nsIMIMEInfo MIMEInfo

The mime info object associated with the content type this helper app launcher is currently attempting to load

readonly nsIURI source

The source uri

readonly AString suggestedFileName

The suggested name for this file

readonly nsIFile targetFile

The file we are saving to

readonly PRTime timeDownloadStarted

Time when the download started


Methods

void closeProgressWindow ( ) void launchWithApplication ( nsIFile application , PRBool rememberThisPreference ) void saveToDisk ( nsIFile newFileLocation , PRBool rememberThisPreference ) void setWebProgressListener ( nsIWebProgressListener2 webProgressListener )

void closeProgressWindow ( )

When the stand alone progress window actually closes, it calls this method so we can release any local state...


void launchWithApplication ( nsIFile application , PRBool rememberThisPreference )

Use application to launch with this content. NOTE: This will release the reference to the nsIHelperAppLauncherDialog.

Arguments:
application: nsIFile corresponding to the location of the application to use.
rememberThisPreference: TRUE if we should remember this choice.

void saveToDisk ( nsIFile newFileLocation , PRBool rememberThisPreference )

Called when we want to just save the content to a particular file. NOTE: This will release the reference to the nsIHelperAppLauncherDialog.

Arguments:
newFileLocation: Location where the content should be saved
rememberThisPreference

void setWebProgressListener ( nsIWebProgressListener2 webProgressListener )

The following methods are used by the progress dialog to get or set information on the current helper app launcher download. This reference will be released when the download is finished (after the listener receives the STATE_STOP notification).

Arguments:
webProgressListener

References

This interface is passed as an argument to the following methods:

nsIHelperAppLauncherDialog.promptForSaveToFile, nsIHelperAppLauncherDialog.show

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com