7#include "capalertinfo.h"
19 QString language = QStringLiteral(
"en-US");
23 CAPAlertInfo::Categories categories = CAPAlertInfo::Category::Unknown;
25 CAPAlertInfo::Urgency urgency = CAPAlertInfo::Urgency::UnknownUrgency;
26 CAPAlertInfo::Severity severity = CAPAlertInfo::Severity::UnknownSeverity;
27 CAPAlertInfo::Certainty certainty = CAPAlertInfo::Certainty::UnknownCertainty;
28 CAPAlertInfo::ResponseTypes responseTypes = CAPAlertInfo::ResponseType::UnknownResponseType;
31 std::vector<CAPNamedValue> parameters;
32 std::vector<CAPArea> areas;
33 std::vector<CAPNamedValue> eventCodes;
36CAPAlertInfo::CAPAlertInfo()
37 : d(new CAPAlertInfoPrivate)
40CAPAlertInfo::CAPAlertInfo(
const CAPAlertInfo &other) =
default;
41CAPAlertInfo::CAPAlertInfo(CAPAlertInfo &&other)
noexcept =
default;
42CAPAlertInfo::~CAPAlertInfo() =
default;
43CAPAlertInfo &CAPAlertInfo::operator=(
const CAPAlertInfo &other) =
default;
44CAPAlertInfo &CAPAlertInfo::operator=(CAPAlertInfo &&other)
noexcept =
default;
52 return d->effectiveTime;
72 return d->description;
76 return d->instruction;
86CAPAlertInfo::Urgency CAPAlertInfo::urgency()
const
90CAPAlertInfo::Severity CAPAlertInfo::severity()
const
94CAPAlertInfo::Certainty CAPAlertInfo::certainty()
const
100 return d->responseTypes;
110const std::vector<CAPNamedValue> &CAPAlertInfo::parameters()
const
112 return d->parameters;
114const std::vector<CAPArea> &CAPAlertInfo::areas()
const
118const std::vector<CAPNamedValue> &CAPAlertInfo::eventCodes()
const
120 return d->eventCodes;
123void CAPAlertInfo::setHeadline(
const QString &headline)
125 d->headline = headline;
127void CAPAlertInfo::setDescription(
const QString &description)
129 d->description = description;
131void CAPAlertInfo::setInstruction(
const QString &instruction)
133 d->instruction = instruction;
135void CAPAlertInfo::setSender(
const QString &sender)
139void CAPAlertInfo::setLanguage(
const QString &language)
141 d->language = language;
143void CAPAlertInfo::addCategory(Category category)
147void CAPAlertInfo::setEvent(
const QString &event)
152void CAPAlertInfo::setEffectiveTime(
const QDateTime &time)
154 d->effectiveTime = time;
156void CAPAlertInfo::setOnsetTime(
const QDateTime &time)
160void CAPAlertInfo::setExpireTime(
const QDateTime &time)
162 d->expireTime = time;
164void CAPAlertInfo::setUrgency(Urgency urgency)
166 d->urgency = urgency;
168void CAPAlertInfo::setSeverity(Severity severity)
170 d->severity = severity;
172void CAPAlertInfo::setCertainty(Certainty certainty)
174 d->certainty = certainty;
176void CAPAlertInfo::addResponseType(ResponseType responseType)
178 d->responseTypes |= responseType;
180void CAPAlertInfo::setContact(
const QString &contact)
182 d->contact = contact;
184void CAPAlertInfo::setWeb(
const QString &web)
188void CAPAlertInfo::addParameter(CAPNamedValue &¶m)
190 d->parameters.
push_back(std::move(param));
193void CAPAlertInfo::addArea(CAPArea &&area)
195 d->areas.push_back(std::move(area));
198void CAPAlertInfo::addEventCode(CAPNamedValue &&code)
200 d->eventCodes.push_back(std::move(code));
204#include "moc_capalertinfo.cpp"
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
Category category(StandardShortcut id)