-rw-r--r-- | libkcal/calendarlocal.h | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/libkcal/calendarlocal.h b/libkcal/calendarlocal.h index 1ceabce..1df65c7 100644 --- a/libkcal/calendarlocal.h +++ b/libkcal/calendarlocal.h | |||
@@ -23,6 +23,8 @@ | |||
23 | #define KCAL_CALENDARLOCAL_H | 23 | #define KCAL_CALENDARLOCAL_H |
24 | 24 | ||
25 | #include "calendar.h" | 25 | #include "calendar.h" |
26 | //Added by qt3to4: | ||
27 | #include <Q3PtrList> | ||
26 | 28 | ||
27 | namespace KCal { | 29 | namespace KCal { |
28 | 30 | ||
@@ -93,8 +95,8 @@ class CalendarLocal : public Calendar | |||
93 | /** | 95 | /** |
94 | Return unfiltered list of all events in calendar. | 96 | Return unfiltered list of all events in calendar. |
95 | */ | 97 | */ |
96 | QPtrList<Event> rawEvents(); | 98 | Q3PtrList<Event> rawEvents(); |
97 | QPtrList<Event> getExternLastSyncEvents(); | 99 | Q3PtrList<Event> getExternLastSyncEvents(); |
98 | /** | 100 | /** |
99 | Add a todo to the todolist. | 101 | Add a todo to the todolist. |
100 | */ | 102 | */ |
@@ -112,17 +114,17 @@ class CalendarLocal : public Calendar | |||
112 | /** | 114 | /** |
113 | Return list of all todos. | 115 | Return list of all todos. |
114 | */ | 116 | */ |
115 | QPtrList<Todo> rawTodos(); | 117 | Q3PtrList<Todo> rawTodos(); |
116 | /** | 118 | /** |
117 | Returns list of todos due on the specified date. | 119 | Returns list of todos due on the specified date. |
118 | */ | 120 | */ |
119 | QPtrList<Todo> todos( const QDate &date ); | 121 | Q3PtrList<Todo> todos( const QDate &date ); |
120 | /** | 122 | /** |
121 | Return list of all todos. | 123 | Return list of all todos. |
122 | 124 | ||
123 | Workaround because compiler does not recognize function of base class. | 125 | Workaround because compiler does not recognize function of base class. |
124 | */ | 126 | */ |
125 | QPtrList<Todo> todos() { return Calendar::todos(); } | 127 | Q3PtrList<Todo> todos() { return Calendar::todos(); } |
126 | 128 | ||
127 | /** | 129 | /** |
128 | Add a Journal entry to calendar. | 130 | Add a Journal entry to calendar. |
@@ -136,7 +138,7 @@ class CalendarLocal : public Calendar | |||
136 | Return Journal for given date. | 138 | Return Journal for given date. |
137 | */ | 139 | */ |
138 | Journal *journal( const QDate & ); | 140 | Journal *journal( const QDate & ); |
139 | QPtrList<Journal> journals4Date( const QDate & ); | 141 | Q3PtrList<Journal> journals4Date( const QDate & ); |
140 | /** | 142 | /** |
141 | Return Journal with given UID. | 143 | Return Journal with given UID. |
142 | */ | 144 | */ |
@@ -144,7 +146,7 @@ class CalendarLocal : public Calendar | |||
144 | /** | 146 | /** |
145 | Return list of all Journals stored in calendar. | 147 | Return list of all Journals stored in calendar. |
146 | */ | 148 | */ |
147 | QPtrList<Journal> journals(); | 149 | Q3PtrList<Journal> journals(); |
148 | 150 | ||
149 | /** | 151 | /** |
150 | Return all alarms, which ocur in the given time interval. | 152 | Return all alarms, which ocur in the given time interval. |
@@ -174,16 +176,16 @@ class CalendarLocal : public Calendar | |||
174 | Builds and then returns a list of all events that match for the | 176 | Builds and then returns a list of all events that match for the |
175 | date specified. useful for dayView, etc. etc. | 177 | date specified. useful for dayView, etc. etc. |
176 | */ | 178 | */ |
177 | QPtrList<Event> rawEventsForDate( const QDate &date, bool sorted = false ); | 179 | Q3PtrList<Event> rawEventsForDate( const QDate &date, bool sorted = false ); |
178 | /** | 180 | /** |
179 | Get unfiltered events for date \a qdt. | 181 | Get unfiltered events for date \a qdt. |
180 | */ | 182 | */ |
181 | QPtrList<Event> rawEventsForDate( const QDateTime &qdt ); | 183 | Q3PtrList<Event> rawEventsForDate( const QDateTime &qdt ); |
182 | /** | 184 | /** |
183 | Get unfiltered events in a range of dates. If inclusive is set to true, | 185 | Get unfiltered events in a range of dates. If inclusive is set to true, |
184 | only events are returned, which are completely included in the range. | 186 | only events are returned, which are completely included in the range. |
185 | */ | 187 | */ |
186 | QPtrList<Event> rawEvents( const QDate &start, const QDate &end, | 188 | Q3PtrList<Event> rawEvents( const QDate &start, const QDate &end, |
187 | bool inclusive = false ); | 189 | bool inclusive = false ); |
188 | Todo *todo( QString, QString ); | 190 | Todo *todo( QString, QString ); |
189 | Event *event( QString, QString ); | 191 | Event *event( QString, QString ); |
@@ -224,9 +226,9 @@ public slots: | |||
224 | private: | 226 | private: |
225 | void init(); | 227 | void init(); |
226 | 228 | ||
227 | QPtrList<Event> mEventList; | 229 | Q3PtrList<Event> mEventList; |
228 | QPtrList<Todo> mTodoList; | 230 | Q3PtrList<Todo> mTodoList; |
229 | QPtrList<Journal> mJournalList; | 231 | Q3PtrList<Journal> mJournalList; |
230 | }; | 232 | }; |
231 | 233 | ||
232 | } | 234 | } |