4#include "configobject.hh"
15 Q_CLASSINFO(
"IdPrefix",
"sms")
22 Q_INVOKABLE explicit
SMSTemplate(QObject *parent =
nullptr);
72 Q_INVOKABLE
explicit SMSExtension(QObject *parent =
nullptr);
77 Format format()
const;
79 void setFormat(Format format);
ConfigExtension(QObject *parent=nullptr)
Hidden constructor.
Definition configobject.cc:1111
Parse context for config objects.
Definition configobject.hh:48
Base class for all configuration objects (channels, zones, contacts, etc).
Definition configobject.hh:40
virtual ConfigItem * allocateChild(QMetaProperty &prop, const YAML::Node &node, const Context &ctx, const ErrorStack &err=ErrorStack())
Allocates an instance for the given property on the given YAML node.
Definition configobject.cc:490
ConfigItem(QObject *parent=nullptr)
Hidden constructor.
Definition configobject.cc:133
ConfigObjectList(const QMetaObject &elementTypes=ConfigItem::staticMetaObject, QObject *parent=nullptr)
Hidden constructor.
Definition configobject.cc:1388
ConfigObject(QObject *parent=nullptr)
Specifies the prefix for every ID assigned to every object during serialization.
Definition configobject.cc:1018
Implements a stack of error messages to provide a pretty formatted error traceback.
Definition errorstack.hh:41
Extension collecting all settings associated with SMS messages.
Definition smsextension.hh:55
SMSTemplates * _smsTemplates
Owns a reference to the list of SMS templates.
Definition smsextension.hh:88
Format _format
Holds the SMS format.
Definition smsextension.hh:86
Format
Possible SMS formats, DMR is usually a good idea.
Definition smsextension.hh:65
void setFormat(Format format)
Sets the SMS format.
Definition smsextension.cc:73
Format format
The format for the SMS.
Definition smsextension.hh:59
Q_INVOKABLE SMSExtension(QObject *parent=nullptr)
Default constructor.
Definition smsextension.cc:62
SMSTemplates * smsTemplates() const
Retunrs a weak reference to the list of SMS templates.
Definition smsextension.cc:91
SMSTemplates * templates
All predefined SMS messages.
Definition smsextension.hh:61
Represents a SMS message template (pre defined message).
Definition smsextension.hh:11
QString _message
Holds the message text.
Definition smsextension.hh:33
QString message
Specifies the prefix for every ID assigned to every message during serialization.
Definition smsextension.hh:18
Q_INVOKABLE SMSTemplate(QObject *parent=nullptr)
Default constructor.
Definition smsextension.cc:7
ConfigItem * clone() const
Clones this item.
Definition smsextension.cc:14
void setMessage(const QString message)
Sets the message text.
Definition smsextension.cc:29
Just a list, holding the SMS templates.
Definition smsextension.hh:39
Q_INVOKABLE SMSTemplates(QObject *parent=nullptr)
Default constructor.
Definition smsextension.cc:41