sbPrefBranch Class Reference

#include <sbPrefBranch.h>

Public Member Functions

 sbPrefBranch (const char *aRoot, nsresult *aResult)
 
PRBool GetBoolPref (const char *aKey, PRBool aDefault)
 
nsresult SetBoolPref (const char *aKey, PRBool aValue)
 
PRInt32 GetIntPref (const char *aKey, const PRInt32 aDefault)
 
nsresult SetIntPref (const char *aKey, const PRInt32 aValue)
 
nsCString GetCharPref (const char *aKey, const nsCString &aDefault)
 
nsresult SetCharPref (const char *aKey, const nsCString &aValue)
 
nsresult GetPreference (const nsAString &aPrefName, nsIVariant **_retval)
 

Detailed Description

Helper class for preferences to make the syntax a bit easier on the eyes This can be used on non-main threads but each instance must only be used by the thread that created it.

Definition at line 45 of file sbPrefBranch.h.

Constructor & Destructor Documentation

sbPrefBranch::sbPrefBranch ( const char *  aRoot,
nsresult *  aResult 
)
inline

Initialize the pref branch with the specified branch. A null means the root.

Definition at line 52 of file sbPrefBranch.h.

Here is the call graph for this function:

Member Function Documentation

PRBool sbPrefBranch::GetBoolPref ( const char *  aKey,
PRBool  aDefault 
)
inline

Definition at line 109 of file sbPrefBranch.h.

Here is the caller graph for this function:

nsCString sbPrefBranch::GetCharPref ( const char *  aKey,
const nsCString &  aDefault 
)
inline

Definition at line 148 of file sbPrefBranch.h.

PRInt32 sbPrefBranch::GetIntPref ( const char *  aKey,
const PRInt32  aDefault 
)
inline

Definition at line 128 of file sbPrefBranch.h.

Here is the caller graph for this function:

nsresult sbPrefBranch::GetPreference ( const nsAString &  aPrefName,
nsIVariant **  _retval 
)
inline

Definition at line 170 of file sbPrefBranch.h.

Here is the caller graph for this function:

nsresult sbPrefBranch::SetBoolPref ( const char *  aKey,
PRBool  aValue 
)
inline

Definition at line 121 of file sbPrefBranch.h.

Here is the caller graph for this function:

nsresult sbPrefBranch::SetCharPref ( const char *  aKey,
const nsCString &  aValue 
)
inline

Definition at line 162 of file sbPrefBranch.h.

nsresult sbPrefBranch::SetIntPref ( const char *  aKey,
const PRInt32  aValue 
)
inline

Definition at line 140 of file sbPrefBranch.h.


The documentation for this class was generated from the following file: