@mozilla.org/preferences;1

This component implements the following interfaces:

Constants

PRInt32 nsIPref.ePrefInvalid = 0
PRInt32 nsIPref.ePrefLocked = 1
PRInt32 nsIPref.ePrefUserset = 2
PRInt32 nsIPref.ePrefConfig = 4
PRInt32 nsIPref.ePrefRemote = 8
PRInt32 nsIPref.ePrefLilocal = 16
PRInt32 nsIPref.ePrefString = 32
PRInt32 nsIPref.ePrefInt = 64
PRInt32 nsIPref.ePrefBool = 128
PRInt32 nsIPref.ePrefValuetypeMask = 224
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 )
nsIPref void ClearUserPref ( char* prefName )
nsIPref char* CopyCharPref ( char* pref )
nsIPref char* CopyDefaultCharPref ( char* pref )
nsIPref PRUnichar* CopyDefaultUnicharPref ( char* pref )
nsIPref PRUnichar* CopyUnicharPref ( char* pref )
nsIPrefBranch void deleteBranch ( char* startingAt )
nsIPref void DeleteBranch ( char* startingAt )
nsIPref [noscript] void EnumerateChildren ( char* parent , PrefEnumerationFunc callback , voidPtr* data )
nsIPrefBranch PRBool getBoolPref ( char* prefName )
nsIPref PRBool GetBoolPref ( char* prefName )
nsIPrefService nsIPrefBranch getBranch ( char* prefRoot )
nsIPrefBranch char* getCharPref ( char* prefName )
nsIPref 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 )
nsIPref PRBool GetDefaultBoolPref ( char* pref )
nsIPrefService nsIPrefBranch getDefaultBranch ( char* prefRoot )
nsIPref PRInt32 GetDefaultIntPref ( char* pref )
nsIPref PRUnichar* getDefaultLocalizedUnicharPref ( char* pref )
nsIPref nsIFileSpec GetFilePref ( char* pref )
nsIPref nsILocalFile getFileXPref ( char* pref )
nsIPrefBranch PRInt32 getIntPref ( char* prefName )
nsIPref PRInt32 GetIntPref ( char* prefName )
nsIPref PRUnichar* getLocalizedUnicharPref ( char* pref )
nsIPrefBranch PRInt32 getPrefType ( char* prefName )
nsIPref 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 )
nsIPref PRBool PrefIsLocked ( char* prefName )
nsIPrefService void readUserPrefs ( nsIFile file )
nsIPref [noscript] void RegisterCallback ( char* domain , PrefChangedFunc callback , voidPtr* closure )
nsIPrefBranch2 void removeObserver ( char* domain , nsIObserver observer )
nsIPrefBranch void resetBranch ( char* startingAt )
nsIPrefService void resetPrefs ( )
nsIPref void ResetPrefs ( )
nsIPref void ResetUserPrefs ( )
nsIPrefService void resetUserPrefs ( )
nsIPrefService void savePrefFile ( nsIFile file )
nsIPrefBranch void setBoolPref ( char* prefName , PRInt32 value )
nsIPref void SetBoolPref ( char* prefName , PRInt32 value )
nsIPrefBranch void setCharPref ( char* prefName , char* value )
nsIPref void SetCharPref ( char* prefName , char* value )
nsIPrefBranch void setComplexValue ( char* prefName , nsIIDRef type , nsISupports value )
nsIPref void SetDefaultBoolPref ( char* pref , PRBool value )
nsIPref void SetDefaultCharPref ( char* pref , char* value )
nsIPref void SetDefaultIntPref ( char* pref , PRInt32 value )
nsIPref void SetDefaultUnicharPref ( char* pref , PRUnichar* value )
nsIPref void SetFilePref ( char* pref , nsIFileSpec value , PRBool setDefault )
nsIPref void setFileXPref ( char* pref , nsILocalFile value )
nsIPrefBranch void setIntPref ( char* prefName , PRInt32 value )
nsIPref void SetIntPref ( char* prefName , PRInt32 value )
nsIPref void SetUnicharPref ( char* pref , PRUnichar* value )
nsIPrefBranch void unlockPref ( char* prefName )
nsIPref [noscript] void UnregisterCallback ( char* domain , PrefChangedFunc callback , voidPtr* closure )

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com