akonadi
23 #ifndef AKONADI_FREEBUSYMANAGER_H
24 #define AKONADI_FREEBUSYMANAGER_H
26 #include "akonadi-calendar_export.h"
27 #include "etmcalendar.h"
29 #include <kcalcore/freebusycache.h>
32 class FreeBusyManagerPrivate;
33 class FreeBusyManagerStatic;
35 class AKONADI_CALENDAR_EXPORT FreeBusyManager :
public QObject,
public KCalCore::FreeBusyCache
42 static FreeBusyManager *
self();
44 void setCalendar(
const Akonadi::ETMCalendar::Ptr &calendar);
54 void publishFreeBusy(QWidget *parentWidget = 0);
59 void mailFreeBusy(
int daysToPublish = 30, QWidget *parentWidget = 0);
94 bool retrieveFreeBusy(
const QString &email,
bool forceDownload,
95 QWidget *parentWidget = 0);
111 bool retrieveFreeBusy(
const QString &email,
const KDateTime &start,
112 const KDateTime &end);
121 void cancelRetrieval();
134 virtual KCalCore::FreeBusy::Ptr loadFreeBusy(
const QString &email);
144 virtual bool saveFreeBusy(
const KCalCore::FreeBusy::Ptr &freebusy,
145 const KCalCore::Person::Ptr &person);
151 void freeBusyRetrieved(
const KCalCore::FreeBusy::Ptr &,
152 const QString &email);
156 virtual void timerEvent(QTimerEvent *);
167 friend class FreeBusyManagerStatic;
169 FreeBusyManagerPrivate *
const d_ptr;
170 Q_DECLARE_PRIVATE(FreeBusyManager)
171 Q_DISABLE_COPY(FreeBusyManager)
172 Q_PRIVATE_SLOT(d_ptr,
void checkFreeBusyUrl())
173 Q_PRIVATE_SLOT(d_ptr,
void processFreeBusyDownloadResult(KJob *))
174 Q_PRIVATE_SLOT(d_ptr,
void processFreeBusyUploadResult(KJob *))
175 Q_PRIVATE_SLOT(d_ptr,
void processRetrieveQueue())
176 Q_PRIVATE_SLOT(d_ptr,
void uploadFreeBusy())
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:27 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.