swift
|
Base class for an object that shares state with a corresponding CListMutator subclass object. More...
Public Member Functions | |
virtual void | initialize (IDataLink *dataLink) |
Subscribe using the given transport mechanism. | |
void | setFilter (const U &filter) |
Set filter to choose list elements. | |
T | allValues () const |
Get list value containing all elements matching the filter. | |
virtual void | onElementAdded (const typename T::value_type &value)=0 |
Called when an element matching the filter is added to the list. | |
virtual void | onElementsReplaced (const T &values)=0 |
Called when the whole list is updated wholesale. | |
Protected Member Functions | |
CListObserver (QObject *parent) | |
Constructor. | |
![]() | |
CGenericListObserver (QObject *parent) | |
Constructor. | |
void | setFilter (const CVariant &filter) |
Set list filter as variant. | |
CVariantList | allValues () const |
Get filtered list value as variant list. | |
int | cleanValues () |
Remove any old values that no longer match the filter. | |
Base class for an object that shares state with a corresponding CListMutator subclass object.
T | Datatype encapsulating the state to be shared. |
U | Datatype describing a filter to apply to the list. |
Definition at line 62 of file listobserver.h.