libkcal
calendarnull.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef KCAL_CALENDARNULL_H
00028 #define KCAL_CALENDARNULL_H
00029
00030 #include "calendar.h"
00031 #include "libkcal_export.h"
00032
00033 class KConfig;
00034
00039 namespace KCal {
00040
00050 class LIBKCAL_EXPORT CalendarNull : public Calendar
00051 {
00052 public:
00056 CalendarNull( const QString &timeZoneId );
00057
00061 ~CalendarNull() {}
00062
00067 static CalendarNull *self();
00068
00072 void close() {}
00073
00077 void save() {}
00078
00079 bool reload( const QString & ) { return true;}
00080
00081
00082
00090 bool addEvent( Event * )
00091 { return false; }
00092
00100 bool deleteEvent( Event * )
00101 { return false; }
00102
00111 Event::List rawEvents( EventSortField ,
00112 SortDirection )
00113 { return Event::List(); }
00114
00125 Event::List rawEvents( const QDate & , const QDate & ,
00126 bool )
00127 { return Event::List(); }
00128
00137 Event::List rawEventsForDate( const QDateTime & )
00138 { return Event::List(); }
00139
00151 Event::List rawEventsForDate(
00152 const QDate & ,
00153 EventSortField ,
00154 SortDirection )
00155 { return Event::List(); }
00156
00164 Event *event( const QString & )
00165 { return 0; }
00166
00167
00168
00176 bool addTodo( Todo * )
00177 { return false; }
00178
00186 bool deleteTodo( Todo * )
00187 { return false; }
00188
00197 Todo::List rawTodos( TodoSortField ,
00198 SortDirection )
00199 { return Todo::List(); }
00200
00209 Todo::List rawTodosForDate( const QDate & )
00210 { return Todo::List(); }
00211
00219 Todo *todo( const QString & )
00220 { return 0; }
00221
00222
00223
00231 bool addJournal( Journal * )
00232 { return false; }
00233
00241 bool deleteJournal( Journal * )
00242 { return false; }
00243
00252 Journal::List rawJournals( JournalSortField ,
00253 SortDirection )
00254 { return Journal::List(); }
00255
00263 Journal::List rawJournalsForDate( const QDate & )
00264 { return Journal::List(); }
00265
00273 Journal *journal( const QString & )
00274 { return 0; }
00275
00276
00277
00287 Alarm::List alarms( const QDateTime & , const QDateTime & )
00288 { return Alarm::List(); }
00289
00290
00291
00296 void incidenceUpdated( IncidenceBase * ) {}
00297
00298 void setTimeZoneIdViewOnly( const QString& ) {};
00299
00300 private:
00301 static CalendarNull *mSelf;
00302
00303 class Private;
00304 Private *d;
00305 };
00306
00307 }
00308
00309 #endif
|