Struct xpcom::interfaces::nsIComponentManager
[−]
[src]
#[repr(C)]pub struct nsIComponentManager { /* fields omitted */ }
interface nsIComponentManager : nsISupports
Methods
impl nsIComponentManager
[src]
pub fn coerce<T: nsIComponentManagerCoerce>(&self) -> &T
[src]
Cast this nsIComponentManager
to one of its base interfaces.
impl nsIComponentManager
[src]
pub unsafe fn GetClassObject(
&self,
aClass: &nsCID,
aIID: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
aClass: &nsCID,
aIID: &nsIID,
result: *mut *mut c_void
) -> nsresult
/**
* getClassObject
*
* Returns the factory object that can be used to create instances of
* CID aClass
*
* @param aClass The classid of the factory that is being requested
*/
void getClassObject (in nsCIDRef aClass, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result);
pub unsafe fn GetClassObjectByContractID(
&self,
aContractID: *const c_char,
aIID: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
aContractID: *const c_char,
aIID: &nsIID,
result: *mut *mut c_void
) -> nsresult
/**
* getClassObjectByContractID
*
* Returns the factory object that can be used to create instances of
* CID aClass
*
* @param aClass The classid of the factory that is being requested
*/
void getClassObjectByContractID (in string aContractID, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result);
pub unsafe fn CreateInstance(
&self,
aClass: &nsCID,
aDelegate: *const nsISupports,
aIID: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
aClass: &nsCID,
aDelegate: *const nsISupports,
aIID: &nsIID,
result: *mut *mut c_void
) -> nsresult
/**
* createInstance
*
* Create an instance of the CID aClass and return the interface aIID.
*
* @param aClass : ClassID of object instance requested
* @param aDelegate : Used for aggregation
* @param aIID : IID of interface requested
*/
void createInstance (in nsCIDRef aClass, in nsISupports aDelegate, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result);
pub unsafe fn CreateInstanceByContractID(
&self,
aContractID: *const c_char,
aDelegate: *const nsISupports,
aIID: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
aContractID: *const c_char,
aDelegate: *const nsISupports,
aIID: &nsIID,
result: *mut *mut c_void
) -> nsresult
/**
* createInstanceByContractID
*
* Create an instance of the CID that implements aContractID and return the
* interface aIID.
*
* @param aContractID : aContractID of object instance requested
* @param aDelegate : Used for aggregation
* @param aIID : IID of interface requested
*/
void createInstanceByContractID (in string aContractID, in nsISupports aDelegate, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result);
pub unsafe fn AddBootstrappedManifestLocation(
&self,
aLocation: *const nsIFile
) -> nsresult
[src]
&self,
aLocation: *const nsIFile
) -> nsresult
/**
* addBootstrappedManifestLocation
*
* Adds a bootstrapped manifest location on runtime.
*
* @param aLocation : A directory where chrome.manifest resides,
* or an XPI with it on the root.
*/
void addBootstrappedManifestLocation (in nsIFile aLocation);
pub unsafe fn RemoveBootstrappedManifestLocation(
&self,
aLocation: *const nsIFile
) -> nsresult
[src]
&self,
aLocation: *const nsIFile
) -> nsresult
/**
* removeBootstrappedManifestLocation
*
* Removes a bootstrapped manifest location on runtime.
*
* @param aLocation : A directory where chrome.manifest resides,
* or an XPI with it on the root.
*/
void removeBootstrappedManifestLocation (in nsIFile aLocation);
pub unsafe fn GetManifestLocations(
&self,
_retval: *mut *const nsIArray
) -> nsresult
[src]
&self,
_retval: *mut *const nsIArray
) -> nsresult
/**
* getManifestLocations
*
* Get an array of nsIURIs of all registered and builtin manifest locations.
*/
nsIArray getManifestLocations ();
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 nsIComponentManager
[src]
const IID: nsIID
IID: nsIID = nsID(3590651843, 7075, 20332, [182, 95, 30, 212, 25, 147, 100, 195])
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 nsIComponentManager
[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 nsIComponentManager
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.