KCalendarCore
icalformat.cpp
Go to the documentation of this file.
142 icalcomponent *calendar = icalcomponent_new_from_string(const_cast<char *>(string.constData()));
144 qCritical() << "parse error from icalcomponent_new_from_string. string=" << QString::fromLatin1(string);
185 qCritical() << "parse error from icalcomponent_new_from_string. string=" << QString::fromLatin1(string);
402QString ICalFormat::createScheduleMessage(const IncidenceBase::Ptr &incidence, iTIPMethod method)
482ScheduleMessage::Ptr ICalFormat::parseScheduleMessage(const Calendar::Ptr &cal, const QString &messageText)
552 qCWarning(KCALCORE_LOG) << ScheduleMessage::methodName(method) << ":" << d->mImpl.extractErrorProperty(c);
An abstract base class that provides an interface to various calendar formats.
Definition calformat.h:39
void setLoadedProductId(const QString &id)
Sets the PRODID string loaded from calendar file.
Definition calformat.cpp:83
Exception * exception() const
Returns an exception, if there is any, containing information about the last error that occurred.
Definition calformat.cpp:57
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
Incidence::Ptr readIncidence(const QByteArray &string)
Parses a bytearray, returning the first iCal component as an Incidence, ignoring timezone information...
Definition icalformat.cpp:137
FreeBusy::Ptr parseFreeBusy(const QString &string)
Converts a QString into a FreeBusy object.
Definition icalformat.cpp:448
QString toString(const Calendar::Ptr &calendar) override
Definition icalformat.cpp:241
QString createScheduleMessage(const IncidenceBase::Ptr &incidence, iTIPMethod method)
Creates a scheduling message string for an Incidence.
Definition icalformat.cpp:402
bool save(const Calendar::Ptr &calendar, const QString &fileName) override
Definition icalformat.cpp:92
Duration durationFromString(const QString &duration) const
Parses a string representation of a duration.
Definition icalformat.cpp:391
QString toICalString(const Incidence::Ptr &incidence)
Converts an Incidence to iCalendar formatted text.
Definition icalformat.cpp:307
QByteArray toRawString(const Incidence::Ptr &incidence)
Converts an Incidence to a QByteArray.
Definition icalformat.cpp:321
bool load(const Calendar::Ptr &calendar, const QString &fileName) override
Definition icalformat.cpp:64
void setTimeZone(const QTimeZone &timeZone)
Sets the iCalendar time zone.
Definition icalformat.cpp:608
ScheduleMessage::Ptr parseScheduleMessage(const Calendar::Ptr &calendar, const QString &string)
Parses a Calendar scheduling message string into ScheduleMessage object.
Definition icalformat.cpp:482
Incidence::Ptr fromString(const QString &string)
Parses a string, returning the first iCal component as an Incidence.
Definition icalformat.cpp:230
QByteArray timeZoneId() const
Returns the timezone id string used by the iCalendar; an empty string if the iCalendar does not have ...
Definition icalformat.cpp:620
bool fromRawString(const Calendar::Ptr &calendar, const QByteArray &string) override
Definition icalformat.cpp:174
An abstract class that provides a common base for all calendar incidence classes.
Definition incidencebase.h:99
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...
Definition incidence.h:60
This class provides a calendar stored in memory.
Definition memorycalendar.h:32
This class represents a recurrence rule for a calendar incidence.
Definition recurrencerule.h:32
QSharedPointer< ScheduleMessage > Ptr
A shared pointer to a ScheduleMessage.
Definition schedulemessage.h:59
static QString methodName(iTIPMethod method)
Returns a machine-readable (not translatable) name for a iTIP method.
Definition schedulemessage.cpp:58
Q_SCRIPTABLE CaptureState status()
This file is part of the API for handling calendar data and defines the ICalFormat class.
This file is part of the API for handling calendar data and defines the MemoryCalendar class.
QByteArray & append(QByteArrayView data)
const char * constData() const const
char * data()
bool isEmpty() const const
qsizetype size() const const
QByteArray trimmed() const const
bool copy(const QString &fileName, const QString &newName)
bool open(FILE *fh, OpenMode mode, FileHandleFlags handleFlags)
bool remove()
virtual void close() override
bool flush()
QString errorString() const const
QByteArray readAll()
qint64 write(const QByteArray &data)
ReadOnly
const_iterator cbegin() const const
const_iterator cend() const const
T & first()
bool isEmpty() const const
bool commit()
virtual bool open(OpenMode mode) override
QString fromLatin1(QByteArrayView str)
QString fromUtf8(QByteArrayView str)
bool isEmpty() const const
QByteArray toLatin1() const const
QByteArray toUtf8() const const
QTimeZone utc()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.