Runtime for object property binding source. More...
#include <kanzi/core.ui/binding/resource_binding_source_runtime.hpp>
Public Types | |
| using | ResourceListener |
| Resource listener type. | |
| using | ResourceListenerPtr |
| Resource listener unique pointer type. | |
Public Types inherited from kanzi::BindingSourceRuntime | |
| using | BindingProcessorRuntimeConstIterator |
| Binding processor runtime constant iterator type. | |
| using | BindingProcessorRuntimeContainer |
| Binding processor runtime container type. | |
Public Member Functions | |
| ResourceID | getResourceID () const |
| Gets path to object. | |
| ~ResourceBindingSourceRuntime () override | |
| Destructor. | |
Public Member Functions inherited from kanzi::BindingSourceRuntime | |
| void | attachForRead () |
| Attaches the binding source runtime for reading. | |
| void | attachForWrite () |
| Attaches the binding source runtime for writing. | |
| BindingProcessorRuntimeConstIterator | beginProcessorRuntimes () const |
| Gets an iterator to the beginning of binding processors. | |
| void | createBindingProcessorRuntimes (const AbstractBinding &binding) |
| Creates a processor runtime for each BindingProcessor held by the binding parameter. | |
| void | detach () |
| Detaches the binding source runtime. | |
| BindingProcessorRuntimeConstIterator | endProcessorRuntimes () const |
| Gets an iterator to the end of binding processors. | |
| AbstractBindingRuntime * | getBindingRuntime () const |
| Gets the binding runtime. | |
| BindingLookupContext & | getLookupContext () const |
| Gets the lookup context. | |
| bool | isConnected () |
| Indicates whether this source is connected. | |
| bool | read (Variant &value) |
| Reads a value from binding source. | |
| void | setBindingRuntime (AbstractBindingRuntime &bindingRuntime) |
| Sets the binding runtime. | |
| bool | write (const Variant &value) |
| Writes a value to binding source. | |
| virtual | ~BindingSourceRuntime ()=default |
| Destructor. | |
Static Public Member Functions | |
| static BindingSourceRuntimePtr | create (const ResourceBindingSource &source) |
| Create a resource binding source runtime. | |
Protected Member Functions | |
| void | attachForReadOverride () override |
| BindingSourceRuntime::attachForReadOverride() implementation. | |
| void | attachForWriteOverride () override |
| BindingSourceRuntime::attachForWriteOverride() implementation. | |
| void | detachOverride () override |
| BindingSourceRuntime::detachOverride() implementation. | |
| bool | isConnectedOverride () override |
| BindingSourceRuntime::isConnectedOverride() implementation. | |
| bool | readOverride (Variant &value) override |
| BindingSourceRuntime::readOverride() implementation. | |
| ResourceBindingSourceRuntime (const ResourceBindingSource &source) | |
| Constructor. | |
| void | resourceCallback () |
| Callback for resource change. | |
| bool | writeOverride (const Variant &value) override |
| BindingSourceRuntime::writeOverride() implementation. | |
Protected Member Functions inherited from kanzi::BindingSourceRuntime | |
| BindingSourceRuntime ()=default | |
| Constructor. | |
Protected Attributes | |
| ResourceListenerPtr | m_listener |
| Listener for resource changes. | |
| const ResourceBindingSource & | m_source |
| Host binding source. | |
Protected Attributes inherited from kanzi::BindingSourceRuntime | |
| AbstractBindingRuntime * | m_bindingRuntime |
| Abstract binding runtime for this source. | |
| BindingProcessorRuntimeContainer | m_processorRuntimes |
| Binding processors (for the source, forward direction). | |
Runtime for object property binding source.
Resource listener type.
Resource listener unique pointer type.
|
override |
Destructor.
|
inlineexplicitprotected |
Constructor.
| source | Host object property binding source. |
|
static |
Create a resource binding source runtime.
| source | Host object property binding target. |
| ResourceID kanzi::ResourceBindingSourceRuntime::getResourceID | ( | ) | const |
Gets path to object.
Required by inheriting classes.
|
protected |
Callback for resource change.
|
overrideprotectedvirtual |
BindingSourceRuntime::attachForReadOverride() implementation.
Implements kanzi::BindingSourceRuntime.
|
overrideprotectedvirtual |
BindingSourceRuntime::attachForWriteOverride() implementation.
Implements kanzi::BindingSourceRuntime.
|
overrideprotectedvirtual |
BindingSourceRuntime::detachOverride() implementation.
Implements kanzi::BindingSourceRuntime.
BindingSourceRuntime::readOverride() implementation.
Implements kanzi::BindingSourceRuntime.
|
overrideprotectedvirtual |
BindingSourceRuntime::writeOverride() implementation.
Reimplemented from kanzi::BindingSourceRuntime.
|
overrideprotectedvirtual |
BindingSourceRuntime::isConnectedOverride() implementation.
Implements kanzi::BindingSourceRuntime.
|
protected |
Listener for resource changes.
|
protected |
Host binding source.