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 &timeSpec = KDateTime::Spec(),
00134 bool inclusive = false );
00135
00147 Event::List rawEventsForDate( const QDate &date,
00148 const KDateTime::Spec &timeSpec = KDateTime::Spec(),
00149 EventSortField sortField = EventSortUnsorted,
00150 SortDirection sortDirection = SortDirectionAscending );
00151
00156 Event::List rawEventsForDate( const KDateTime &dt );
00157
00162 Event *event( const QString &uid );
00163
00164
00165
00170 bool addTodo( Todo *todo );
00171
00176 bool deleteTodo( Todo *todo );
00177
00182 void deleteAllTodos();
00183
00188 Todo::List rawTodos( TodoSortField sortField,
00189 SortDirection sortDirection );
00190
00195 Todo::List rawTodosForDate( const QDate &date );
00196
00201 Todo *todo( const QString &uid );
00202
00203
00204
00209 bool addJournal( Journal *journal );
00210
00215 bool deleteJournal( Journal *journal );
00216
00221 void deleteAllJournals();
00222
00227 Journal::List rawJournals( JournalSortField sortField,
00228 SortDirection sortDirection );
00229
00234 Journal::List rawJournalsForDate( const QDate &date );
00235
00240 Journal *journal( const QString &uid );
00241
00242
00243
00248 Alarm::List alarms( const KDateTime &from, const KDateTime &to );
00249
00250
00251
00256 void incidenceUpdated( IncidenceBase *incidenceBase );
00257
00258 using QObject::event;
00259
00260 private:
00261
00262 Q_DISABLE_COPY( CalendarNull )
00263 class Private;
00264 Private *const d;
00265
00266 };
00267
00268 }
00269
00270 #endif