swift
|
List observer subclass. More...
Public Member Functions | |
CTestListObserver (QObject *parent) | |
Ctor. | |
Interface implementation | |
virtual void | onElementAdded (const int &) |
Called when an element matching the filter is added to the list. More... | |
virtual void | onElementsReplaced (const QList< int > &) |
Called when the whole list is updated wholesale. More... | |
![]() | |
virtual void | initialize (IDataLink *dataLink) |
Subscribe using the given transport mechanism. | |
void | setFilter (const CTestFilter &filter) |
Set filter to choose list elements. | |
QList< int > | 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. | |
Additional Inherited Members | |
![]() | |
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. | |
List observer subclass.
Definition at line 98 of file testsharedstate.h.
|
inlinevirtual |
Called when an element matching the filter is added to the list.
Definition at line 110 of file testsharedstate.h.
|
inlinevirtual |
Called when the whole list is updated wholesale.
Implements swift::misc::shared_state::CListObserver< QList< int >, CTestFilter >.
Definition at line 113 of file testsharedstate.h.