summaryrefslogtreecommitdiffabout
path: root/libkcal/icalformatimpl.h
Unidiff
Diffstat (limited to 'libkcal/icalformatimpl.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libkcal/icalformatimpl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libkcal/icalformatimpl.h b/libkcal/icalformatimpl.h
index 2f32365..203c302 100644
--- a/libkcal/icalformatimpl.h
+++ b/libkcal/icalformatimpl.h
@@ -10,97 +10,97 @@
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 24
25#include "scheduler.h" 25#include "scheduler.h"
26#include "freebusy.h" 26#include "freebusy.h"
27 27
28extern "C" { 28extern "C" {
29 #include <ical.h> 29 #include <ical.h>
30 #include <icalss.h> 30 #include <icalss.h>
31} 31}
32 32
33namespace KCal { 33namespace KCal {
34 34
35class Compat; 35class Compat;
36 36
37/** 37/**
38 This class provides the libical dependent functions for ICalFormat. 38 This class provides the libical dependent functions for ICalFormat.
39*/ 39*/
40class ICalFormatImpl { 40class ICalFormatImpl {
41 public: 41 public:
42 /** Create new iCal format for calendar object */ 42 /** Create new iCal format for calendar object */
43 ICalFormatImpl( ICalFormat *parent ); 43 ICalFormatImpl( ICalFormat *parent );
44 virtual ~ICalFormatImpl(); 44 virtual ~ICalFormatImpl();
45 45
46 bool populate( Calendar *, icalcomponent *fs); 46 bool populate( Calendar *, icalcomponent *fs);
47 47
48 icalcomponent *writeIncidence(Incidence *incidence); 48 icalcomponent *writeIncidence(Incidence *incidence);
49 icalcomponent *writeTodo(Todo *todo); 49 icalcomponent *writeTodo(Todo *todo);
50 icalcomponent *writeEvent(Event *event); 50 icalcomponent *writeEvent(Event *event);
51 icalcomponent *writeFreeBusy(FreeBusy *freebusy, 51 icalcomponent *writeFreeBusy(FreeBusy *freebusy,
52 Scheduler::Method method); 52 Scheduler::Method method);
53 icalcomponent *writeJournal(Journal *journal); 53 icalcomponent *writeJournal(Journal *journal);
54 void writeIncidence(icalcomponent *parent,Incidence *incidence); 54 void writeIncidence(icalcomponent *parent,Incidence *incidence);
55 icalproperty *writeAttendee(Attendee *attendee); 55 icalproperty *writeAttendee(Attendee *attendee);
56 icalproperty *writeAttachment(Attachment *attach); 56 icalproperty *writeAttachment(Attachment *attach);
57 icalproperty *writeRecurrenceRule(Recurrence *); 57 icalproperty *writeRecurrenceRule(Recurrence *);
58 icalproperty *writeAlarm(Alarm *alarm); 58 icalcomponent *writeAlarm(Alarm *alarm);
59 59
60 QString extractErrorProperty(icalcomponent *); 60 QString extractErrorProperty(icalcomponent *);
61 Todo *readTodo(icalcomponent *vtodo); 61 Todo *readTodo(icalcomponent *vtodo);
62 Event *readEvent(icalcomponent *vevent); 62 Event *readEvent(icalcomponent *vevent);
63 FreeBusy *readFreeBusy(icalcomponent *vfreebusy); 63 FreeBusy *readFreeBusy(icalcomponent *vfreebusy);
64 Journal *readJournal(icalcomponent *vjournal); 64 Journal *readJournal(icalcomponent *vjournal);
65 Attendee *readAttendee(icalproperty *attendee); 65 Attendee *readAttendee(icalproperty *attendee);
66 Attachment *readAttachment(icalproperty *attach); 66 Attachment *readAttachment(icalproperty *attach);
67 void readIncidence(icalcomponent *parent,Incidence *incidence); 67 void readIncidence(icalcomponent *parent,Incidence *incidence);
68 void readRecurrenceRule(struct icalrecurrencetype rrule,Incidence *event); 68 void readRecurrenceRule(struct icalrecurrencetype rrule,Incidence *event);
69 void readRecurrence( const struct icalrecurrencetype &r, Recurrence* recur,Incidence *event ); 69 void readRecurrence( const struct icalrecurrencetype &r, Recurrence* recur,Incidence *event );
70 void readAlarm(icalcomponent *alarm,Incidence *incidence); 70 void readAlarm(icalcomponent *alarm,Incidence *incidence);
71 /** Return the PRODID string loaded from calendar file */ 71 /** Return the PRODID string loaded from calendar file */
72 const QString &loadedProductId() { return mLoadedProductId; } 72 const QString &loadedProductId() { return mLoadedProductId; }
73 73
74 icaltimetype writeICalDate(const QDate &); 74 icaltimetype writeICalDate(const QDate &);
75 QDate readICalDate(icaltimetype); 75 QDate readICalDate(icaltimetype);
76 icaltimetype writeICalDateTime(const QDateTime &); 76 icaltimetype writeICalDateTime(const QDateTime &);
77 QDateTime readICalDateTime(icaltimetype); 77 QDateTime readICalDateTime(icaltimetype);
78 icaldurationtype writeICalDuration(int seconds); 78 icaldurationtype writeICalDuration(int seconds);
79 int readICalDuration(icaldurationtype); 79 int readICalDuration(icaldurationtype);
80 icalcomponent *createCalendarComponent(Calendar * = 0); 80 icalcomponent *createCalendarComponent(Calendar * = 0);
81 icalcomponent *createScheduleComponent(IncidenceBase *,Scheduler::Method); 81 icalcomponent *createScheduleComponent(IncidenceBase *,Scheduler::Method);
82 82
83 private: 83 private:
84 void writeIncidenceBase(icalcomponent *parent,IncidenceBase *); 84 void writeIncidenceBase(icalcomponent *parent,IncidenceBase *);
85 void readIncidenceBase(icalcomponent *parent,IncidenceBase *); 85 void readIncidenceBase(icalcomponent *parent,IncidenceBase *);
86 void writeCustomProperties(icalcomponent *parent,CustomProperties *); 86 void writeCustomProperties(icalcomponent *parent,CustomProperties *);
87 void readCustomProperties(icalcomponent *parent,CustomProperties *); 87 void readCustomProperties(icalcomponent *parent,CustomProperties *);
88 void dumpIcalRecurrence(icalrecurrencetype); 88 void dumpIcalRecurrence(icalrecurrencetype);
89 89
90 ICalFormat *mParent; 90 ICalFormat *mParent;
91 Calendar *mCalendar; 91 Calendar *mCalendar;
92 92
93 QString mLoadedProductId; // PRODID string loaded from calendar file 93 QString mLoadedProductId; // PRODID string loaded from calendar file
94 int mCalendarVersion; // determines backward compatibility mode on read 94 int mCalendarVersion; // determines backward compatibility mode on read
95 95
96 QPtrList<Event> mEventsRelate; // events with relations 96 QPtrList<Event> mEventsRelate; // events with relations
97 QPtrList<Todo> mTodosRelate; // todos with relations 97 QPtrList<Todo> mTodosRelate; // todos with relations
98 98
99 static const int mSecondsPerWeek; 99 static const int mSecondsPerWeek;
100 static const int mSecondsPerDay; 100 static const int mSecondsPerDay;
101 static const int mSecondsPerHour; 101 static const int mSecondsPerHour;
102 static const int mSecondsPerMinute; 102 static const int mSecondsPerMinute;
103 103
104 Compat *mCompat; 104 Compat *mCompat;
105}; 105};
106 106