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

KCalCore Library

  • kcalcore
compat.h
Go to the documentation of this file.
1 /*
2  This file is part of the kcalcore library.
3 
4  Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org>
5  Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Library General Public
9  License as published by the Free Software Foundation; either
10  version 2 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Library General Public License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this library; see the file COPYING.LIB. If not, write to
19  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  Boston, MA 02110-1301, USA.
21 */
31 #ifndef KCALCORE_COMPAT_P_H
32 #define KCALCORE_COMPAT_P_H
33 
34 #include "incidence.h"
35 
36 #include <QtCore/QtGlobal> // for Q_DISABLE_COPY()
37 
38 class QDate;
39 class QString;
40 
41 namespace KCalCore {
42 
43 class Compat;
44 
51 class CompatFactory
52 {
53  public:
61  static Compat *createCompat( const QString &productId, const QString &implementationVersion );
62 };
63 
70 class Compat
71 {
72  public:
76  Compat();
77 
81  virtual ~Compat();
82 
88  virtual void fixRecurrence( const Incidence::Ptr &incidence );
89 
95  virtual void fixEmptySummary( const Incidence::Ptr &incidence );
96 
102  virtual void fixAlarms( const Incidence::Ptr &incidence );
103 
108  virtual void fixFloatingEnd( QDate &date );
109 
115  virtual int fixPriority( int priority );
116 
120  virtual bool useTimeZoneShift();
121 
125  virtual void setCreatedToDtStamp( const Incidence::Ptr &incidence, const KDateTime &dtstamp );
126 
127  private:
128  //@cond PRIVATE
129  Q_DISABLE_COPY( Compat )
130  class Private;
131  Private *d;
132  //@endcond
133 };
134 
139 class CompatDecorator : public Compat
140 {
141  public:
142  CompatDecorator(Compat *decoratedCompat);
143  virtual ~CompatDecorator();
148  virtual void fixRecurrence( const Incidence::Ptr &incidence );
153  virtual void fixEmptySummary( const Incidence::Ptr &incidence );
158  virtual void fixAlarms( const Incidence::Ptr &incidence );
163  virtual void fixFloatingEnd( QDate &date );
168  virtual int fixPriority( int priority );
173  virtual bool useTimeZoneShift();
178  virtual void setCreatedToDtStamp( const Incidence::Ptr &incidence, const KDateTime &dtstamp );
179 
180  private:
181  //@cond PRIVATE
182  Q_DISABLE_COPY( CompatDecorator )
183  class Private;
184  Private *d;
185  //@endcond
186 };
187 
198 class CompatPre35 : public Compat
199 {
200  public:
205  virtual void fixRecurrence( const Incidence::Ptr &incidence );
206 
207  private:
208  //@cond PRIVATE
209  class Private;
210  Private *d;
211  //@endcond
212 };
213 
218 class CompatPre34 : public CompatPre35
219 {
220  public:
225  virtual int fixPriority( int priority );
226 
227  private:
228  //@cond PRIVATE
229  class Private;
230  Private *d;
231  //@endcond
232 };
233 
243 class CompatPre32 : public CompatPre34
244 {
245  public:
250  virtual void fixRecurrence( const Incidence::Ptr &incidence );
251 
252  private:
253  //@cond PRIVATE
254 
255  class Private;
256  Private *d;
257  //@endcond
258 };
259 
275 class CompatPre31 : public CompatPre32
276 {
277  public:
282  virtual void fixFloatingEnd( QDate &date );
283 
288  virtual void fixRecurrence( const Incidence::Ptr &incidence );
289 
290  private:
291  //@cond PRIVATE
292  class Private;
293  Private *d;
294  //@endcond
295 };
296 
301 class Compat32PrereleaseVersions : public Compat
302 {
303  public:
308  virtual bool useTimeZoneShift();
309 
310  private:
311  //@cond PRIVATE
312  class Private;
313  Private *d;
314  //@endcond
315 };
316 
325 class CompatOutlook9 : public Compat
326 {
327  public:
332  virtual void fixAlarms( const Incidence::Ptr &incidence );
333 
334  private:
335  //@cond PRIVATE
336  class Private;
337  Private *d;
338  //@endcond
339 };
340 
345 class CompatPre410 : public CompatDecorator
346 {
347  public:
348  CompatPre410( Compat* decoratedCompat );
353  virtual void setCreatedToDtStamp( const Incidence::Ptr &incidence, const KDateTime &dtstamp );
354 
355  private:
356  //@cond PRIVATE
357  class Private;
358  Private *d;
359  //@endcond
360 };
361 
362 }
363 
364 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:24:51 by doxygen 1.8.3.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KCalCore Library

Skip menu "KCalCore Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepimlibs-4.10.5 API Reference

Skip menu "kdepimlibs-4.10.5 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