Struct xpcom::interfaces::nsIBackgroundFileSaverObserver [] [src]

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

interface nsIBackgroundFileSaverObserver : nsISupports

Methods

impl nsIBackgroundFileSaverObserver
[src]

[src]

Cast this nsIBackgroundFileSaverObserver to one of its base interfaces.

impl nsIBackgroundFileSaverObserver
[src]

[src]

/**
   * Called when the name of the output file has been determined.  This function
   * may be called more than once if the target file is renamed while saving.
   *
   * @param aSaver
   *        Reference to the object that raised the notification.
   * @param aTarget
   *        Name of the file that is being written.
   */

void onTargetChange (in nsIBackgroundFileSaver aSaver, in nsIFile aTarget);

[src]

/**
   * Called when the operation completed, and the target file has been closed.
   * If the operation succeeded, the target file is ready to be used, otherwise
   * it might have been already deleted.
   *
   * @param aSaver
   *        Reference to the object that raised the notification.
   * @param aStatus
   *        Result code that determines whether the operation succeeded or
   *        failed, as well as the failure reason.
   */

void onSaveComplete (in nsIBackgroundFileSaver aSaver, in nsresult aStatus);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIBackgroundFileSaverObserver
[src]

IID: nsIID = nsID(4000340163, 28244, 17425, [183, 107, 60, 232, 123, 118, 252, 182])

[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 nsIBackgroundFileSaverObserver
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIBackgroundFileSaverObserver
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.