Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsConfigFactory.cpp File Reference
#include "nsIGenericFactory.h"
#include "nsAutoConfig.h"
#include "nsReadConfig.h"
#include "nsIAppStartupNotifier.h"
#include "nsICategoryManager.h"

Go to the source code of this file.

Functions

static NS_METHOD RegisterReadConfig (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info)
static NS_METHOD UnRegisterReadConfig (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const nsModuleComponentInfo *info)

Variables

static const nsModuleComponentInfo components []

Function Documentation

static NS_METHOD RegisterReadConfig ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  registryLocation,
const char *  componentType,
const nsModuleComponentInfo info 
) [static]

Definition at line 58 of file nsConfigFactory.cpp.

{
  nsresult rv;
  nsCOMPtr<nsICategoryManager> 
    categoryManager(do_GetService(NS_CATEGORYMANAGER_CONTRACTID, &rv));
  if (NS_SUCCEEDED(rv)) {
    rv = categoryManager->AddCategoryEntry("pref-config-startup", 
                                           "ReadConfig Module",
                                           NS_READCONFIG_CONTRACTID,
                                           PR_TRUE, PR_TRUE, nsnull);
  }
  return rv;
}

Here is the call graph for this function:

static NS_METHOD UnRegisterReadConfig ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  registryLocation,
const nsModuleComponentInfo info 
) [static]

Definition at line 77 of file nsConfigFactory.cpp.

{
  nsresult rv;
  nsCOMPtr<nsICategoryManager> 
    categoryManager(do_GetService(NS_CATEGORYMANAGER_CONTRACTID, &rv));
  if (NS_SUCCEEDED(rv)) {
    rv = categoryManager->DeleteCategoryEntry(APPSTARTUP_CATEGORY,
                                              "ReadConfig Module", PR_TRUE);
  }
  return rv;
}

Here is the call graph for this function:


Variable Documentation