author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /libkcal/icalformatimpl.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-p1.zip kdepimpi-p1.tar.gz kdepimpi-p1.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | libkcal/icalformatimpl.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libkcal/icalformatimpl.h b/libkcal/icalformatimpl.h index 203c302..3a35b4c 100644 --- a/libkcal/icalformatimpl.h +++ b/libkcal/icalformatimpl.h | |||
@@ -1,47 +1,49 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libkcal. | 2 | This file is part of libkcal. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Library General Public | 6 | modify it under the terms of the GNU Library General Public |
7 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either |
8 | version 2 of the License, or (at your option) any later version. | 8 | version 2 of the License, or (at your option) any later version. |
9 | 9 | ||
10 | This library is distributed in the hope that it will be useful, | 10 | This library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. | 13 | Library General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Library General Public License | 15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to | 16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | #ifndef ICALFORMATIMPL_H | 20 | #ifndef ICALFORMATIMPL_H |
21 | #define ICALFORMATIMPL_H | 21 | #define ICALFORMATIMPL_H |
22 | 22 | ||
23 | #include <qstring.h> | 23 | #include <qstring.h> |
24 | //Added by qt3to4: | ||
25 | #include <Q3PtrList> | ||
24 | 26 | ||
25 | #include "scheduler.h" | 27 | #include "scheduler.h" |
26 | #include "freebusy.h" | 28 | #include "freebusy.h" |
27 | 29 | ||
28 | extern "C" { | 30 | extern "C" { |
29 | #include <ical.h> | 31 | #include <ical.h> |
30 | #include <icalss.h> | 32 | #include <icalss.h> |
31 | } | 33 | } |
32 | 34 | ||
33 | namespace KCal { | 35 | namespace KCal { |
34 | 36 | ||
35 | class Compat; | 37 | class Compat; |
36 | 38 | ||
37 | /** | 39 | /** |
38 | This class provides the libical dependent functions for ICalFormat. | 40 | This class provides the libical dependent functions for ICalFormat. |
39 | */ | 41 | */ |
40 | class ICalFormatImpl { | 42 | class ICalFormatImpl { |
41 | public: | 43 | public: |
42 | /** Create new iCal format for calendar object */ | 44 | /** Create new iCal format for calendar object */ |
43 | ICalFormatImpl( ICalFormat *parent ); | 45 | ICalFormatImpl( ICalFormat *parent ); |
44 | virtual ~ICalFormatImpl(); | 46 | virtual ~ICalFormatImpl(); |
45 | 47 | ||
46 | bool populate( Calendar *, icalcomponent *fs); | 48 | bool populate( Calendar *, icalcomponent *fs); |
47 | 49 | ||
@@ -72,38 +74,38 @@ class ICalFormatImpl { | |||
72 | const QString &loadedProductId() { return mLoadedProductId; } | 74 | const QString &loadedProductId() { return mLoadedProductId; } |
73 | 75 | ||
74 | icaltimetype writeICalDate(const QDate &); | 76 | icaltimetype writeICalDate(const QDate &); |
75 | QDate readICalDate(icaltimetype); | 77 | QDate readICalDate(icaltimetype); |
76 | icaltimetype writeICalDateTime(const QDateTime &); | 78 | icaltimetype writeICalDateTime(const QDateTime &); |
77 | QDateTime readICalDateTime(icaltimetype); | 79 | QDateTime readICalDateTime(icaltimetype); |
78 | icaldurationtype writeICalDuration(int seconds); | 80 | icaldurationtype writeICalDuration(int seconds); |
79 | int readICalDuration(icaldurationtype); | 81 | int readICalDuration(icaldurationtype); |
80 | icalcomponent *createCalendarComponent(Calendar * = 0); | 82 | icalcomponent *createCalendarComponent(Calendar * = 0); |
81 | icalcomponent *createScheduleComponent(IncidenceBase *,Scheduler::Method); | 83 | icalcomponent *createScheduleComponent(IncidenceBase *,Scheduler::Method); |
82 | 84 | ||
83 | private: | 85 | private: |
84 | void writeIncidenceBase(icalcomponent *parent,IncidenceBase *); | 86 | void writeIncidenceBase(icalcomponent *parent,IncidenceBase *); |
85 | void readIncidenceBase(icalcomponent *parent,IncidenceBase *); | 87 | void readIncidenceBase(icalcomponent *parent,IncidenceBase *); |
86 | void writeCustomProperties(icalcomponent *parent,CustomProperties *); | 88 | void writeCustomProperties(icalcomponent *parent,CustomProperties *); |
87 | void readCustomProperties(icalcomponent *parent,CustomProperties *); | 89 | void readCustomProperties(icalcomponent *parent,CustomProperties *); |
88 | void dumpIcalRecurrence(icalrecurrencetype); | 90 | void dumpIcalRecurrence(icalrecurrencetype); |
89 | 91 | ||
90 | ICalFormat *mParent; | 92 | ICalFormat *mParent; |
91 | Calendar *mCalendar; | 93 | Calendar *mCalendar; |
92 | 94 | ||
93 | QString mLoadedProductId; // PRODID string loaded from calendar file | 95 | QString mLoadedProductId; // PRODID string loaded from calendar file |
94 | int mCalendarVersion; // determines backward compatibility mode on read | 96 | int mCalendarVersion; // determines backward compatibility mode on read |
95 | 97 | ||
96 | QPtrList<Event> mEventsRelate; // events with relations | 98 | Q3PtrList<Event> mEventsRelate; // events with relations |
97 | QPtrList<Todo> mTodosRelate; // todos with relations | 99 | Q3PtrList<Todo> mTodosRelate; // todos with relations |
98 | 100 | ||
99 | static const int mSecondsPerWeek; | 101 | static const int mSecondsPerWeek; |
100 | static const int mSecondsPerDay; | 102 | static const int mSecondsPerDay; |
101 | static const int mSecondsPerHour; | 103 | static const int mSecondsPerHour; |
102 | static const int mSecondsPerMinute; | 104 | static const int mSecondsPerMinute; |
103 | 105 | ||
104 | Compat *mCompat; | 106 | Compat *mCompat; |
105 | }; | 107 | }; |
106 | 108 | ||
107 | } | 109 | } |
108 | 110 | ||
109 | #endif | 111 | #endif |