1 #ifndef SMSEXTENSION_HH
2 #define SMSEXTENSION_HH
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);
Base class of all device/vendor specific confiuration extensions.
Definition: configobject.hh:246
Parse context for config objects.
Definition: configobject.hh:48
Base class for all configuration objects (channels, zones, contacts, etc).
Definition: configobject.hh:40
List class for config objects.
Definition: configobject.hh:349
Base class of all labeled and named objects.
Definition: configobject.hh:199
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
ConfigItem * clone() const
Clones this item.
Definition: smsextension.cc:81
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
SMSTemplate * message(unsigned int i) const
Returns the i-th message.
Definition: smsextension.cc:54
ConfigItem * allocateChild(const YAML::Node &node, ConfigItem::Context &ctx, const ErrorStack &err=ErrorStack())
Allocates a member objects for the given YAML node.
Definition: smsextension.cc:48