krop's commit fixes my problem in a better way, reverting
[kdepim.git] / korganizer / mailscheduler.h
blob56c55da07f87581140deee5db1446c9b892ea9a4
1 /*
2 This file is part of KOrganizer.
4 Copyright (c) 2001,2004 Cornelius Schumacher <schumacher@kde.org>
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program 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
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License along
17 with this program; if not, write to the Free Software Foundation, Inc.,
18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 As a special exception, permission is given to link this program
21 with any edition of Qt, and distribute the resulting executable,
22 without including the source code for Qt in the source distribution.
24 #ifndef MAILSCHEDULER_H
25 #define MAILSCHEDULER_H
27 #include <KCal/Scheduler>
28 #include <QMap>
30 namespace KCal {
31 class Incidence;
33 using namespace KCal;
36 This class implements the iTIP interface using the email interface specified
37 as Mail.
39 class MailScheduler : public Scheduler
41 public:
42 explicit MailScheduler( Calendar * );
43 virtual ~MailScheduler();
45 bool publish ( IncidenceBase *incidence, const QString &recipients );
46 bool performTransaction( IncidenceBase *incidence, iTIPMethod method );
47 bool performTransaction( IncidenceBase *incidence, iTIPMethod method,
48 const QString &recipients );
49 QList<ScheduleMessage*> retrieveTransactions();
51 bool deleteTransaction( IncidenceBase *incidence );
53 /** Returns the directory where the free-busy information is stored */
54 virtual QString freeBusyDir();
56 /** Accepts a counter proposal */
57 bool acceptCounterProposal( Incidence *incidence );
59 private:
60 QMap<IncidenceBase *, QString> mEventMap;
63 #endif