Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsSystemPrefFactory.cpp File Reference
#include "nsICategoryManager.h"
#include "nsIGenericFactory.h"
#include "nsSystemPref.h"
#include "nsSystemPrefService.h"

Go to the source code of this file.

Functions

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

Variables

static const nsModuleComponentInfo components []

Function Documentation

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

Definition at line 54 of file nsSystemPrefFactory.cpp.

{
    nsresult rv;

    nsCOMPtr<nsICategoryManager>
        categoryManager(do_GetService(NS_CATEGORYMANAGER_CONTRACTID, &rv));
    if (NS_SUCCEEDED(rv)) {
        rv = categoryManager->AddCategoryEntry(APPSTARTUP_CATEGORY,
                                               "SystemPref Module",
                                               NS_SYSTEMPREF_CONTRACTID,
                                               PR_TRUE, PR_TRUE, nsnull);
    }

    return rv;
}

Here is the call graph for this function:

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

Definition at line 75 of file nsSystemPrefFactory.cpp.

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

Here is the call graph for this function:


Variable Documentation