KCalendarCore::CalStorage Class

class KCalendarCore::CalStorage

An abstract base class that provides a calendar storage interface. More...

Header: #include <KCalendarCore/CalStorage>
CMake: find_package(KF6 REQUIRED COMPONENTS CalendarCore)
target_link_libraries(mytarget PRIVATE KF6::CalendarCore)
Inherits: QObject
Inherited By:

KCalendarCore::FileStorage

Public Functions

CalStorage(const KCalendarCore::Calendar::Ptr &calendar)
KCalendarCore::Calendar::Ptr calendar() const
virtual bool close() = 0
virtual bool load() = 0
virtual bool open() = 0
virtual bool save() = 0

Detailed Description

This is the base class for calendar storage. It provides an interface for the loading and saving of calendars.

Member Function Documentation

[explicit] CalStorage::CalStorage(const KCalendarCore::Calendar::Ptr &calendar)

Constructs a new storage object for a calendar. calendar is a pointer to a valid Calendar object.

KCalendarCore::Calendar::Ptr CalStorage::calendar() const

Returns the calendar for this storage object. Returns A pointer to the calendar whose storage is being managed.

[pure virtual] bool CalStorage::close()

Closes the calendar storage. Returns true if the close was successful; false otherwise.

[pure virtual] bool CalStorage::load()

Loads the calendar into memory. Returns true if the load was successful; false otherwise.

[pure virtual] bool CalStorage::open()

Opens the calendar for storage. Returns true if the open was successful; false otherwise.

[pure virtual] bool CalStorage::save()

Saves the calendar. Returns true if the save was successful; false otherwise.