Struct xpcom::interfaces::mozIDownloadPlatform
[−]
[src]
#[repr(C)]pub struct mozIDownloadPlatform { /* fields omitted */ }
interface mozIDownloadPlatform : nsISupports
Methods
impl mozIDownloadPlatform
[src]
pub fn coerce<T: mozIDownloadPlatformCoerce>(&self) -> &T
[src]
Cast this mozIDownloadPlatform
to one of its base interfaces.
impl mozIDownloadPlatform
[src]
pub const ZONE_MY_COMPUTER: i64
ZONE_MY_COMPUTER: i64 = 0
/**
* Security Zone constants. Used by mapUrlToZone().
*/
pub const ZONE_INTRANET: i64
ZONE_INTRANET: i64 = 1
pub const ZONE_TRUSTED: i64
ZONE_TRUSTED: i64 = 2
pub const ZONE_INTERNET: i64
ZONE_INTERNET: i64 = 3
pub const ZONE_RESTRICTED: i64
ZONE_RESTRICTED: i64 = 4
pub unsafe fn DownloadDone(
&self,
aSource: *const nsIURI,
aReferrer: *const nsIURI,
aTarget: *const nsIFile,
aContentType: &nsACString,
aIsPrivate: bool
) -> nsresult
[src]
&self,
aSource: *const nsIURI,
aReferrer: *const nsIURI,
aTarget: *const nsIFile,
aContentType: &nsACString,
aIsPrivate: bool
) -> nsresult
/**
* Perform platform specific operations when a download is done.
*
* Windows:
* Add the download to the recent documents list
* Set the file to be indexed for searching
* Mac:
* Bounce the downloads dock icon
* GTK:
* Add the download to the recent documents list
* Save the source uri in the downloaded file's metadata
* Android:
* Scan media
*
* @param aSource
* Source URI of the download
* @param aReferrer
* Referrer URI of the download
* @param aTarget
* Downloaded file
* @param aContentType
* The source's content type
* @param aIsPrivate
* True for private downloads
* @return none
*/
void downloadDone (in nsIURI aSource, in nsIURI aReferrer, in nsIFile aTarget, in ACString aContentType, in boolean aIsPrivate);
pub unsafe fn MapUrlToZone(
&self,
aURL: &nsAString,
_retval: *mut uint32_t
) -> nsresult
[src]
&self,
aURL: &nsAString,
_retval: *mut uint32_t
) -> nsresult
/**
* Proxy for IInternetSecurityManager::MapUrlToZone().
*
* Windows only.
*
* @param aURL
* URI of the download
* @return Security Zone corresponding to aURL.
*/
unsigned long mapUrlToZone (in AString aURL);
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 mozIDownloadPlatform
[src]
const IID: nsIID
IID: nsIID = nsID(2673176138, 55731, 18115, [159, 143, 208, 219, 26, 198, 200, 193])
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 mozIDownloadPlatform
[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 mozIDownloadPlatform
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.