33 #include "nsISupports.idl"
35 interface nsIRDFDataSource;
46 [scriptable,
uuid(c299b8fc-7aab-4247-a2f8-0ef88b06958f)]
85 in
boolean aLoadAtStartup);
97 in
boolean aLoadAtStartup);
124 #define SB_LIBRARY_MANAGER_READY_TOPIC "songbird-library-manager-ready"
128 #define SB_LIBRARY_MANAGER_BEFORE_SHUTDOWN_TOPIC "songbird-library-manager-before-shutdown"
132 #define SB_LIBRARY_MANAGER_SHUTDOWN_TOPIC "songbird-library-manager-shutdown"
136 #define SB_LIBRARY_MANAGER_AFTER_SHUTDOWN_TOPIC "songbird-library-manager-after-shutdown"
Manages the lifecycle of libraries in the system.
void addListener(in sbILibraryManagerListener aListener)
Adds a listener.
readonly attribute nsIRDFDataSource dataSource
RDF datasource that exposes the currently active libraries and library factories. ...
void setLibraryLoadsAtStartup(in sbILibrary aLibrary, in boolean aLoadAtStartup)
Configures a library to run at startup.
Factory for new library instances.
readonly attribute sbILibrary mainLibrary
Returns the main library.
nsISimpleEnumerator getLibraries()
Returns a simple enumerator to enumerate all registered libraries.
Manages the lifecycle of libraries in the system.
boolean hasLibrary(in sbILibrary aLibrary)
Returns whether or not a library has been registered.
Media library abstraction.
void removeListener(in sbILibraryManagerListener aListener)
Removes a listener.
nsISimpleEnumerator getStartupLibraries()
Returns a simple enumerator to enumerate all startup libraries.
void registerLibrary(in sbILibrary aLibrary, in boolean aLoadAtStartup)
Runtime registration of a library.
sbILibrary getLibrary(in AString aGuid)
Get a library by its guid.
void unregisterLibrary(in sbILibrary aLibrary)
Runtime removal of a library.
boolean getLibraryLoadsAtStartup(in sbILibrary aLibrary)
Returns whether or not a library loads at startup.