Struct xpcom::interfaces::nsIHelperAppLauncher [] [src]

#[repr(C)]
pub struct nsIHelperAppLauncher { /* fields omitted */ }

interface nsIHelperAppLauncher : nsICancelable

/**
 * A helper app launcher is a small object created to handle the launching
 * of an external application.
 *
 * Note that cancelling the load via the nsICancelable interface will release
 * the reference to the launcher dialog.
 */

Methods

impl nsIHelperAppLauncher
[src]

[src]

Cast this nsIHelperAppLauncher to one of its base interfaces.

impl nsIHelperAppLauncher
[src]

[src]

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

readonly attribute nsIMIMEInfo MIMEInfo;

[src]

/**
   * The source uri
   */

readonly attribute nsIURI source;

[src]

/**
   * The suggested name for this file
   */

readonly attribute AString suggestedFileName;

[src]

/**
   * Saves the final destination of the file. Does not actually perform the
   * save.
   * NOTE: This will release the reference to the
   * nsIHelperAppLauncherDialog.
   */

void saveToDisk (in nsIFile aNewFileLocation, in boolean aRememberThisPreference);

[src]

/**
   * Remembers that aApplication should be used to launch this content. Does
   * not actually launch the application.
   * NOTE: This will release the reference to the nsIHelperAppLauncherDialog.
   * @param aApplication nsIFile corresponding to the location of the application to use.
   * @param aRememberThisPreference TRUE if we should remember this choice.
   */

void launchWithApplication (in nsIFile aApplication, in boolean aRememberThisPreference);

[src]

/**
   * Callback invoked by nsIHelperAppLauncherDialog::promptForSaveToFileAsync
   * after the user has chosen a file through the File Picker (or dismissed it).
   * @param aFile The file that was chosen by the user (or null if dialog was dismissed).
   */

void saveDestinationAvailable (in nsIFile aFile);

[src]

/**
   * 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).
   */

void setWebProgressListener (in nsIWebProgressListener2 aWebProgressListener);

[src]

/**
   * The file we are saving to
   */

readonly attribute nsIFile targetFile;

[src]

/**
   * The executable-ness of the target file
   */

readonly attribute boolean targetFileIsExecutable;

[src]

/**
   * Time when the download started
   */

readonly attribute PRTime timeDownloadStarted;

[src]

/**
   * The download content length, or -1 if the length is not available.
   */

readonly attribute int64_t contentLength;

Methods from Deref<Target = nsICancelable>

[src]

Cast this nsICancelable to one of its base interfaces.

[src]

/**
   * Call this method to request that this object abort whatever operation it
   * may be performing.
   *
   * @param aReason
   *        Pass a failure code to indicate the reason why this operation is
   *        being canceled.  It is an error to pass a success code.
   */

void cancel (in nsresult aReason);

Trait Implementations

impl XpCom for nsIHelperAppLauncher
[src]

IID: nsIID = nsID(2901583126, 32127, 18289, [139, 34, 108, 74, 85, 156, 8, 142])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIHelperAppLauncher
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIHelperAppLauncher
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.