Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
PyG_nsIComponentLoader Class Reference
Inheritance diagram for PyG_nsIComponentLoader:
Inheritance graph
[legend]
Collaboration diagram for PyG_nsIComponentLoader:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PyG_nsIComponentLoader (PyObject *instance)
 PYGATEWAY_BASE_SUPPORT (nsIComponentLoader, PyG_Base)
nsIFactory getFactory (in nsIIDRef aCID, in string aLocation, in string aType)
 Get the factory for a given component.
void init (in nsIComponentManager aCompMgr, in nsISupports aRegistry)
 Initialize the loader.
void onRegister (in nsIIDRef aCID, in string aType, in string aClassName, in string aContractID, in string aLocation, in boolean aReplace, in boolean aPersist)
 Called when a component of the appropriate type is registered, to give the component loader an opportunity to do things like annotate the registry and such.
void autoRegisterComponents (in long aWhen, in nsIFile aDirectory)
 AutoRegister components in the given directory.
boolean autoRegisterComponent (in long aWhen, in nsIFile aComponent)
 AutoRegister the given component.
boolean autoUnregisterComponent (in long aWhen, in nsIFile aComponent)
 AutoUnregister the given component.
boolean registerDeferredComponents (in long aWhen)
 Register any deferred (NS_ERROR_FACTORY_REGISTER_AGAIN) components.
void unloadAll (in long aWhen)
 Unload all components that are willing.

Public Attributes

const long Startup = 0
 When is AutoRegistration occuring?
const long Component = 1
const long Timer = 2

Detailed Description

Definition at line 162 of file PyGModule.cpp.


Constructor & Destructor Documentation

PyG_nsIComponentLoader::PyG_nsIComponentLoader ( PyObject *  instance) [inline]

Definition at line 165 of file PyGModule.cpp.

: PyG_Base(instance, NS_GET_IID(nsIComponentLoader)) {;}

Member Function Documentation

boolean nsIComponentLoader::autoRegisterComponent ( in long  aWhen,
in nsIFile  aComponent 
) [inherited]

AutoRegister the given component.

Returns true if the component was registered, false if it couldn't attempt to register the component (wrong type) and ``throws'' an NS_FAILED code if there was an error during registration.

void nsIComponentLoader::autoRegisterComponents ( in long  aWhen,
in nsIFile  aDirectory 
) [inherited]

AutoRegister components in the given directory.

boolean nsIComponentLoader::autoUnregisterComponent ( in long  aWhen,
in nsIFile  aComponent 
) [inherited]

AutoUnregister the given component.

Returns true if the component was unregistered, false if it coudln't attempt to unregister the component (not found, wrong type).

nsIFactory nsIComponentLoader::getFactory ( in nsIIDRef  aCID,
in string  aLocation,
in string  aType 
) [inherited]

Get the factory for a given component.

void nsIComponentLoader::init ( in nsIComponentManager  aCompMgr,
in nsISupports  aRegistry 
) [inherited]

Initialize the loader.

We use nsISupports here because nsIRegistry isn't IDLized yet.

void nsIComponentLoader::onRegister ( in nsIIDRef  aCID,
in string  aType,
in string  aClassName,
in string  aContractID,
in string  aLocation,
in boolean  aReplace,
in boolean  aPersist 
) [inherited]

Called when a component of the appropriate type is registered, to give the component loader an opportunity to do things like annotate the registry and such.

Register any deferred (NS_ERROR_FACTORY_REGISTER_AGAIN) components.

Return registered-any-components?

void nsIComponentLoader::unloadAll ( in long  aWhen) [inherited]

Unload all components that are willing.


Member Data Documentation

Definition at line 74 of file nsIComponentLoader.idl.

When is AutoRegistration occuring?

Definition at line 73 of file nsIComponentLoader.idl.

Definition at line 75 of file nsIComponentLoader.idl.


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