Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

nsIServiceManager Interface Reference

import "nsIServiceManager.idl";

Inheritance diagram for nsIServiceManager:

nsISupports

List of all members.


Detailed Description

The nsIServiceManager manager interface provides a means to obtain global services in an application. The service manager depends on the repository to find and instantiate factories to obtain services.

Users of the service manager must first obtain a pointer to the global service manager by calling NS_GetServiceManager. After that, they can request specific services by calling GetService. When they are finished they can NS_RELEASE() the service as usual.

A user of a service may keep references to particular services indefinitely and only must call Release when it shuts down.

FROZEN

Definition at line 56 of file nsIServiceManager.idl.


Public Member Functions

void getService (in nsCIDRef aClass, in nsIIDRef aIID,[iid_is(aIID), retval] out nsQIResult result)
void getServiceByContractID (in string aContractID, in nsIIDRef aIID,[iid_is(aIID), retval] out nsQIResult result)
boolean isServiceInstantiated (in nsCIDRef aClass, in nsIIDRef aIID)
boolean isServiceInstantiatedByContractID (in string aContractID, in nsIIDRef aIID)
Methods
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

The documentation for this interface was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index