KCal Library
calformat.h
Go to the documentation of this file.
virtual QString toString(Calendar *calendar)=0
Returns the calendar as a string.
void setException(ErrorFormat *error)
Sets an exception that is to be used by the functions of this class to report errors.
Definition calformat.cpp:77
void setLoadedProductId(const QString &id)
PRODID string loaded from calendar file.
Definition calformat.cpp:110
virtual bool save(Calendar *calendar, const QString &fileName)=0
Writes the calendar to disk.
static void setApplication(const QString &application, const QString &productID)
Sets the application name for use in unique IDs and error messages, and product ID for incidence PROD...
Definition calformat.cpp:88
virtual bool fromString(Calendar *calendar, const QString &string)=0
Loads a calendar from a string.
static const QString & application()
Returns the application name used in unique IDs and error messages.
Definition calformat.cpp:95
const QString & loadedProductId()
Returns the PRODID string loaded from calendar file.
Definition calformat.cpp:105
virtual bool load(Calendar *calendar, const QString &fileName)=0
Loads a calendar on disk into the calendar associated with this format.
static const QString & productId()
Returns the PRODID string to write into calendar files.
Definition calformat.cpp:100
ErrorFormat * exception()
Returns an exception, if there is any, containing information about the last error that occurred.
Definition calformat.cpp:83
virtual bool fromRawString(Calendar *calendar, const QByteArray &string)=0
Parses a utf8 encoded string, returning the first iCal component encountered in that string.
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 Exception and ErrorFormat cla...
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.