27 #include "nsIGenericFactory.h"
28 #include <nsICategoryManager.h>
29 #include <nsIGenericFactory.h>
30 #include <nsServiceManagerUtils.h>
33 #include <sbIStringTransform.h>
44 const char* aLoaderStr,
46 const nsModuleComponentInfo* aInfo)
51 nsCOMPtr<nsICategoryManager> categoryManager =
52 do_GetService(NS_CATEGORYMANAGER_CONTRACTID,
54 NS_ENSURE_SUCCESS(rv, rv);
57 rv = categoryManager->AddCategoryEntry
64 NS_ENSURE_SUCCESS(rv, rv);
77 const char* aLoaderStr,
78 const nsModuleComponentInfo* aInfo)
83 nsCOMPtr<nsICategoryManager> categoryManager =
84 do_GetService(NS_CATEGORYMANAGER_CONTRACTID,
86 NS_ENSURE_SUCCESS(rv, rv);
89 rv = categoryManager->DeleteCategoryEntry(
"app-startup",
92 NS_ENSURE_SUCCESS(rv, rv);
104 sbStringTransformConstructor,
static NS_METHOD sbStringTransformUnregister(nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const nsModuleComponentInfo *aInfo)
static const nsModuleComponentInfo components[]
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(sbStringTransform, Init)
static NS_METHOD sbStringTransformRegister(nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const char *aType, const nsModuleComponentInfo *aInfo)
NS_IMPL_NSGETMODULE(SongbirdIdentityServiceComponent, sbIdentityServiceComponent)