KCal Library
calendarnull.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00028 #ifndef KCAL_CALENDARNULL_H
00029 #define KCAL_CALENDARNULL_H
00030
00031 #include "calendar.h"
00032 #include "kcal_export.h"
00033
00034 namespace KCal {
00035
00048 class KCAL_EXPORT CalendarNull : public Calendar
00049 {
00050 public:
00060 explicit CalendarNull( const KDateTime::Spec &timeSpec );
00061
00070 explicit CalendarNull( const QString &timeZoneId );
00071
00075 ~CalendarNull();
00076
00081 static CalendarNull *self();
00082
00087 void close();
00088
00093 bool save();
00094
00099 bool reload();
00100
00101
00102
00107 bool addEvent( Event *event );
00108
00113 bool deleteEvent( Event *event );
00114
00119 void deleteAllEvents();
00120
00125 Event::List rawEvents( EventSortField sortField,
00126 SortDirection sortDirection );
00127
00132 Event::List rawEvents( const QDate &start, const QDate &end,
00133 const KDateTime::Spec ×pec = KDateTime::Spec(),
00134 bool inclusive = false );
00135
00141 Event::List rawEventsForDate( const QDate &date,
00142 const KDateTime::Spec ×pec = KDateTime::Spec(),
00143 EventSortField sortField = EventSortUnsorted,
00144 SortDirection sortDirection = SortDirectionAscending );
00145
00150 Event::List rawEventsForDate( const KDateTime &dt );
00151
00156 Event *event( const QString &uid );
00157
00158
00159
00164 bool addTodo( Todo *todo );
00165
00170 bool deleteTodo( Todo *todo );
00171
00176 void deleteAllTodos();
00177
00182 Todo::List rawTodos( TodoSortField sortField,
00183 SortDirection sortDirection );
00184
00189 Todo::List rawTodosForDate( const QDate &date );
00190
00195 Todo *todo( const QString &uid );
00196
00197
00198
00203 bool addJournal( Journal *journal );
00204
00209 bool deleteJournal( Journal *journal );
00210
00215 void deleteAllJournals();
00216
00221 Journal::List rawJournals( JournalSortField sortField,
00222 SortDirection sortDirection );
00223
00228 Journal::List rawJournalsForDate( const QDate &date );
00229
00234 Journal *journal( const QString &uid );
00235
00236
00237
00242 Alarm::List alarms( const KDateTime &from, const KDateTime &to );
00243
00244
00245
00250 void incidenceUpdated( IncidenceBase *incidenceBase );
00251
00252 using QObject::event;
00253
00254 private:
00255
00256 Q_DISABLE_COPY( CalendarNull )
00257 class Private;
00258 Private *const d;
00259
00260 };
00261
00262 }
00263
00264 #endif