25 #ifndef SBSTATUSPROPERTYVALUE_H_
26 #define SBSTATUSPROPERTYVALUE_H_
29 #include <nsStringAPI.h>
63 PRInt32
const pipe = aValue.FindChar(
'|');
66 nsDependentSubstring
const & modeString = Substring(aValue, 0, pipe);
68 PRInt32
const mode = modeString.ToInteger(&rv);
69 NS_ENSURE_SUCCESS(rv, );
89 NS_WARNING(
"Invalid mode value for status property");
93 PRInt32
const currentValue = Substring(aValue, pipe + 1).ToInteger(&rv);
94 if (NS_SUCCEEDED(rv)) {
95 mCurrent = currentValue;
138 value.AppendLiteral(
"|100");
141 value.AppendLiteral(
"|");
nsString GetValue() const
sbStatusPropertyValue(const nsAString &aValue)
void SetCurrent(PRUint32 aCurrent)
PRUint32 GetCurrent() const