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]

[src]

Cast this amIAddonManager to one of its base interfaces.

impl amIAddonManager
[src]

[src]

/**
   * 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>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for amIAddonManager
[src]

IID: nsIID = nsID(2068174893, 31445, 18647, [155, 5, 243, 46, 185, 129, 140, 212])

[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]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for amIAddonManager
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.