krop's commit fixes my problem in a better way, reverting
[kdepim.git] / libkdepim / calendardiffalgo.h
blob65d83186d1f492f00b40fc3fd89c4482199f3b39
1 /*
2 This file is part of libkdepim.
4 Copyright (c) 2004 Tobias Koenig <tokoe@kde.org>
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.
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.
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.
22 #ifndef KDEPIM_CALENDARDIFFALGO_H
23 #define KDEPIM_CALENDARDIFFALGO_H
25 #include "diffalgo.h"
27 namespace KCal {
28 class Event;
29 class Incidence;
30 class IncidenceBase;
31 class Todo;
33 using namespace KCal;
35 #include <QList>
37 namespace KPIM {
39 class KDEPIM_EXPORT CalendarDiffAlgo : public DiffAlgo
41 public:
42 CalendarDiffAlgo( Incidence *leftIncidence, Incidence *rightIncidence );
44 void run();
46 private:
47 template <class L>
48 void diffList( const QString &id, const QList<L> &left, const QList<L> &right );
50 void diffIncidenceBase( IncidenceBase *, IncidenceBase * );
51 void diffIncidence( Incidence *, Incidence * );
52 void diffEvent( Event *, Event * );
53 void diffTodo( Todo *, Todo * );
55 Incidence *mLeftIncidence;
56 Incidence *mRightIncidence;
61 #endif