KCalendarCore
filestorage.cpp
Go to the documentation of this file.
112 if ((iCal.exception()->code() == Exception::ParseErrorIcal) || (iCal.exception()->code() == Exception::CalVersion1)) {
An abstract base class that provides an interface to various calendar formats.
Definition calformat.h:39
QString loadedProductId()
Returns the PRODID string loaded from calendar file.
Definition calformat.cpp:78
Exception * exception() const
Returns an exception, if there is any, containing information about the last error that occurred.
Definition calformat.cpp:57
virtual bool load(const Calendar::Ptr &calendar, const QString &fileName)=0
Loads a calendar on disk into the calendar associated with this format.
virtual bool save(const Calendar::Ptr &calendar, const QString &fileName)=0
Writes the calendar to disk.
An abstract base class that provides a calendar storage interface.
Definition calstorage.h:34
Calendar::Ptr calendar() const
Returns the calendar for this storage object.
Definition calstorage.cpp:49
FileStorage(const Calendar::Ptr &calendar, const QString &fileName=QString(), KCalendarCore::CalFormat *format=nullptr)
Constructs a new FileStorage object for Calendar calendar with format format, and storage to file fil...
Definition filestorage.cpp:50
CalFormat * saveFormat() const
Returns the CalFormat object used by this storage.
Definition filestorage.cpp:77
void setSaveFormat(KCalendarCore::CalFormat *format)
Sets the CalFormat object to use for this storage.
Definition filestorage.cpp:71
void setFileName(const QString &fileName)
Sets the name of the file that contains the calendar data.
Definition filestorage.cpp:61
bool load(const Calendar::Ptr &calendar, const QString &fileName) override
Definition icalformat.cpp:64
bool load(const Calendar::Ptr &calendar, const QString &fileName) override
Definition vcalformat.cpp:89
bool load(const Calendar::Ptr &calendar, const QString &fileName) override
Definition xcalformat.cpp:398
This file is part of the API for handling calendar data and defines the Exception class.
This file is part of the API for handling calendar data and defines the FileStorage class.
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 VCalFormat base class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:07:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:07:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.