Struct xpcom::interfaces::nsIDownloadManagerUI
[−]
[src]
#[repr(C)]pub struct nsIDownloadManagerUI { /* fields omitted */ }
interface nsIDownloadManagerUI : nsISupports
Methods
impl nsIDownloadManagerUI
[src]
pub fn coerce<T: nsIDownloadManagerUICoerce>(&self) -> &T
[src]
Cast this nsIDownloadManagerUI
to one of its base interfaces.
impl nsIDownloadManagerUI
[src]
pub const REASON_USER_INTERACTED: i64
REASON_USER_INTERACTED: i64 = 0
/**
* The reason that should be passed when the user requests to show the
* download manager's UI.
*/
pub const REASON_NEW_DOWNLOAD: i64
REASON_NEW_DOWNLOAD: i64 = 1
/**
* The reason that should be passed to the show method when we are displaying
* the UI because a new download is being added to it.
*/
pub unsafe fn Show(
&self,
aWindowContext: *const nsIInterfaceRequestor,
aDownload: *const nsIDownload,
aReason: int16_t,
aUsePrivateUI: bool
) -> nsresult
[src]
&self,
aWindowContext: *const nsIInterfaceRequestor,
aDownload: *const nsIDownload,
aReason: int16_t,
aUsePrivateUI: bool
) -> nsresult
/**
* Shows the Download Manager's UI to the user.
*
* @param [optional] aWindowContext
* The parent window context to show the UI.
* @param [optional] aDownload
* The download to be preselected upon opening.
* @param [optional] aReason
* The reason to show the download manager's UI. This defaults to
* REASON_USER_INTERACTED, and should be one of the previously listed
* constants.
* @param [optional] aUsePrivateUI
* Pass true as this argument to hint to the implementation that it
* should only display private downloads in the UI, if possible.
*/
void show ([optional] in nsIInterfaceRequestor aWindowContext, [optional] in nsIDownload aDownload, [optional] in short aReason, [optional] in boolean aUsePrivateUI);
pub unsafe fn GetVisible(&self, aVisible: *mut bool) -> nsresult
[src]
/**
* Indicates if the UI is visible or not.
*/
readonly attribute boolean visible;
pub unsafe fn GetAttention(&self) -> nsresult
[src]
/**
* Brings attention to the UI if it is already visible
*
* @throws NS_ERROR_UNEXPECTED if the UI is not visible.
*/
void getAttention ();
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 nsIDownloadManagerUI
[src]
const IID: nsIID
IID: nsIID = nsID(209114319, 2822, 19482, [155, 234, 82, 12, 123, 189, 186, 153])
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 nsIDownloadManagerUI
[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 nsIDownloadManagerUI
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.