33 #include "nsISupports.idl"
43 [scriptable,
uuid(816e9cbe-e635-4abc-944f-aa4fa5ec918a)]
64 in
boolean aLoadAtStartup);
69 #include <nsICategoryManager.h>
70 #include <nsIComponentManager.h>
74 #include <nsServiceManagerUtils.h>
75 #include <nsStringGlue.h>
76 #include <nsXPCOMCID.h>
78 #define SB_LIBRARY_LOADER_CATEGORY "songbird-library-loader"
103 #define SB_LIBRARY_LOADER_REGISTRATION(_name, _desc) \
106 _name##RegisterSelf(nsIComponentManager* aCompMgr, \
108 const char* registryLocation, \
109 const char* componentType, \
110 const nsModuleComponentInfo* info) \
113 nsCOMPtr<nsICategoryManager> catMan = \
114 do_GetService(NS_CATEGORYMANAGER_CONTRACTID, &rv); \
115 NS_ENSURE_SUCCESS(rv, rv); \
117 rv = catMan->AddCategoryEntry(SB_LIBRARY_LOADER_CATEGORY, \
122 NS_ENSURE_SUCCESS(rv, rv); \
128 _name##UnregisterSelf(nsIComponentManager* aCompMgr, \
130 const char* registryLocation, \
131 const nsModuleComponentInfo* info) \
134 nsCOMPtr<nsICategoryManager> catMan = \
135 do_GetService(NS_CATEGORYMANAGER_CONTRACTID, &rv); \
136 NS_ENSURE_SUCCESS(rv, rv); \
138 rv = catMan->DeleteCategoryEntry(SB_LIBRARY_LOADER_CATEGORY, \
141 NS_ENSURE_SUCCESS(rv, rv); \
Manages the lifecycle of libraries in the system.
void onRegisterStartupLibraries(in sbILibraryManager aLibraryManager)
Called when the loader sohould register all startup libraries with the Library Manager.
Media library abstraction.
[USER CODE SHOULD NOT REFERENCE THIS CLASS]
void onLibraryStartupModified(in sbILibrary aLibrary, in boolean aLoadAtStartup)
Called when a user action has altered the startup status of one of the libraries controlled by this l...