Struct xpcom::interfaces::nsIModule [] [src]

#[repr(C)]
pub struct nsIModule { /* fields omitted */ }

interface nsIModule : nsISupports

/**
 * The nsIModule interface.
 */

Methods

impl nsIModule
[src]

[src]

Cast this nsIModule to one of its base interfaces.

impl nsIModule
[src]

[src]

/**
     * Object Instance Creation
     *
     * Obtains a Class Object from a nsIModule for a given CID and IID pair.
     * This class object can either be query to a nsIFactory or a may be
     * query to a nsIClassInfo.
     *
     * @param aCompMgr  : The global component manager
     * @param aClass    : ClassID of object instance requested
     * @param aIID      : IID of interface requested
     *
     */

void getClassObject (in nsIComponentManager aCompMgr, in nsCIDRef aClass, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult aResult);

[src]

/**
     * One time registration callback
     *
     * When the nsIModule is discovered, this method will be
     * called so that any setup registration can be preformed.
     *
     * @param aCompMgr  : The global component manager
     * @param aLocation : The location of the nsIModule on disk
     * @param aLoaderStr: Opaque loader specific string
     * @param aType     : Loader Type being used to load this module
     */

void registerSelf (in nsIComponentManager aCompMgr, in nsIFile aLocation, in string aLoaderStr, in string aType);

[src]

/**
     * One time unregistration callback
     *
     * When the nsIModule is being unregistered, this method will be
     * called so that any unregistration can be preformed
     *
     * @param aCompMgr   : The global component manager
     * @param aLocation  : The location of the nsIModule on disk
     * @param aLoaderStr : Opaque loader specific string
     *
     */

void unregisterSelf (in nsIComponentManager aCompMgr, in nsIFile aLocation, in string aLoaderStr);

[src]

/**
    * Module load management
    *
    * @param aCompMgr  : The global component manager
    *
    * @return indicates to the caller if the module can be unloaded.
    *       Returning PR_TRUE isn't a guarantee that the module will be
    *       unloaded. It constitues only willingness of the module to be
    *       unloaded.  It is very important to ensure that no outstanding
    *       references to the module's code/data exist before returning
    *       PR_TRUE.
    *       Returning PR_FALSE guaratees that the module won't be unloaded.
    */

boolean canUnload (in nsIComponentManager aCompMgr);

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

IID: nsIID = nsID(1939001394, 21361, 4563, [153, 78, 0, 128, 95, 210, 111, 238])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIModule
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.