KCalCore Library
compat.h
Go to the documentation of this file.
00001 /* 00002 This file is part of the kcalcore library. 00003 00004 Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org> 00005 Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com> 00006 00007 This library is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU Library General Public 00009 License as published by the Free Software Foundation; either 00010 version 2 of the License, or (at your option) any later version. 00011 00012 This library is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Library General Public License for more details. 00016 00017 You should have received a copy of the GNU Library General Public License 00018 along with this library; see the file COPYING.LIB. If not, write to 00019 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00020 Boston, MA 02110-1301, USA. 00021 */ 00031 #ifndef KCALCORE_COMPAT_P_H 00032 #define KCALCORE_COMPAT_P_H 00033 00034 #include "incidence.h" 00035 00036 #include <QtCore/QtGlobal> // for Q_DISABLE_COPY() 00037 00038 class QDate; 00039 class QString; 00040 00041 namespace KCalCore { 00042 00043 class Compat; 00044 00051 class CompatFactory 00052 { 00053 public: 00061 static Compat *createCompat( const QString &productId ); 00062 }; 00063 00070 class Compat 00071 { 00072 public: 00076 Compat(); 00077 00081 virtual ~Compat(); 00082 00088 virtual void fixRecurrence( const Incidence::Ptr &incidence ); 00089 00095 virtual void fixEmptySummary( const Incidence::Ptr &incidence ); 00096 00102 virtual void fixAlarms( const Incidence::Ptr &incidence ); 00103 00108 virtual void fixFloatingEnd( QDate &date ); 00109 00115 virtual int fixPriority( int priority ); 00116 00120 virtual bool useTimeZoneShift(); 00121 00122 private: 00123 //@cond PRIVATE 00124 Q_DISABLE_COPY( Compat ) 00125 class Private; 00126 Private *d; 00127 //@endcond 00128 }; 00129 00140 class CompatPre35 : public Compat 00141 { 00142 public: 00147 virtual void fixRecurrence( const Incidence::Ptr &incidence ); 00148 00149 private: 00150 //@cond PRIVATE 00151 class Private; 00152 Private *d; 00153 //@endcond 00154 }; 00155 00160 class CompatPre34 : public CompatPre35 00161 { 00162 public: 00167 virtual int fixPriority( int priority ); 00168 00169 private: 00170 //@cond PRIVATE 00171 class Private; 00172 Private *d; 00173 //@endcond 00174 }; 00175 00185 class CompatPre32 : public CompatPre34 00186 { 00187 public: 00192 virtual void fixRecurrence( const Incidence::Ptr &incidence ); 00193 00194 private: 00195 //@cond PRIVATE 00196 00197 class Private; 00198 Private *d; 00199 //@endcond 00200 }; 00201 00217 class CompatPre31 : public CompatPre32 00218 { 00219 public: 00224 virtual void fixFloatingEnd( QDate &date ); 00225 00230 virtual void fixRecurrence( const Incidence::Ptr &incidence ); 00231 00232 private: 00233 //@cond PRIVATE 00234 class Private; 00235 Private *d; 00236 //@endcond 00237 }; 00238 00243 class Compat32PrereleaseVersions : public Compat 00244 { 00245 public: 00250 virtual bool useTimeZoneShift(); 00251 00252 private: 00253 //@cond PRIVATE 00254 class Private; 00255 Private *d; 00256 //@endcond 00257 }; 00258 00267 class CompatOutlook9 : public Compat 00268 { 00269 public: 00274 virtual void fixAlarms( const Incidence::Ptr &incidence ); 00275 00276 private: 00277 //@cond PRIVATE 00278 class Private; 00279 Private *d; 00280 //@endcond 00281 }; 00282 00283 } 00284 00285 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Aug 27 2012 22:07:48 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Aug 27 2012 22:07:48 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.