KCalendarCore::FreeBusyCache Class

class KCalendarCore::FreeBusyCache

An abstract base class to allow different implementations of storing free busy information, e.g. local storage or storage on a Kolab server. More...

Header: #include <KCalendarCore/FreeBusyCache>
CMake: find_package(KF6 REQUIRED COMPONENTS CalendarCore)
target_link_libraries(mytarget PRIVATE KF6::CalendarCore)

Public Functions

virtual ~FreeBusyCache()
virtual KCalendarCore::FreeBusy::Ptr loadFreeBusy(const QString &email) = 0
virtual bool saveFreeBusy(const KCalendarCore::FreeBusy::Ptr &freebusy, const KCalendarCore::Person &person) = 0

Detailed Description

Member Function Documentation

[virtual noexcept] FreeBusyCache::~FreeBusyCache()

Destructor.

[pure virtual] KCalendarCore::FreeBusy::Ptr FreeBusyCache::loadFreeBusy(const QString &email)

Load freebusy information belonging to an email.

email is a QString containing a email string in the "FirstName LastName <emailaddress>" format.

Returns A pointer to the FreeBusy object loaded for the specified email; returns 0 if there was some problem attempting to load the FreeBusy information.

[pure virtual] bool FreeBusyCache::saveFreeBusy(const KCalendarCore::FreeBusy::Ptr &freebusy, const KCalendarCore::Person &person)

Save freebusy information belonging to an email.

freebusy is a pointer to a valid FreeBusy instance.

person is a valid Person instance.

Returns true if the save was successful; false otherwise.