Runtime for object property binding source. More...
#include <kanzi/core.ui/binding/typed_object_property_binding_source_runtime.hpp>
Public Member Functions | |
~TypedObjectPropertyBindingSourceRuntime () override | |
Destructor. More... | |
Public Member Functions inherited from kanzi::ObjectPropertyBindingSourceRuntime | |
string | getPath () const |
Gets path to object. More... | |
PropertyField | getPropertyField () const |
Gets property field. More... | |
AbstractPropertyType | getPropertyType () const |
Gets property type. More... | |
Public Member Functions inherited from kanzi::BindingSourceRuntime | |
void | attachForRead () |
Attaches the binding source runtime for reading. More... | |
void | attachForWrite () |
Attaches the binding source runtime for writing. More... | |
BindingProcessorRuntimeConstIterator | beginProcessorRuntimes () const |
Gets an iterator to the beginning of binding processors. More... | |
void | createBindingProcessorRuntimes (const AbstractBinding &binding) |
Creates a processor runtime for each BindingProcessor held by the binding parameter. More... | |
void | detach () |
Detaches the binding source runtime. More... | |
BindingProcessorRuntimeConstIterator | endProcessorRuntimes () const |
Gets an iterator to the end of binding processors. More... | |
AbstractBindingRuntime * | getBindingRuntime () const |
Gets the binding runtime. More... | |
BindingLookupContext & | getLookupContext () const |
Gets the lookup context. More... | |
bool | isConnected () |
Indicates whether this source is connected. More... | |
bool | read (Variant &value) |
Reads a value from binding source. More... | |
void | setBindingRuntime (AbstractBindingRuntime &bindingRuntime) |
Sets the binding runtime. More... | |
bool | write (const Variant &value) |
Writes a value to binding source. More... | |
virtual | ~BindingSourceRuntime ()=default |
Destructor. More... | |
Public Member Functions inherited from kanzi::BindingLookupNotificationBase | |
void | clearLocalNotificationFlag () |
Clears local notification flag. More... | |
bool | isGlobalNotificationInstalled () const |
Tells if this a global notification has been registered. More... | |
bool | isLocalNotificationInstalled () const |
Tells if this a local notification has been registered. More... | |
void | registerGlobalNotification (BindingLookupContext &lookupContext, string_view path) |
Installs a global notification listener. More... | |
void | registerLocalNotification (BindingLookupContext &lookupContext, PropertyObject *object, string_view path) |
Installs a local notification listener. More... | |
void | registerLocalNotification (BindingLookupContext &lookupContext, PropertyObject &object, string_view path) |
Installs a local notification listener. More... | |
void | unregisterGlobalNotification (BindingLookupContext &lookupContext, string_view path) |
Uninstalls a global notification listener. More... | |
void | unregisterLocalNotification (BindingLookupContext &lookupContext, PropertyObject *object, string_view path) |
Removes a local notification listener. More... | |
void | unregisterLocalNotification (BindingLookupContext &lookupContext, PropertyObject &object, string_view path) |
Removes a local notification listener. More... | |
~BindingLookupNotificationBase () | |
Destructor. More... | |
Static Public Member Functions | |
static BindingSourceRuntimePtr | create (const ObjectPropertyBindingSource &source) |
Creates a typed object property binding source runtime. More... | |
Protected Types | |
using | ObjectPropertyListenerType = ObjectPropertyListenerImpl< T, PropertyObject *, PropertyObject & > |
Type name for object property listener. More... | |
Protected Attributes | |
bool | m_localPropertyListenerRequested |
Is the local property listener requested? More... | |
PropertyObjectWeakPtr | m_object |
Property object attached to. More... | |
Protected Attributes inherited from kanzi::ObjectPropertyBindingSourceRuntime | |
const ObjectPropertyBindingSource & | m_source |
Host binding source. More... | |
Protected Attributes inherited from kanzi::BindingSourceRuntime | |
AbstractBindingRuntime * | m_bindingRuntime |
Abstract binding runtime for this source. More... | |
BindingProcessorRuntimeContainer | m_processorRuntimes |
Binding processors (for the source, forward direction). More... | |
Protected Attributes inherited from kanzi::BindingLookupNotificationBase | |
bool | m_globalNotificationInstalled |
Is the global notification listener installed? More... | |
bool | m_localNotificationInstalled |
Is the local notification listener installed? More... | |
Protected Attributes inherited from kanzi::ObjectPropertyListenerImpl< T, PropertyObject *, PropertyObject & > | |
PropertyObject * | m_localPropertyListenerObject |
The object to which the local property listener has been installed. More... | |
Additional Inherited Members | |
Public Types inherited from kanzi::BindingSourceRuntime | |
using | BindingProcessorRuntimeConstIterator = BindingProcessorRuntimeContainer::const_iterator |
Binding processor runtime constant iterator type. More... | |
using | BindingProcessorRuntimeContainer = vector< BindingProcessorRuntimePtr > |
Binding processor runtime container type. More... | |
Static Protected Member Functions inherited from kanzi::ObjectPropertyListenerImpl< T, PropertyObject *, PropertyObject & > | |
static void | localPropertyChangeCallback (PropertyObject &, const T &, PropertyNotificationReason reason, void *userData) |
Property change callback for object property. More... | |
Runtime for object property binding source.
|
protected |
Type name for object property listener.
|
inlineoverride |
Destructor.
|
inlineexplicitprotected |
Constructor.
source | Host object property binding source. |
|
inlinestatic |
Creates a typed object property binding source runtime.
source | Host object property binding source. |
|
inlineoverrideprotectedvirtual |
BindingSourceRuntime::attachOverride() implementation.
Implements kanzi::BindingSourceRuntime.
|
inlineoverrideprotectedvirtual |
BindingSourceRuntime::attachForReadOverride() implementation.
Implements kanzi::BindingSourceRuntime.
|
inlineoverrideprotectedvirtual |
BindingSourceRuntime::detachOverride() implementation.
Implements kanzi::BindingSourceRuntime.
|
inlineoverrideprotectedvirtual |
BindingSourceRuntime::isConnectedOverride() implementation.
Implements kanzi::BindingSourceRuntime.
|
inlineoverrideprotectedvirtual |
BindingSourceRuntime::readOverride() implementation.
Implements kanzi::BindingSourceRuntime.
|
inlineoverrideprotectedvirtual |
BindingSourceRuntime::writeOverride() implementation.
Reimplemented from kanzi::BindingSourceRuntime.
|
inlineoverrideprotectedvirtual |
BindingLookupNotificationImpl::onGlobalLookupNotification() implementation.
Implements kanzi::BindingLookupNotificationBase.
|
inlineoverrideprotectedvirtual |
BindingLookupNotificationImpl::onLocalLookupNotification() implementation.
Implements kanzi::BindingLookupNotificationBase.
|
inlineoverrideprotectedvirtual |
|
protected |
Property object attached to.
|
protected |
Is the local property listener requested?