Struct xpcom::interfaces::amIAddonManager
[−]
[src]
#[repr(C)]pub struct amIAddonManager { /* fields omitted */ }
interface amIAddonManager : nsISupports
/**
* A service to make some AddonManager functionality available to C++ callers.
* Javascript callers should still use AddonManager.jsm directly.
*/
Methods
impl amIAddonManager
[src]
pub fn coerce<T: amIAddonManagerCoerce>(&self) -> &T
[src]
Cast this amIAddonManager
to one of its base interfaces.
impl amIAddonManager
[src]
pub unsafe fn MapURIToAddonID(
&self,
aURI: *const nsIURI,
aID: &mut nsACString,
_retval: *mut bool
) -> nsresult
[src]
&self,
aURI: *const nsIURI,
aID: &mut nsACString,
_retval: *mut bool
) -> nsresult
/**
* Synchronously map a URI to the corresponding Addon ID.
*
* Mappable URIs are limited to in-application resources belonging to the
* add-on, such as Javascript compartments, XUL windows, XBL bindings, etc.
* but do not include URIs from meta data, such as the add-on homepage.
*
* @param aURI
* The nsIURI to map
* @return
* true if the URI has been mapped successfully to an Addon ID
*/
boolean mapURIToAddonID (in nsIURI aURI, out AUTF8String aID);
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 amIAddonManager
[src]
const IID: nsIID
IID: nsIID = nsID(2068174893, 31445, 18647, [155, 5, 243, 46, 185, 129, 140, 212])
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 amIAddonManager
[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 amIAddonManager
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.