comparisonvisitor.h
00001 /* 00002 Copyright 2009 Ingo Klöcker <kloecker@kde.org> 00003 00004 This library is free software; you can redistribute it and/or modify it 00005 under the terms of the GNU Library General Public License as published by 00006 the Free Software Foundation; either version 2 of the License, or (at your 00007 option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, but WITHOUT 00010 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00011 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00012 License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to the 00016 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00017 02110-1301, USA. 00018 */ 00019 00020 #ifndef KCAL_COMPARISONVISITOR_H 00021 #define KCAL_COMPARISONVISITOR_H 00022 00023 #include "incidencebase.h" 00024 00025 namespace KCal { 00026 00050 class ComparisonVisitor : public IncidenceBase::Visitor 00051 { 00052 public: 00056 ComparisonVisitor(); 00057 00061 virtual ~ComparisonVisitor(); 00062 00079 bool compare( IncidenceBase *incidence, const IncidenceBase *reference ); 00080 00087 virtual bool visit( Event *event ); 00088 00095 virtual bool visit( Todo *todo ); 00096 00103 virtual bool visit( Journal *journal ); 00104 00111 virtual bool visit( FreeBusy *freebusy ); 00112 00113 private: 00114 //@cond PRIVATE 00115 class Private; 00116 Private *const d; 00117 //@endcond 00118 }; 00119 00120 } 00121 00122 #endif // KCAL_COMPARISONVISITOR_H