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

KCalUtils Library

  • 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
33namespace KCalCore {
34class ICalFormat;
35class FreeBusyCache;
36}
37
38namespace KCalUtils {
44class KCALUTILS_EXPORT Scheduler
45{
46public:
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
119protected:
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
153private:
154 Q_DISABLE_COPY(Scheduler)
155 struct Private;
156 Private *const d;
157};
158
159}
160
161#endif
calendar.h
KCalCore::Calendar::Ptr
QSharedPointer< Calendar > Ptr
KCalCore::FreeBusyCache
KCalCore::ICalFormat
KCalCore::IncidenceBase::Ptr
QSharedPointer< IncidenceBase > Ptr
KCalCore::ScheduleMessage::Status
Status
KCalUtils::Scheduler
This class provides an encapsulation of iTIP transactions (RFC 2446).
Definition: scheduler.h:45
KCalUtils::Scheduler::retrieveTransactions
virtual QList< KCalCore::ScheduleMessage * > retrieveTransactions()=0
Retrieves incoming iTIP transactions.
KCalUtils::Scheduler::performTransaction
virtual bool performTransaction(const KCalCore::IncidenceBase::Ptr &incidence, KCalCore::iTIPMethod method, const QString &recipients)=0
Performs iTIP transaction on incidence to specified recipient(s).
KCalUtils::Scheduler::freeBusyDir
virtual QString freeBusyDir()=0
Returns the directory where the free-busy information is stored.
KCalUtils::Scheduler::performTransaction
virtual bool performTransaction(const KCalCore::IncidenceBase::Ptr &incidence, KCalCore::iTIPMethod method)=0
Performs iTIP transaction on incidence.
KCalUtils::Scheduler::publish
virtual bool publish(const KCalCore::IncidenceBase::Ptr &incidence, const QString &recipients)=0
iTIP publish action
incidencebase.h
KCalCore::iTIPMethod
iTIPMethod
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 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-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