• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • akonadi
  • calendar
freebusymanager.h
1/*
2 Requires the Qt and KDE widget libraries, available at no cost at
3 http://www.trolltech.com and http://www.kde.org respectively
4
5 Copyright (c) 2002-2004 Klarälvdalens Datakonsult AB
6 <info@klaralvdalens-datakonsult.se>
7
8 This library is free software; you can redistribute it and/or modify it
9 under the terms of the GNU Library General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or (at your
11 option) any later version.
12
13 This library is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
16 License for more details.
17
18 You should have received a copy of the GNU Library General Public License
19 along with this library; see the file COPYING.LIB. If not, write to the
20 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 02110-1301, USA.
22*/
23#ifndef AKONADI_FREEBUSYMANAGER_H
24#define AKONADI_FREEBUSYMANAGER_H
25
26#include "akonadi-calendar_export.h"
27#include "etmcalendar.h"
28
29#include <kcalcore/freebusycache.h>
30//TODO: document
31namespace Akonadi {
32class FreeBusyManagerPrivate;
33class FreeBusyManagerStatic;
34
35class AKONADI_CALENDAR_EXPORT FreeBusyManager : public QObject, public KCalCore::FreeBusyCache
36{
37 Q_OBJECT
38public:
42 static FreeBusyManager *self();
43
44 void setCalendar(const Akonadi::ETMCalendar::Ptr &calendar);
45
54 void publishFreeBusy(QWidget *parentWidget = 0);
55
59 void mailFreeBusy(int daysToPublish = 30, QWidget *parentWidget = 0);
60
94 bool retrieveFreeBusy(const QString &email, bool forceDownload,
95 QWidget *parentWidget = 0);
96
111 bool retrieveFreeBusy(const QString &email, const KDateTime &start,
112 const KDateTime &end);
113
121 void cancelRetrieval();
122
134 virtual KCalCore::FreeBusy::Ptr loadFreeBusy(const QString &email);
135
144 virtual bool saveFreeBusy(const KCalCore::FreeBusy::Ptr &freebusy,
145 const KCalCore::Person::Ptr &person);
146
147Q_SIGNALS:
151 void freeBusyRetrieved(const KCalCore::FreeBusy::Ptr &,
152 const QString &email);
153
154protected:
156 virtual void timerEvent(QTimerEvent *);
157
158private:
163 FreeBusyManager();
164 ~FreeBusyManager();
165
166private:
167 friend class FreeBusyManagerStatic;
168
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())
177};
178
179}
180
181#endif
Akonadi
FreeBusyManager::Singleton.
Definition actionstatemanager_p.h:28
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal