@mozilla.org/preferences-service;1

This component implements the following interfaces:

Constants

Values describing the basic preference types.

PRInt32 nsIPrefBranch.PREF_INVALID = 0
PRInt32 nsIPrefBranch.PREF_STRING = 32
PRInt32 nsIPrefBranch.PREF_INT = 64
PRInt32 nsIPrefBranch.PREF_BOOL = 128

Properties

readonly char* nsIPrefBranch.root

Called to get the root on which this branch is based, such as "browser.startup."

Methods

InterfaceMethod
nsIPrefBranch2 void addObserver ( char* domain , nsIObserver observer , PRBool holdWeak )
nsIPrefBranch void clearUserPref ( char* prefName )
nsIPrefBranch void deleteBranch ( char* startingAt )
nsIPrefBranch PRBool getBoolPref ( char* prefName )
nsIPrefService nsIPrefBranch getBranch ( char* prefRoot )
nsIPrefBranch char* getCharPref ( char* prefName )
nsIPrefBranch void getChildList ( char* startingAt , out PRUint32 count , out arrayof char* childArray )
nsIPrefBranch void getComplexValue ( char* prefName , nsIIDRef type , out nsQIResult* value )
nsIPrefService nsIPrefBranch getDefaultBranch ( char* prefRoot )
nsIPrefBranch PRInt32 getIntPref ( char* prefName )
nsIPrefBranch PRInt32 getPrefType ( char* prefName )
nsISupportsWeakReference nsIWeakReference GetWeakReference ( )
nsIPrefBranch void lockPref ( char* prefName )
nsIObserver void observe ( nsISupports subject , char* topic , PRUnichar* data )
nsIPrefBranch PRBool prefHasUserValue ( char* prefName )
nsIPrefBranch PRBool prefIsLocked ( char* prefName )
nsIPrefService void readUserPrefs ( nsIFile file )
nsIPrefBranch2 void removeObserver ( char* domain , nsIObserver observer )
nsIPrefBranch void resetBranch ( char* startingAt )
nsIPrefService void resetPrefs ( )
nsIPrefService void resetUserPrefs ( )
nsIPrefService void savePrefFile ( nsIFile file )
nsIPrefBranch void setBoolPref ( char* prefName , PRInt32 value )
nsIPrefBranch void setCharPref ( char* prefName , char* value )
nsIPrefBranch void setComplexValue ( char* prefName , nsIIDRef type , nsISupports value )
nsIPrefBranch void setIntPref ( char* prefName , PRInt32 value )
nsIPrefBranch void unlockPref ( char* prefName )

Reference documentation is generated from Mozilla's source.