#include <sbPropertyBagUtils.h>
Helper class for property bags.
TODO: Add getter_AddRefs equivalent
Definition at line 261 of file sbPropertyBagUtils.h.
sbPropertyBagHelper::sbPropertyBagHelper |
( |
nsresult * |
aRV = nsnull | ) |
|
|
inline |
Construct a property bag helper object with its own property bag. If aRV is specified, return all error results from all methods in aRV.
- Parameters
-
aRV | Optional. Return value to use for all methods. |
Definition at line 284 of file sbPropertyBagUtils.h.
sbPropertyBagHelper::sbPropertyBagHelper |
( |
nsISupports * |
aPropertyBag, |
|
|
nsresult * |
aRV = nsnull |
|
) |
| |
|
inline |
Construct a property bag helper object using the property bag specified by aPropertyBag. If aRV is specified, return all error results from all methods in aRV.
- Parameters
-
aPropertyBag | Base property bag. |
aRV | Optional. Return value to use for all methods. |
Definition at line 310 of file sbPropertyBagUtils.h.
Return the value of the property with the key specified by aKey.
- Parameters
-
- Returns
- Property value.
Definition at line 364 of file sbPropertyBagUtils.h.
nsIPropertyBag* sbPropertyBagHelper::GetBag |
( |
| ) |
|
|
inline |
PRBool sbPropertyBagHelper::HasKey |
( |
const char * |
aKey | ) |
|
|
inline |
Return true if the property bag has the key specified by aKey.
- Parameters
-
- Returns
- true Property bag has key.
Definition at line 435 of file sbPropertyBagUtils.h.
sbPropertyBagHelper::operator nsIPropertyBag * |
( |
| ) |
const |
|
inline |
sbPropertyBagHelper::operator nsIPropertyBag2 * |
( |
| ) |
const |
|
inline |
sbPropertyBagHelper::operator nsIWritablePropertyBag * |
( |
| ) |
const |
|
inline |
sbPropertyBagHelper::operator nsIWritablePropertyBag2 * |
( |
| ) |
const |
|
inline |
Return the value of the property with the key specified by aKey.
- Parameters
-
- Returns
- Property value.
Definition at line 377 of file sbPropertyBagUtils.h.
sbPropertyHelper sbPropertyBagHelper::operator[] |
( |
const nsACString & |
aKey | ) |
const |
|
inline |
nsresult sbPropertyBagHelper::rv |
( |
| ) |
|
|
inline |
Return the result of the last method called.
- Returns
- Reult of last method called.
Definition at line 454 of file sbPropertyBagUtils.h.
template<class T >
nsresult sbPropertyBagHelper::Set |
( |
char * |
aKey, |
|
|
T |
aValue |
|
) |
| |
|
inline |
Set the value of the property specified by aKey to the value specified by aValue.
- Parameters
-
aKey | Property key. |
aValue | Key value. |
Definition at line 412 of file sbPropertyBagUtils.h.
The documentation for this class was generated from the following file: