Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIServiceManagerObsolete Class Reference

The nsIServiceManagerObsolete manager is obsolete. More...

#include <nsIServiceManagerObsolete.h>

Inheritance diagram for nsIServiceManagerObsolete:
Inheritance graph
[legend]
Collaboration diagram for nsIServiceManagerObsolete:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 NS_DEFINE_STATIC_IID_ACCESSOR (NS_ISERVICEMANAGER_OBSOLETE_IID)
NS_IMETHOD RegisterService (const nsCID &aClass, nsISupports *aService)=0
 RegisterService may be called explicitly to register a service with the service manager.
NS_IMETHOD UnregisterService (const nsCID &aClass)=0
 Requests a service to be shut down, possibly unloading its DLL.
NS_IMETHOD GetService (const nsCID &aClass, const nsIID &aIID, nsISupports **result, nsIShutdownListener *shutdownListener=nsnull)=0
NS_IMETHOD ReleaseService (const nsCID &aClass, nsISupports *service, nsIShutdownListener *shutdownListener=nsnull)=0
NS_IMETHOD RegisterService (const char *aContractID, nsISupports *aService)=0
NS_IMETHOD UnregisterService (const char *aContractID)=0
NS_IMETHOD GetService (const char *aContractID, const nsIID &aIID, nsISupports **result, nsIShutdownListener *shutdownListener=nsnull)=0
NS_IMETHOD ReleaseService (const char *aContractID, nsISupports *service, nsIShutdownListener *shutdownListener=nsnull)=0

Detailed Description

The nsIServiceManagerObsolete manager is obsolete.

Please refer to nsIServiceManager.

Definition at line 77 of file nsIServiceManagerObsolete.h.


Member Function Documentation

NS_IMETHOD nsIServiceManagerObsolete::GetService ( const nsCID aClass,
const nsIID aIID,
nsISupports **  result,
nsIShutdownListener *  shutdownListener = nsnull 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsIServiceManagerObsolete::GetService ( const char *  aContractID,
const nsIID aIID,
nsISupports **  result,
nsIShutdownListener *  shutdownListener = nsnull 
) [pure virtual]
NS_IMETHOD nsIServiceManagerObsolete::RegisterService ( const nsCID aClass,
nsISupports *  aService 
) [pure virtual]

RegisterService may be called explicitly to register a service with the service manager.

If a service is not registered explicitly, the component manager will be used to create an instance according to the class ID specified.

Here is the caller graph for this function:

NS_IMETHOD nsIServiceManagerObsolete::RegisterService ( const char *  aContractID,
nsISupports *  aService 
) [pure virtual]
NS_IMETHOD nsIServiceManagerObsolete::ReleaseService ( const nsCID aClass,
nsISupports *  service,
nsIShutdownListener *  shutdownListener = nsnull 
) [pure virtual]
NS_IMETHOD nsIServiceManagerObsolete::ReleaseService ( const char *  aContractID,
nsISupports *  service,
nsIShutdownListener *  shutdownListener = nsnull 
) [pure virtual]

Requests a service to be shut down, possibly unloading its DLL.

Returns:
NS_OK - if shutdown was successful and service was unloaded,
NS_ERROR_SERVICE_NOT_FOUND - if shutdown failed because the service was not currently loaded
NS_ERROR_SERVICE_IN_USE - if shutdown failed because some user of the service wouldn't voluntarily release it by using a shutdown listener.
NS_IMETHOD nsIServiceManagerObsolete::UnregisterService ( const char *  aContractID) [pure virtual]

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