Struct xpcom::interfaces::nsIDownloadProgressListener
[−]
[src]
#[repr(C)]pub struct nsIDownloadProgressListener { /* fields omitted */ }
interface nsIDownloadProgressListener : nsISupports
Methods
impl nsIDownloadProgressListener
[src]
pub fn coerce<T: nsIDownloadProgressListenerCoerce>(&self) -> &T
[src]
Cast this nsIDownloadProgressListener
to one of its base interfaces.
impl nsIDownloadProgressListener
[src]
pub unsafe fn GetDocument(
&self,
aDocument: *mut *const nsIDOMDocument
) -> nsresult
[src]
&self,
aDocument: *mut *const nsIDOMDocument
) -> nsresult
/**
* document
* The document of the download manager frontend.
*/
attribute nsIDOMDocument document;
pub unsafe fn SetDocument(&self, aDocument: *const nsIDOMDocument) -> nsresult
[src]
/**
* document
* The document of the download manager frontend.
*/
attribute nsIDOMDocument document;
pub unsafe fn OnDownloadStateChange(
&self,
aState: int16_t,
aDownload: *const nsIDownload
) -> nsresult
[src]
&self,
aState: int16_t,
aDownload: *const nsIDownload
) -> nsresult
/**
* Dispatched whenever the state of the download changes.
*
* @param aState The previous download sate.
* @param aDownload The download object.
* @see nsIDownloadManager for download states.
*/
void onDownloadStateChange (in short aState, in nsIDownload aDownload);
pub unsafe fn OnStateChange(
&self,
aWebProgress: *const nsIWebProgress,
aRequest: *const nsIRequest,
aStateFlags: uint32_t,
aStatus: nsresult,
aDownload: *const nsIDownload
) -> nsresult
[src]
&self,
aWebProgress: *const nsIWebProgress,
aRequest: *const nsIRequest,
aStateFlags: uint32_t,
aStatus: nsresult,
aDownload: *const nsIDownload
) -> nsresult
void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long aStateFlags, in nsresult aStatus, in nsIDownload aDownload);
pub unsafe fn OnProgressChange(
&self,
aWebProgress: *const nsIWebProgress,
aRequest: *const nsIRequest,
aCurSelfProgress: int64_t,
aMaxSelfProgress: int64_t,
aCurTotalProgress: int64_t,
aMaxTotalProgress: int64_t,
aDownload: *const nsIDownload
) -> nsresult
[src]
&self,
aWebProgress: *const nsIWebProgress,
aRequest: *const nsIRequest,
aCurSelfProgress: int64_t,
aMaxSelfProgress: int64_t,
aCurTotalProgress: int64_t,
aMaxTotalProgress: int64_t,
aDownload: *const nsIDownload
) -> nsresult
void onProgressChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long long aCurSelfProgress, in long long aMaxSelfProgress, in long long aCurTotalProgress, in long long aMaxTotalProgress, in nsIDownload aDownload);
pub unsafe fn OnSecurityChange(
&self,
aWebProgress: *const nsIWebProgress,
aRequest: *const nsIRequest,
aState: uint32_t,
aDownload: *const nsIDownload
) -> nsresult
[src]
&self,
aWebProgress: *const nsIWebProgress,
aRequest: *const nsIRequest,
aState: uint32_t,
aDownload: *const nsIDownload
) -> nsresult
void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long aState, in nsIDownload aDownload);
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 nsIDownloadProgressListener
[src]
const IID: nsIID
IID: nsIID = nsID(2060126186, 51906, 19477, [163, 173, 35, 170, 167, 137, 237, 81])
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 nsIDownloadProgressListener
[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 nsIDownloadProgressListener
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.