sbDataRemoteWrapper Class Reference

#include <sbDataRemoteWrapper.h>

Inheritance diagram for sbDataRemoteWrapper:
[legend]
Collaboration diagram for sbDataRemoteWrapper:
[legend]

Public Member Functions

 sbDataRemoteWrapper ()
 
nsresult InitWrapper ()
 
NS_DECL_ISUPPORTS
NS_DECL_NSICLASSINFO
NS_DECL_NSIOBSERVER
NS_SCRIPTABLE NS_IMETHOD 
Init (const nsAString &aKey, const nsAString &aRoot)
 
NS_SCRIPTABLE NS_IMETHOD BindProperty (nsIDOMElement *aElement, const nsAString &aProperty, PRBool aIsBool, PRBool aIsNot, const nsAString &aEvalString)
 
NS_SCRIPTABLE NS_IMETHOD BindAttribute (nsIDOMElement *aElement, const nsAString &aProperty, PRBool aIsBool, PRBool aIsNot, const nsAString &aEvalString)
 
NS_SCRIPTABLE NS_IMETHOD DeleteBranch ()
 
NS_SCRIPTABLE NS_IMETHOD Unbind (void)
 
NS_SCRIPTABLE NS_IMETHOD BindObserver (nsIObserver *aObserver, PRBool aSuppressFirst)
 
NS_SCRIPTABLE NS_IMETHOD BindRemoteObserver (sbIRemoteObserver *aObserver, PRBool aSuppressFirst)
 
NS_SCRIPTABLE NS_IMETHOD GetStringValue (nsAString &aStringValue)
 
NS_SCRIPTABLE NS_IMETHOD SetStringValue (const nsAString &aStringValue)
 
NS_SCRIPTABLE NS_IMETHOD GetBoolValue (PRBool *aBoolValue)
 
NS_SCRIPTABLE NS_IMETHOD SetBoolValue (PRBool aBoolValue)
 
NS_SCRIPTABLE NS_IMETHOD GetIntValue (PRInt64 *aIntValue)
 
NS_SCRIPTABLE NS_IMETHOD SetIntValue (PRInt64 aIntValue)
 
- Public Member Functions inherited from sbIDataRemote
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. More...
 
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. More...
 
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() with the new value for the data, a handle to the sbDataRemote and the key to which the data belongs. More...
 
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() with the new value for the data, and the key to which the data belongs. More...
 
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 appropriately. More...
 
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 appropriately. More...
 
void deleteBranch ()
 Called to remove the data remote and all its children. More...
 

Additional Inherited Members

- Public Attributes inherited from sbIDataRemote
attribute AString stringValue
 Access to the data in string format In javascript you can access the data as you would properties of a normal js object ( obj.stringValue = "foo" assigns the string foo into the DataRemote ). In c++ you need to call setStringValue("foo") and likewise for the getter. More...
 
attribute boolean boolValue
 Access to the data in boolean format In javascript you can access the data as you would properties of a normal js object ( obj.boolValue = true assigns the boolean true into the DataRemote ). In c++ you need to call setStringValue(true) and likewise for the getter. More...
 
attribute long long intValue
 Access to the data in integer format In javascript you can access the data as you would properties of a normal js object ( obj.intValue = 10 assigns the integer 10 into the DataRemote ). In c++ you need to call setStringValue(10) and likewise for the getter. More...
 

Detailed Description

Definition at line 78 of file sbDataRemoteWrapper.h.

Constructor & Destructor Documentation

sbDataRemoteWrapper::sbDataRemoteWrapper ( )

Member Function Documentation

NS_SCRIPTABLE NS_IMETHOD sbDataRemoteWrapper::BindAttribute ( nsIDOMElement *  aElement,
const nsAString &  aProperty,
PRBool  aIsBool,
PRBool  aIsNot,
const nsAString &  aEvalString 
)
inline

Definition at line 88 of file sbDataRemoteWrapper.h.

NS_IMETHODIMP sbDataRemoteWrapper::BindObserver ( nsIObserver aObserver,
PRBool  aSuppressFirst 
)

Definition at line 122 of file sbDataRemoteWrapper.cpp.

NS_SCRIPTABLE NS_IMETHOD sbDataRemoteWrapper::BindProperty ( nsIDOMElement *  aElement,
const nsAString &  aProperty,
PRBool  aIsBool,
PRBool  aIsNot,
const nsAString &  aEvalString 
)
inline

Definition at line 88 of file sbDataRemoteWrapper.h.

NS_IMETHODIMP sbDataRemoteWrapper::BindRemoteObserver ( sbIRemoteObserver aObserver,
PRBool  aSuppressFirst 
)

Definition at line 131 of file sbDataRemoteWrapper.cpp.

NS_SCRIPTABLE NS_IMETHOD sbDataRemoteWrapper::DeleteBranch ( )
inline

Definition at line 88 of file sbDataRemoteWrapper.h.

NS_IMETHODIMP sbDataRemoteWrapper::GetBoolValue ( PRBool *  aBoolValue)

Definition at line 98 of file sbDataRemoteWrapper.cpp.

NS_IMETHODIMP sbDataRemoteWrapper::GetIntValue ( PRInt64 *  aIntValue)

Definition at line 110 of file sbDataRemoteWrapper.cpp.

NS_IMETHODIMP sbDataRemoteWrapper::GetStringValue ( nsAString &  aStringValue)

Definition at line 86 of file sbDataRemoteWrapper.cpp.

NS_DECL_ISUPPORTS NS_DECL_NSICLASSINFO NS_DECL_NSIOBSERVER NS_SCRIPTABLE NS_IMETHOD sbDataRemoteWrapper::Init ( const nsAString &  aKey,
const nsAString &  aRoot 
)
inline

Definition at line 88 of file sbDataRemoteWrapper.h.

nsresult sbDataRemoteWrapper::InitWrapper ( )

Definition at line 68 of file sbDataRemoteWrapper.cpp.

NS_IMETHODIMP sbDataRemoteWrapper::SetBoolValue ( PRBool  aBoolValue)

Definition at line 103 of file sbDataRemoteWrapper.cpp.

NS_IMETHODIMP sbDataRemoteWrapper::SetIntValue ( PRInt64  aIntValue)

Definition at line 115 of file sbDataRemoteWrapper.cpp.

NS_IMETHODIMP sbDataRemoteWrapper::SetStringValue ( const nsAString &  aStringValue)

Definition at line 91 of file sbDataRemoteWrapper.cpp.

NS_IMETHODIMP sbDataRemoteWrapper::Unbind ( void  )

Definition at line 142 of file sbDataRemoteWrapper.cpp.


The documentation for this class was generated from the following files: