Songbird / Development / Songbird Add-Ons API Documentation

sbILibraryManager Interface Reference

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

import "sbILibraryManager.idl";

List of all members.

Public Member Functions

sbILibrary getLibrary (in AString aGuid)
 Get a library by its guid.
nsISimpleEnumerator getLibraries ()
 Returns a simple enumerator to enumerate all registered libraries.
nsISimpleEnumerator getStartupLibraries ()
 Returns a simple enumerator to enumerate all startup libraries.
void registerLibrary (in sbILibrary aLibrary, in boolean aLoadAtStartup)
 Runtime registration of a library.
void unregisterLibrary (in sbILibrary aLibrary)
 Runtime removal of a library.
void setLibraryLoadsAtStartup (in sbILibrary aLibrary, in boolean aLoadAtStartup)
 Configures a library to run at startup.
boolean getLibraryLoadsAtStartup (in sbILibrary aLibrary)
 Returns whether or not a library loads at startup.
boolean hasLibrary (in sbILibrary aLibrary)
 Returns whether or not a library has been registered.
void addListener (in sbILibraryManagerListener aListener)
 Adds a listener.
void removeListener (in sbILibraryManagerListener aListener)
 Removes a listener.

Public Attributes

readonly attribute sbILibrary mainLibrary
 Returns the main library.
readonly attribute nsIRDFDataSource dataSource
 RDF datasource that exposes the currently active libraries and library factories.


Detailed Description

Manages the lifecycle of libraries in the system.

See also:
sbILibrary

Definition at line 47 of file sbILibraryManager.idl.


Member Function Documentation

sbILibrary sbILibraryManager::getLibrary ( in AString  aGuid  ) 

Get a library by its guid.

Parameters:
aGuid Guid of the library you seek
Returns:
Library instance identified by the supplied guid

void sbILibraryManager::registerLibrary ( in sbILibrary  aLibrary,
in boolean  aLoadAtStartup 
)

Runtime registration of a library.

Parameters:
aLibrary Library to register
aLoadAtStartup Whether or not the library manager should reload this library at the next startup.

void sbILibraryManager::unregisterLibrary ( in sbILibrary  aLibrary  ) 

Runtime removal of a library.

Parameters:
aLibrary Library to unregister


The documentation for this interface was generated from the following file:
Generated on Tue Mar 10 14:28:59 2009 for Songbird by  doxygen 1.5.2