29 return value.
canConvert<
unsigned>() && (value.
to<
unsigned>() & m_mask);
31 QString convertToQString(
bool =
false)
const {
return QString::number(m_mask); }
32 CTestFilter(
unsigned mask = ~0u) : m_mask(mask) {}
35 unsigned m_mask = ~0u;
41 Q_DECLARE_METATYPE(MiscTest::CTestFilter);
CTestListJournal(QObject *parent)
Ctor.
CTestListMutator(QObject *parent)
Ctor.
CTestListObserver(QObject *parent)
Ctor.
virtual void onElementsReplaced(const QList< int > &)
Called when the whole list is updated wholesale.
virtual void onElementAdded(const int &)
Called when an element matching the filter is added to the list.
CTestScalarJournal(QObject *parent)
Ctor.
CTestScalarMutator(QObject *parent)
Ctor.
Scalar observer subclass.
CTestScalarObserver(QObject *parent)
Ctor.
virtual void onValueChanged(const int &)
Called when the scalar value changes.
Mix of the most commonly used mixin classes.
Wrapper around QVariant which provides transparent access to CValueObject methods of the contained ob...
T to() const
Synonym for value().
bool canConvert(int typeId) const
True if this variant can be converted to the type with the given metatype ID.
Base class for an object that shares state with a corresponding CListObserver subclass object.
CListJournal(QObject *parent)
Constructor.
Base class for an object that shares state with a corresponding CListObserver subclass object.
CListMutator(QObject *parent)
Constructor.
Base class for an object that shares state with a corresponding CListMutator subclass object.
CListObserver(QObject *parent)
Constructor.
Base class for an object that shares state with a corresponding CScalarObserver subclass object.
CScalarJournal(QObject *parent)
Constructor.
Base class for an object that shares state with a corresponding CScalarObserver subclass object.
CScalarMutator(QObject *parent)
Constructor.
Base class for an object that shares state with a corresponding CScalarMutator subclass object.
CScalarObserver(QObject *parent)
Constructor.
#define SWIFT_SHARED_STATE_CHANNEL(ID)
Put this macro in the private section of a class to set the channel of its child endpoints.