22 #ifndef KCAL_CALENDARLOCAL_H
23 #define KCAL_CALENDARLOCAL_H
27 #include <tdemacros.h>
58 bool load( const TQString &fileName, CalFormat *format = 0 );
65 bool reload( const TQString &tz );
74 bool save( const TQString &fileName, CalFormat *format = 0 );
101 bool addEvent( Event *event );
105 bool deleteEvent( Event *event );
109 bool deleteChildEvents( Event *event );
113 void deleteAllEvents();
118 Event *event( const TQString &uid );
127 bool addTodo( Todo *todo );
131 bool deleteTodo( Todo * );
135 bool deleteChildTodos( Todo *todo );
139 void deleteAllTodos();
144 Todo *todo( const TQString &uid );
152 Todo::List rawTodosForDate( const TQDate &date );
161 bool deleteJournal( Journal * );
165 bool deleteChildJournals( Journal *journal );
169 void deleteAllJournals();
173 Journal *journal( const TQString &uid );
186 Alarm::List alarms( const TQDateTime &from, const TQDateTime &to );
201 Event::List rawEventsForDate( const TQDateTime &qdt );
211 Event::List rawEvents( const TQDate &start, const TQDate &end,
212 bool inclusive = false );
219 void setTimeZoneIdViewOnly( const TQString& tz );
227 void insertEvent( Event *event );
231 const TQDateTime &from, const TQDateTime &to );
235 const TQDateTime &from, const TQDateTime &to );
240 typedef TQDict<Event> EventDict;
241 typedef TQDictIterator<Event> EventDictIterator;
Provides the main "calendar" object class.
This class provides a calendar stored as a local file.
void save() Sync changes in memory to persistant storage.
This is the main "calendar" object class.
This class provides an Event in the sense of RFC2445.
This class provides the base class common to all calendar components.
This class provides the base class common to all calendar components.
This class provides a Journal in the sense of RFC2445.
This class provides a Todo in the sense of RFC2445.
Namespace KCal is for global classes, objects and/or functions in libkcal.
TodoSortField How Todos are to be sorted.
@ TodoSortUnsorted Todos are to be unsorted.
JournalSortField How Journals are to be sorted.
@ JournalSortUnsorted Journals are to be unsorted.
EventSortField How Events are to be sorted.
@ EventSortUnsorted Events are to be unsorted.
SortDirection Sort direction.
@ SortDirectionAscending Sort in ascending order (first to last)
|