KCalendarCore
xcalformat.cpp
74 void parseVcalendar(QXmlStreamReader &reader, const Calendar::Ptr &calendar, QStringView elemName);
88 return value.typeId() == QMetaType::QDate || (value.typeId() == QMetaType::QString && value.toString().size() == 8);
152void XCalFormatPrivate::parseVcalendar(QXmlStreamReader &reader, const Calendar::Ptr &calendar, QStringView elemName)
181void XCalFormatPrivate::parseVevent(QXmlStreamReader &reader, const Event::Ptr &event, QStringView elemName)
199 a.setRole(ICalFormatImpl::fromIcalEnum((icalparameter_role)icalparameter_string_to_enum(role.toUtf8().constData())));
215 event->setSecrecy(ICalFormatImpl::fromIcalEnum(icalenum_string_to_class(parseProperty(reader).toString().toUtf8().constData())));
263 event->setStatus(ICalFormatImpl::fromIcalEnum(icalenum_string_to_status(parseProperty(reader).toString().toUtf8().constData())));
267 event->setTransparency(ICalFormatImpl::fromIcalEnum(icalenum_string_to_transp(parseProperty(reader).toString().toUtf8().constData())));
273 event->setCustomProperties({{reader.name().toUtf8().toUpper(), parseProperty(reader).toString()}});
281void XCalFormatPrivate::parseRRule(QXmlStreamReader &reader, RecurrenceRule *rrule, QStringView elemName)
302 ICalFormatImpl::fromIcalEnum((icalrecurrencetype_frequency)icalrecur_string_to_freq(reader.readElementText().toUtf8().constData())));
420bool XCalFormat::save([[maybe_unused]] const Calendar::Ptr &calendar, [[maybe_unused]] const QString &fileName)
Represents information related to an attendee of an Calendar Incidence, typically a meeting or task (...
Definition attendee.h:45
void setEmail(const QString &email)
Sets the email address for this attendee to email.
Definition attendee.cpp:186
An abstract base class that provides an interface to various calendar formats.
Definition calformat.h:39
void setException(Exception *error)
Sets an exception that is to be used by the functions of this class to report errors.
Definition calformat.cpp:52
Represents a span of time measured in seconds or days.
Definition duration.h:44
Exception base class, currently used as a fancy kind of error code and not as an C++ exception.
Definition exceptions.h:42
Duration durationFromString(const QString &duration) const
Parses a string representation of a duration.
Definition icalformat.cpp:391
Incidence::Ptr fromString(const QString &string)
Parses a string, returning the first iCal component as an Incidence.
Definition icalformat.cpp:230
The period can be defined by either a start time and an end time or by a start time and a duration.
Definition period.h:38
static Person fromFullName(const QString &fullName)
Constructs a person with name and email address taken from fullName.
Definition person.cpp:362
This class represents a recurrence rule for a calendar incidence.
Definition recurrencerule.h:32
void setDuration(int duration)
Sets the total number of times the event is to occur, including both the first and last.
Definition recurrencerule.cpp:959
void setFrequency(int freq)
Sets the recurrence frequency, in terms of the recurrence time period type.
Definition recurrencerule.cpp:996
bool load(const Calendar::Ptr &calendar, const QString &fileName) override
Definition xcalformat.cpp:398
bool fromRawString(const Calendar::Ptr &calendar, const QByteArray &string) override
Definition xcalformat.cpp:426
bool save(const Calendar::Ptr &calendar, const QString &fileName) override
Does nothing.
Definition xcalformat.cpp:420
This file is part of the API for handling calendar data and defines the Event class.
This file is part of the API for handling calendar data and defines the ICalFormat class.
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
char * toString(const EngineQuery &query)
const char * constData() const const
QByteArray toUpper() const const
QDate fromString(QStringView string, QStringView format, QCalendar cal)
QDateTime fromString(QStringView string, QStringView format, QCalendar cal)
bool open(FILE *fh, OpenMode mode, FileHandleFlags handleFlags)
iterator insert(const Key &key, const T &value)
T value(const Key &key) const const
QString errorString() const const
ReadOnly
QDate
qsizetype size() const const
int toInt(bool *ok, int base) const const
QByteArray toUtf8() const const
int compare(QChar ch) const const
bool isEmpty() const const
bool startsWith(QChar ch) const const
QString toString() const const
QByteArray toUtf8() const const
CaseInsensitive
ISODate
QTimeZone utc()
QVariant fromValue(T &&value)
QDate toDate() const const
QDateTime toDateTime() const const
QString toString() const const
int typeId() const const
QStringView value(QAnyStringView namespaceUri, QAnyStringView name) const const
bool atEnd() const const
QXmlStreamAttributes attributes() const const
QString errorString() const const
bool hasError() const const
bool isEndDocument() const const
bool isEndElement() const const
bool isStartElement() const const
QStringView name() const const
QXmlStreamNamespaceDeclarations namespaceDeclarations() const const
QString readElementText(ReadElementTextBehaviour behaviour)
TokenType readNext()
bool readNextStartElement()
void skipCurrentElement()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:05 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:05 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.