Runtime for object property binding source. More...
#include <kanzi/core.ui/binding/data_source_binding_source_runtime.hpp>
Public Member Functions | |
| string | getPath () const |
| Gets path to data object. | |
| ~DataSourceBindingSourceRuntime () 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 DataSourceBindingSource &source) |
| Create a new object property binding target runtime. | |
Protected Attributes | |
| weak_ptr< DataContext > | m_dataContext |
| Data context connected to. | |
| weak_ptr< DataObject > | m_dataObject |
| Data object connected to. | |
| bool | m_dataSourceChangeListenerRequested |
| Boolean flag set to true if data source changes need a listener. | |
| DataObject::ModifiedSubscriptionToken | m_objectSubscription |
| Token for data object subscription. | |
| const DataSourceBindingSource & | m_source |
| Host binding source. | |
| DataSource::ModifiedSubscriptionToken | m_sourceSubscription |
| Token for data object subscription. | |
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). | |
Protected Attributes inherited from kanzi::ObjectPropertyListenerImpl< ResourceSharedPtr, PropertyObjectWeakPtr, PropertyObjectSharedPtr > | |
| PropertyObjectWeakPtr | m_localPropertyListenerObject |
| The object to which the local property listener has been installed. | |
Additional Inherited Members | |
Public Types inherited from kanzi::BindingSourceRuntime | |
| using | BindingProcessorRuntimeConstIterator |
| Binding processor runtime constant iterator type. | |
| using | BindingProcessorRuntimeContainer |
| Binding processor runtime container type. | |
Static Protected Member Functions inherited from kanzi::ObjectPropertyListenerImpl< ResourceSharedPtr, PropertyObjectWeakPtr, PropertyObjectSharedPtr > | |
| static void | localPropertyChangeCallback (PropertyObject &, const ResourceSharedPtr &, PropertyNotificationReason reason, void *userData) |
| Property change callback for object property. | |
Runtime for object property binding source.
|
override |
Destructor.
|
inlineexplicitprotected |
Constructor.
| source | Host object property binding source. |
|
static |
Create a new object property binding target runtime.
| source | Host object property binding target. |
| string kanzi::DataSourceBindingSourceRuntime::getPath | ( | ) | const |
Gets path to data object.
|
protected |
Called when data source changes.
|
protected |
Called when data object within data source changes.
|
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.
|
overrideprotectedvirtual |
|
protected |
Data object connected to.
|
protected |
Data context connected to.
|
protected |
Boolean flag set to true if data source changes need a listener.
|
protected |
Token for data object subscription.
|
protected |
Token for data object subscription.
|
protected |
Host binding source.