Describes a Event for a Device. More...
Header: | #include <EventType> |
EventType(const EventTypeId & id) | |
QString | displayName() const |
EventTypeId | id() const |
int | index() const |
bool | isValid() const |
QString | name() const |
ParamTypes | paramTypes() const |
void | setDisplayName(const QString & displayName) |
void | setIndex(const int & index) |
void | setName(const QString & name) |
void | setParamTypes(const ParamTypes & paramTypes) |
QStringList | mandatoryTypeProperties() |
QStringList | typeProperties() |
See also Event and EventDescriptor.
Constructs a EventType object with the given id.
Returns the displayName of this EventType, e.g. "Temperature changed".
See also setDisplayName().
Returns the id.
Returns the index of this EventType. The index of an EventType indicates the order in the DeviceClass. This guarantees that a Device will look always the same (Event order).
See also setIndex().
Returns true if this EventType has a valid id and name
[static]
QStringList EventType::mandatoryTypeProperties()Returns a list of mandatory JSON properties a EventType JSON definition must have.
Returns the name of this EventType.
See also setName().
Holds a List describing possible parameters for a Event of this EventType. e.g. QList(ParamType("temperature", QVariant::Real)).
See also setParamTypes().
Set the displayName for this EventType to displayName, e.g. "Temperature changed".
See also displayName().
Set the index of this EventType.
See also index().
Set the name for this EventType to name.
See also name().
Set the parameter description for this EventType to paramTypes, e.g. QList<ParamType>() << ParamType("temperature", QVariant::Real)).
See also paramTypes().
[static]
QStringList EventType::typeProperties()Returns a list of all valid JSON properties a EventType JSON definition can have.