31 #include "nsISupports.idl"
32 #include "nsIObserver.idl"
34 interface nsIDOMElement;
56 [scriptable,
uuid(0f318938-0ea5-46b6-9e02-fda0ff19cbb7)]
70 void init(in AString aKey, [optional] in AString aRoot);
91 [optional] in
boolean aSuppressFirst);
106 [optional] in
boolean aSuppressFirst);
121 in AString aProperty,
122 [optional] in
boolean aIsBool,
123 [optional] in
boolean aIsNot,
124 [optional] in AString aEvalString);
139 in AString aProperty,
140 [optional] in
boolean aIsBool,
141 [optional] in
boolean aIsNot,
142 [optional] in AString aEvalString);
void deleteBranch()
Called to remove the data remote and all its children.
void bindRemoteObserver(in sbIRemoteObserver aObserver, [optional] in boolean aSuppressFirst)
When the key associated with the sbDataRemote changes the observer will get a callback to observe() w...
An interface for accessing, and binding to, stored data.
void bindProperty(in nsIDOMElement aElement, in AString aProperty, [optional] in boolean aIsBool, [optional] in boolean aIsNot, [optional] in AString aEvalString)
When the key associated with the sbDataRemote changes the property of the element will be modified ap...
void bindObserver(in nsIObserver aObserver, [optional] in boolean aSuppressFirst)
When the key associated with the sbDataRemote changes the observer will get a callback to observe() w...
void init(in AString aKey, [optional] in AString aRoot)
Initialize the DataRemote Sets internal state, MUST be called before any other methods. All other calls will throw exceptions if init has not been called.
attribute AString stringValue
Access to the data in string format In javascript you can access the data as you would properties of ...
attribute boolean boolValue
Access to the data in boolean format In javascript you can access the data as you would properties of...
void unbind()
Disconnect the DataRemote If this DataRemote has been bound via a call to bindObserver(), bindAttribute() or bindProperty() it must be disconnected to prevent calls back to objects that may no longer be around.
attribute long long intValue
Access to the data in integer format In javascript you can access the data as you would properties of...
void bindAttribute(in nsIDOMElement aElement, in AString aProperty, [optional] in boolean aIsBool, [optional] in boolean aIsNot, [optional] in AString aEvalString)
When the key associated with the sbDataRemote changes the attribute of the element will be modified a...
Lightweight Observer style interface for use with sbIRemotePlayer::addListener.