Manages the lifecycle of libraries in the system. More...
import"sbILibraryManager.idl";
Public Member Functions | |
sbILibrary | getLibrary (in AString aGuid) |
Get a library by its guid. More... | |
nsISimpleEnumerator | getLibraries () |
Returns a simple enumerator to enumerate all registered libraries. More... | |
nsISimpleEnumerator | getStartupLibraries () |
Returns a simple enumerator to enumerate all startup libraries. More... | |
void | registerLibrary (in sbILibrary aLibrary, in boolean aLoadAtStartup) |
Runtime registration of a library. More... | |
void | unregisterLibrary (in sbILibrary aLibrary) |
Runtime removal of a library. More... | |
void | setLibraryLoadsAtStartup (in sbILibrary aLibrary, in boolean aLoadAtStartup) |
Configures a library to run at startup. More... | |
boolean | getLibraryLoadsAtStartup (in sbILibrary aLibrary) |
Returns whether or not a library loads at startup. More... | |
boolean | hasLibrary (in sbILibrary aLibrary) |
Returns whether or not a library has been registered. More... | |
void | addListener (in sbILibraryManagerListener aListener) |
Adds a listener. More... | |
void | removeListener (in sbILibraryManagerListener aListener) |
Removes a listener. More... | |
Public Attributes | |
readonly attribute sbILibrary | mainLibrary |
Returns the main library. More... | |
readonly attribute nsIRDFDataSource | dataSource |
RDF datasource that exposes the currently active libraries and library factories. More... | |
Manages the lifecycle of libraries in the system.
Definition at line 47 of file sbILibraryManager.idl.
void sbILibraryManager::addListener | ( | in sbILibraryManagerListener | aListener | ) |
Adds a listener.
nsISimpleEnumerator sbILibraryManager::getLibraries | ( | ) |
Returns a simple enumerator to enumerate all registered libraries.
sbILibrary sbILibraryManager::getLibrary | ( | in AString | aGuid | ) |
Get a library by its guid.
aGuid | Guid of the library you seek |
boolean sbILibraryManager::getLibraryLoadsAtStartup | ( | in sbILibrary | aLibrary | ) |
Returns whether or not a library loads at startup.
nsISimpleEnumerator sbILibraryManager::getStartupLibraries | ( | ) |
Returns a simple enumerator to enumerate all startup libraries.
boolean sbILibraryManager::hasLibrary | ( | in sbILibrary | aLibrary | ) |
Returns whether or not a library has been registered.
void sbILibraryManager::registerLibrary | ( | in sbILibrary | aLibrary, |
in boolean | aLoadAtStartup | ||
) |
Runtime registration of a library.
aLibrary | Library to register |
aLoadAtStartup | Whether or not the library manager should reload this library at the next startup. |
void sbILibraryManager::removeListener | ( | in sbILibraryManagerListener | aListener | ) |
Removes a listener.
void sbILibraryManager::setLibraryLoadsAtStartup | ( | in sbILibrary | aLibrary, |
in boolean | aLoadAtStartup | ||
) |
Configures a library to run at startup.
void sbILibraryManager::unregisterLibrary | ( | in sbILibrary | aLibrary | ) |
Runtime removal of a library.
aLibrary | Library to unregister |
readonly attribute nsIRDFDataSource sbILibraryManager::dataSource |
RDF datasource that exposes the currently active libraries and library factories.
Definition at line 58 of file sbILibraryManager.idl.
readonly attribute sbILibrary sbILibraryManager::mainLibrary |
Returns the main library.
Definition at line 52 of file sbILibraryManager.idl.