nymea/libnymea/types/interfaceeventtype.cpp

33 lines
595 B
C++

#include "interfaceeventtype.h"
InterfaceEventType::InterfaceEventType()
{
}
bool InterfaceEventType::optional() const
{
return m_optional;
}
void InterfaceEventType::setOptional(bool optional)
{
m_optional = optional;
}
InterfaceEventTypes::InterfaceEventTypes(const QList<InterfaceEventType> &other):
QList<InterfaceEventType>(other)
{
}
InterfaceEventType InterfaceEventTypes::findByName(const QString &name)
{
foreach (const InterfaceEventType &iet, *this) {
if (iet.name() == name) {
return iet;
}
}
return InterfaceEventType();
}