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

akonadi

  • sources
  • kde-4.12
  • kdepimlibs
  • 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
31 namespace Akonadi {
32 class FreeBusyManagerPrivate;
33 class FreeBusyManagerStatic;
34 
35 class AKONADI_CALENDAR_EXPORT FreeBusyManager : public QObject, public KCalCore::FreeBusyCache
36 {
37  Q_OBJECT
38 public:
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 
147 Q_SIGNALS:
151  void freeBusyRetrieved(const KCalCore::FreeBusy::Ptr &,
152  const QString &email);
153 
154 protected:
156  virtual void timerEvent(QTimerEvent *);
157 
158 private:
163  FreeBusyManager();
164  ~FreeBusyManager();
165 
166 private:
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
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.

akonadi

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

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



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