#include <sbPrefBranch.h>
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.
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.
PRBool sbPrefBranch::GetBoolPref |
( |
const char * |
aKey, |
|
|
PRBool |
aDefault |
|
) |
| |
|
inline |
nsCString sbPrefBranch::GetCharPref |
( |
const char * |
aKey, |
|
|
const nsCString & |
aDefault |
|
) |
| |
|
inline |
PRInt32 sbPrefBranch::GetIntPref |
( |
const char * |
aKey, |
|
|
const PRInt32 |
aDefault |
|
) |
| |
|
inline |
nsresult sbPrefBranch::GetPreference |
( |
const nsAString & |
aPrefName, |
|
|
nsIVariant ** |
_retval |
|
) |
| |
|
inline |
nsresult sbPrefBranch::SetBoolPref |
( |
const char * |
aKey, |
|
|
PRBool |
aValue |
|
) |
| |
|
inline |
nsresult sbPrefBranch::SetCharPref |
( |
const char * |
aKey, |
|
|
const nsCString & |
aValue |
|
) |
| |
|
inline |
nsresult sbPrefBranch::SetIntPref |
( |
const char * |
aKey, |
|
|
const PRInt32 |
aValue |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file:
- /home/martin/dev/nightingale-hacking/components/include/sbPrefBranch.h