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

KCalUtils Library

  • sources
  • kde-4.12
  • kdepimlibs
  • kcalutils
scheduler.h
1 /*
2  This file is part of the kcalutils library.
3 
4  Copyright (c) 2001-2003 Cornelius Schumacher <schumacher@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 #ifndef KCALUTILS_SCHEDULER_H
22 #define KCALUTILS_SCHEDULER_H
23 
24 #include "kcalutils_export.h"
25 
26 #include <kcalcore/schedulemessage.h>
27 #include <kcalcore/incidencebase.h>
28 #include <kcalcore/calendar.h>
29 
30 #include <QtCore/QString>
31 #include <QtCore/QList>
32 
33 namespace KCalCore {
34 class ICalFormat;
35 class FreeBusyCache;
36 }
37 
38 namespace KCalUtils {
44 class KCALUTILS_EXPORT Scheduler
45 {
46 public:
50  explicit Scheduler(const KCalCore::Calendar::Ptr &calendar);
51  virtual ~Scheduler();
52 
56  virtual bool publish(const KCalCore::IncidenceBase::Ptr &incidence,
57  const QString &recipients) = 0;
65  virtual bool performTransaction(const KCalCore::IncidenceBase::Ptr &incidence,
66  KCalCore::iTIPMethod method) = 0;
67 
76  virtual bool performTransaction(const KCalCore::IncidenceBase::Ptr &incidence,
77  KCalCore::iTIPMethod method, const QString &recipients) = 0;
78 
82  //KDAB_TODO PTR
83  virtual QList<KCalCore::ScheduleMessage*> retrieveTransactions() = 0;
84 
97  bool acceptTransaction(const KCalCore::IncidenceBase::Ptr &incidence,
98  KCalCore::iTIPMethod method,
99  KCalCore::ScheduleMessage::Status status,
100  const QString &email = QString());
101 
102  virtual bool deleteTransaction(const KCalCore::IncidenceBase::Ptr &incidence);
103 
107  virtual QString freeBusyDir() = 0;
108 
112  void setFreeBusyCache(KCalCore::FreeBusyCache *);
113 
117  KCalCore::FreeBusyCache *freeBusyCache() const;
118 
119 protected:
120  bool acceptPublish(const KCalCore::IncidenceBase::Ptr &,
121  KCalCore::ScheduleMessage::Status status,
122  KCalCore::iTIPMethod method);
123 
124  bool acceptRequest(const KCalCore::IncidenceBase::Ptr &,
125  KCalCore::ScheduleMessage::Status status,
126  const QString &email);
127 
128  bool acceptAdd(const KCalCore::IncidenceBase::Ptr &,
129  KCalCore::ScheduleMessage::Status status);
130 
131  bool acceptCancel(const KCalCore::IncidenceBase::Ptr &,
132  KCalCore::ScheduleMessage::Status status,
133  const QString &attendee);
134 
135  bool acceptDeclineCounter(const KCalCore::IncidenceBase::Ptr &,
136  KCalCore::ScheduleMessage::Status status);
137 
138  bool acceptReply(const KCalCore::IncidenceBase::Ptr &,
139  KCalCore::ScheduleMessage::Status status,
140  KCalCore::iTIPMethod method);
141 
142  bool acceptRefresh(const KCalCore::IncidenceBase::Ptr &,
143  KCalCore::ScheduleMessage::Status status);
144 
145  bool acceptCounter(const KCalCore::IncidenceBase::Ptr &,
146  KCalCore::ScheduleMessage::Status status);
147 
148  bool acceptFreeBusy(const KCalCore::IncidenceBase::Ptr &, KCalCore::iTIPMethod method);
149 
150  KCalCore::Calendar::Ptr mCalendar;
151  KCalCore::ICalFormat *mFormat;
152 
153 private:
154  Q_DISABLE_COPY(Scheduler)
155  struct Private;
156  Private *const d;
157 };
158 
159 }
160 
161 #endif
KCalCore::iTIPMethod
iTIPMethod
calendar.h
KCalCore::ICalFormat
KCalUtils::Scheduler
This class provides an encapsulation of iTIP transactions (RFC 2446).
Definition: scheduler.h:44
KCalCore::Calendar::Ptr
QSharedPointer< Calendar > Ptr
KCalCore::ScheduleMessage::Status
Status
incidencebase.h
KCalCore::FreeBusyCache
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KCalUtils Library

Skip menu "KCalUtils Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Members
  • File List
  • 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