KCalendarCore::FreeBusyCache

Search for usage in LXR

KCalendarCore::FreeBusyCache Class Referenceabstract

#include <freebusycache.h>

Public Member Functions

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

Protected Member Functions

virtual void virtual_hook (int id, void *data)
 

Detailed Description

An abstract base class to allow different implementations of storing free busy information, e.g.

local storage or storage on a Kolab server.

Definition at line 34 of file freebusycache.h.

Constructor & Destructor Documentation

◆ ~FreeBusyCache()

FreeBusyCache::~FreeBusyCache ( )
virtual

Destructor.

Definition at line 20 of file freebusycache.cpp.

Member Function Documentation

◆ loadFreeBusy()

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

Load freebusy information belonging to an email.

Parameters
emailis 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.

◆ saveFreeBusy()

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

Save freebusy information belonging to an email.

Parameters
freebusyis a pointer to a valid FreeBusy instance.
personis a valid Person instance.
Returns
true if the save was successful; false otherwise.

◆ virtual_hook()

void FreeBusyCache::virtual_hook ( int id,
void * data )
protectedvirtual

Standard trick to add virtuals later.

Parameters
idis any integer unique to this class which we will use to identify the method to be called.
datais a pointer to some glob of data, typically a struct.

Definition at line 24 of file freebusycache.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:15:54 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.