sbILibraryManager Interface Reference

Manages the lifecycle of libraries in the system. More...

import"sbILibraryManager.idl";

Inheritance diagram for sbILibraryManager:
[legend]
Collaboration diagram for sbILibraryManager:
[legend]

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...
 

Detailed Description

Manages the lifecycle of libraries in the system.

See Also
sbILibrary

Definition at line 47 of file sbILibraryManager.idl.

Member Function Documentation

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.

Parameters
aGuidGuid of the library you seek
Returns
Library instance identified by the supplied guid
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.

Parameters
aLibraryLibrary to register
aLoadAtStartupWhether 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.

Parameters
aLibraryLibrary to unregister

Member Data Documentation

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.


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