#include <sbLibraryManager.h>
Public Member Functions | |
| NS_DECL_ISUPPORTS NS_DECL_NSIOBSERVER NS_DECL_SBILIBRARYMANAGER NS_DECL_SBILIBRARYUTILS | sbLibraryManager () |
| nsresult | Init () |
| Register with the Observer Service. More... | |
Public Member Functions inherited from sbILibraryManager | |
| 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 Member Functions inherited from sbILibraryUtils | |
| nsIURI | getContentURI (in nsIURI aURI) |
| Return a library content URI for the URI specified by aURI. A library content URI is a specially formatted URI for use within Songbird libraries and is formatted to facilitate searching for equivalent URI's (e.g., "file:" URI's are all lower case on Windows). URI's provided to createMediaItem and related methods must be library content URI's. More... | |
| nsIURI | getFileContentURI (in nsIFile aFile) |
| Return a library content URI for the file specified by aFile. Special processing is required to convert an nsIFile to a library content URI (see bug 6227). getFileContentURI must be used instead of nsIIOService.newFileURI for generating library content URI's. More... | |
| nsIFile | getCanonicalPath (in nsIFile aFile) |
| Return the path in a way that is as canonical as possible for the filesystem it resides on; this may include things such as normalizing the case of the file name on case-insensitive filesystems. The result should not be used for comparision (use getFileContentURI for that instead). More... | |
Public Member Functions inherited from sbSupportsWeakReference | |
| sbSupportsWeakReference () | |
Static Public Member Functions | |
| static NS_METHOD | RegisterSelf (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const char *aType, const nsModuleComponentInfo *aInfo) |
Additional Inherited Members | |
Public Attributes inherited from sbILibraryManager | |
| 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... | |
Protected Member Functions inherited from sbSupportsWeakReference | |
| ~sbSupportsWeakReference () | |
| void | ClearWeakReferences () |
| PRBool | HasWeakReferences () const |
Definition at line 65 of file sbLibraryManager.h.
| sbLibraryManager::sbLibraryManager | ( | ) |
| nsresult sbLibraryManager::Init | ( | ) |
Register with the Observer Service.
Definition at line 129 of file sbLibraryManager.cpp.
|
static |
Definition at line 104 of file sbLibraryManager.cpp.