swift
Public Member Functions | List of all members
MiscTest::CTestListObserver Class Reference

List observer subclass. More...

Inheritance diagram for MiscTest::CTestListObserver:
[legend]

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...
 
- Public Member Functions inherited from swift::misc::shared_state::CListObserver< QList< int >, CTestFilter >
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

- Protected Member Functions inherited from swift::misc::shared_state::CListObserver< QList< int >, CTestFilter >
 CListObserver (QObject *parent)
 Constructor.
 
- Protected Member Functions inherited from swift::misc::shared_state::CGenericListObserver
 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.
 

Detailed Description

List observer subclass.

Definition at line 98 of file testsharedstate.h.

Member Function Documentation

◆ onElementAdded()

virtual void MiscTest::CTestListObserver::onElementAdded ( const int &  )
inlinevirtual

Called when an element matching the filter is added to the list.

Definition at line 110 of file testsharedstate.h.

◆ onElementsReplaced()

virtual void MiscTest::CTestListObserver::onElementsReplaced ( const QList< int > &  )
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.


The documentation for this class was generated from the following file: