41 "SBDataGetStringValue",
44 "SBDataSetStringValue",
47 "SBDataIncrementValue",
48 "SBDataDecrementValue",
49 "SBDataToggleBoolValue",
62 if (typeof(
Cc) ==
"undefined")
63 var
Cc = Components.classes;
64 if (typeof(
Ci) ==
"undefined")
65 var
Ci = Components.interfaces;
66 if (typeof(
Cr) ==
"undefined")
67 var
Cr = Components.results;
68 if (typeof(
Cu) ==
"undefined")
69 var
Cu = Components.utils;
118 var
dataRemote = Cc[
"@songbirdnest.com/Songbird/DataRemote;1"]
119 .createInstance(Ci.sbIDataRemote);
120 dataRemote.init( aKey, aRoot );
147 return data.stringValue;
162 return data.intValue;
175 return data.boolValue;
191 data.stringValue = aStringValue;
208 data.boolValue = aBoolValue;
225 data.intValue = aIntValue;
242 if ( aCeiling ==
null || isNaN(aCeiling) )
243 aCeiling = Number.MAX_VALUE;
246 var newVal = (data.intValue + 1);
247 if ( newVal > aCeiling )
249 data.intValue = newVal;
267 if ( aFloor ==
null || isNaN(aFloor) )
268 aFloor = -Number.MAX_VALUE;
271 var newVal = (data.intValue - 1);
272 if ( newVal < aFloor )
274 data.intValue = newVal;
289 var newVal = !data.boolValue;
290 data.boolValue = newVal;
309 return ++data.intValue;
function SBDataGetIntValue(aKey)
Get the value of the data in integer format.
function SBDataGetStringValue(aKey)
Get the value of the data in string format.
function SBDataToggleBoolValue(aKey)
Change the boolean value. The true/false value of the data associated with the key will be reversed...
function SBDataDeleteBranch(aKey)
Called to remove the data remote specified by aKey and all its children.
function SBDataGetBoolValue(aKey)
Get the value of the data in boolean format.
function SBDataSetIntValue(aKey, aIntValue)
Set an integer value. Changes the value of the data remote to the integer passed in, regardless of its value before.
function SBDataSetBoolValue(aKey, aBoolValue)
Set a boolean value. Changes the value of the data remote to the boolean passed in, regardless of its value before.
function SBNewDataRemote(aKey, aRoot)
Create a new data remote object.
function SB_NewDataRemote(aKey, aRoot)
Create a new data remote object.
function SBDataDecrementValue(aKey, aFloor)
Decrement the integer value. Decrement the integer value associated with the key passed in...
function SBDataFireEvent(aKey)
Cause a notification to be fired. The data associated with the key will be modified so that observers...
function SBDataSetStringValue(aKey, aStringValue)
Set a string value. Changes the value of the data remote to the boolean passed in, regardless of its value before.
function dataRemote(aKey, aRoot)
function SBDataIncrementValue(aKey, aCeiling)
Increment the integer value. Increment the integer value associated with the key passed in...