44 #include <nsICategoryManager.h>
45 #include <nsIGenericFactory.h>
46 #include <nsServiceManagerUtils.h>
66 const
char* aLoaderStr,
68 const nsModuleComponentInfo* aInfo)
73 nsCOMPtr<nsICategoryManager> categoryManager =
74 do_GetService(NS_CATEGORYMANAGER_CONTRACTID,
76 NS_ENSURE_SUCCESS(rv, rv);
79 rv = categoryManager->AddCategoryEntry(
"app-startup",
85 NS_ENSURE_SUCCESS(rv, rv);
98 const char* aLoaderStr,
99 const nsModuleComponentInfo* aInfo)
104 nsCOMPtr<nsICategoryManager> categoryManager =
105 do_GetService(NS_CATEGORYMANAGER_CONTRACTID,
107 NS_ENSURE_SUCCESS(rv, rv);
110 rv = categoryManager->DeleteCategoryEntry(
"app-startup",
113 NS_ENSURE_SUCCESS(rv, rv);
126 sbWindowWatcherConstructor,
Songbird Window Watcher Definitions.
static NS_METHOD sbWindowWatcherUnregister(nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const nsModuleComponentInfo *aInfo)
Unregister the Songbird window watcher component.
#define SB_WINDOWWATCHER_CID
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(sbMockDeviceFirmwareHandler, Init)
#define SB_WINDOWWATCHER_CLASSNAME
#define SB_WINDOWWATCHER_CONTRACTID
static const nsModuleComponentInfo components[]
NS_IMPL_NSGETMODULE(SongbirdIdentityServiceComponent, sbIdentityServiceComponent)
static NS_METHOD sbWindowWatcherRegister(nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const char *aType, const nsModuleComponentInfo *aInfo)
Register the Songbird window watcher component.