30 Q_PROPERTY(
QString headline READ headline)
31 Q_PROPERTY(
QString description READ description)
32 Q_PROPERTY(
QString event READ event)
33 Q_PROPERTY(
QDateTime effectiveTime READ effectiveTime)
34 Q_PROPERTY(
QDateTime onsetTime READ onsetTime)
35 Q_PROPERTY(
QDateTime expireTime READ expireTime)
36 Q_PROPERTY(
Categories categories READ categories)
37 Q_PROPERTY(Urgency urgency READ urgency)
38 Q_PROPERTY(Severity severity READ severity)
39 Q_PROPERTY(Certainty certainty READ certainty)
40 Q_PROPERTY(
QString sender READ sender)
41 Q_PROPERTY(
QString instruction READ instruction)
42 Q_PROPERTY(
QString language READ language)
44 Q_PROPERTY(
QString contact READ contact)
45 Q_PROPERTY(
QString web READ web)
51 Meteorological = 0b10,
57 Environmental = 0b10000000,
58 Transport = 0b100000000,
59 Infrastructure = 0b1000000000,
60 CBRNE = 0b10000000000,
61 Other = 0b100000000000
65 enum class Urgency { Immediate, Expected, Future, Past, UnknownUrgency };
67 enum class Severity { Extreme, Severe, Moderate, Minor, UnknownSeverity };
69 enum class Certainty { Observed, Likely, Possible, Unlikely, UnknownCertainty };
72 enum class ResponseType {
73 UnknownResponseType = 0,
139 Urgency urgency()
const;
144 Severity severity()
const;
149 Certainty certainty()
const;
166 const std::vector<CAPNamedValue> ¶meters()
const;
168 const std::vector<CAPArea> &areas()
const;
170 const std::vector<CAPNamedValue> &eventCodes()
const;
173 void setHeadline(
const QString &headline);
174 void setDescription(
const QString &description);
175 void setInstruction(
const QString &instruction);
176 void setSender(
const QString &sender);
177 void setLanguage(
const QString &language);
178 void addCategory(Category category);
179 void setEvent(
const QString &event);
180 void setEffectiveTime(
const QDateTime &time);
181 void setOnsetTime(
const QDateTime &time);
182 void setExpireTime(
const QDateTime &time);
183 void setUrgency(Urgency urgency);
184 void setSeverity(Severity severity);
185 void setCertainty(Certainty certainty);
186 void addResponseType(ResponseType responseType);
187 void setContact(
const QString &contact);
188 void setWeb(
const QString &web);