Struct xpcom::interfaces::nsIBackgroundFileSaverObserver
[−]
[src]
#[repr(C)]pub struct nsIBackgroundFileSaverObserver { /* fields omitted */ }
interface nsIBackgroundFileSaverObserver : nsISupports
Methods
impl nsIBackgroundFileSaverObserver
[src]
pub fn coerce<T: nsIBackgroundFileSaverObserverCoerce>(&self) -> &T
[src]
Cast this nsIBackgroundFileSaverObserver
to one of its base interfaces.
impl nsIBackgroundFileSaverObserver
[src]
pub unsafe fn OnTargetChange(
&self,
aSaver: *const nsIBackgroundFileSaver,
aTarget: *const nsIFile
) -> nsresult
[src]
&self,
aSaver: *const nsIBackgroundFileSaver,
aTarget: *const nsIFile
) -> nsresult
/**
* 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);
pub unsafe fn OnSaveComplete(
&self,
aSaver: *const nsIBackgroundFileSaver,
aStatus: nsresult
) -> nsresult
[src]
&self,
aSaver: *const nsIBackgroundFileSaver,
aStatus: nsresult
) -> nsresult
/**
* 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>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIBackgroundFileSaverObserver
[src]
const IID: nsIID
IID: nsIID = nsID(4000340163, 28244, 17425, [183, 107, 60, 232, 123, 118, 252, 182])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIBackgroundFileSaverObserver
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.