52 #include <nsICategoryManager.h>
53 #include <nsIGenericFactory.h>
54 #include <nsServiceManagerUtils.h>
74 const
char* aLoaderStr,
76 const nsModuleComponentInfo* aInfo)
81 nsCOMPtr<nsICategoryManager> categoryManager =
82 do_GetService(NS_CATEGORYMANAGER_CONTRACTID,
84 NS_ENSURE_SUCCESS(rv, rv);
87 rv = categoryManager->AddCategoryEntry
94 NS_ENSURE_SUCCESS(rv, rv);
107 const char* aLoaderStr,
108 const nsModuleComponentInfo* aInfo)
113 nsCOMPtr<nsICategoryManager> categoryManager =
114 do_GetService(NS_CATEGORYMANAGER_CONTRACTID,
116 NS_ENSURE_SUCCESS(rv, rv);
119 rv = categoryManager->DeleteCategoryEntry(
"app-startup",
122 NS_ENSURE_SUCCESS(rv, rv);
152 sbTemporaryFileServiceConstructor,
162 sbTemporaryFileFactoryConstructor
static NS_METHOD sbTemporaryFileServiceRegister(nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const char *aType, const nsModuleComponentInfo *aInfo)
Register the Songbird temporary file service component.
#define SB_TEMPORARYFILEFACTORY_CID
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(sbMockDeviceFirmwareHandler, Init)
#define SB_TEMPORARYFILEFACTORY_CLASSNAME
#define SB_TEMPORARYFILESERVICE_CLASSNAME
#define SB_TEMPORARYFILEFACTORY_CONTRACTID
NS_IMPL_NSGETMODULE(SongbirdIdentityServiceComponent, sbIdentityServiceComponent)
static nsModuleComponentInfo sbTemporaryFileServiceComponents[]
#define SB_TEMPORARYFILESERVICE_CONTRACTID
Songbird Temporary File Factory Definitions.
Songbird Temporary File Service Definitions.
#define SB_TEMPORARYFILESERVICE_CID
static NS_METHOD sbTemporaryFileServiceUnregister(nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const nsModuleComponentInfo *aInfo)
Unregister the Songbird temporary file service component.