calendar.h
Go to the documentation of this file.
virtual void calendarIncidenceAdded(Incidence *)
Notify the Observer that an Incidence has been inserted.
Definition calendar.h:887
virtual void calendarIncidenceDeleted(Incidence *)
Notify the Observer that an Incidence has been removed.
Definition calendar.h:901
virtual void calendarModified(bool, Calendar *)
Notify the Observer that a Calendar has been modified.
Definition calendar.h:879
virtual void calendarIncidenceChanged(Incidence *)
Notify the Observer that an Incidence has been modified.
Definition calendar.h:894
static Todo::List sortTodos(Todo::List *todoList, TodoSortField sortField, SortDirection sortDirection)
Sort a list of Todos.
Definition calendar.cpp:611
void calendarLoaded()
Signal that the Calendar has been loaded into memory.
Calendar(const TQString &timeZoneId)
Construct Calendar object using a Time Zone.
Definition calendar.cpp:43
void setTimeZoneId(const TQString &timeZoneId)
Set the Time Zone Id for the Calendar.
Definition calendar.cpp:103
virtual void setTimeZoneIdViewOnly(const TQString &timeZoneId)=0
Set the timezone used for viewing the incidences in this calendar.
virtual void doSetTimeZoneId(const TQString &)
Let Calendar subclasses set the Time Zone ID.
Definition calendar.h:974
virtual Journal::List rawJournals(JournalSortField sortField=JournalSortUnsorted, SortDirection sortDirection=SortDirectionAscending)=0
Return a sorted, unfiltered list of all Journals for this Calendar.
virtual bool addJournal(Journal *journal)=0
Insert a Journal into the Calendar.
virtual Journal::List rawJournalsForDate(const TQDate &date)=0
Return an unfiltered list of all Journals for on the specifed date.
bool isLocalTime() const
Determine if Calendar Incidences are to be written without a time zone.
Definition calendar.cpp:125
virtual Event::List rawEventsForDate(const TQDateTime &qdt)=0
Return an unfiltered list of all Events which occur on the given timestamp.
void incidenceUpdated(IncidenceBase *incidenceBase)
The Observer interface.
Definition calendar.cpp:963
virtual void setupRelations(Incidence *incidence)
Setup Relations for an Incidence.
Definition calendar.cpp:840
static Event::List sortEvents(Event::List *eventList, EventSortField sortField, SortDirection sortDirection)
Sort a list of Events.
Definition calendar.cpp:188
ErrorFormat * exception() const
Returns an exception, if there is any, containing information about the last error that occurred.
Definition calendar.cpp:80
virtual Todo * todo(const TQString &uid)=0
Returns the Todo associated with the given unique identifier.
virtual void closeTodos()=0
Clears out the current Calendar, freeing all used memory etc.
virtual void closeJournals()=0
Clears out the current Calendar, freeing all used memory etc.
virtual void removeRelations(Incidence *incidence)
Remove all Relations from an Incidence.
Definition calendar.cpp:874
static Event::List sortEventsForDate(Event::List *eventList, const TQDate &date, EventSortField sortField, SortDirection sortDirection)
Sort a list of Events that occur on a specified date.
Definition calendar.cpp:291
virtual Alarm::List alarms(const TQDateTime &from, const TQDateTime &to)=0
Return a list of Alarms within a time range for this Calendar.
void setProductId(const TQString &productId)
Set the Calendar Product ID.
Definition calendar.cpp:1018
virtual bool deleteEvent(Event *event)=0
Remove an Event from the Calendar.
virtual Event::List rawEvents(EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)=0
Return a sorted, unfiltered list of all Events for this Calendar.
virtual Journal * journal(const TQString &uid)=0
Returns the Journal associated with the given unique identifier.
virtual Event::List events(EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Return a sorted, filtered list of all Events for this Calendar.
Definition calendar.cpp:458
void setException(ErrorFormat *e)
Sets information about the last error occurred.
Definition calendar.cpp:85
virtual bool deleteJournal(Journal *journal)=0
Remove a Journal from the Calendar.
virtual Event::List rawEvents(const TQDate &start, const TQDate &end, bool inclusive=false)=0
Return an unfiltered list of all Events occurring within a date range.
virtual Journal::List journals(JournalSortField sortField=JournalSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Return a sorted, filtered list of all Journals for this Calendar.
Definition calendar.cpp:823
virtual Todo::List rawTodos(TodoSortField sortField=TodoSortUnsorted, SortDirection sortDirection=SortDirectionAscending)=0
Return a sorted, unfiltered list of all Todos for this Calendar.
void batchAddingEnds()
virtual Todo::List rawTodosForDate(const TQDate &date)=0
Return an unfiltered list of all Todos which due on the specified date.
void batchAddingBegins()
virtual void close()=0
Clears out the current Calendar, freeing all used memory etc.
Incidence * incidence(const TQString &uid)
Returns the Incidence associated with the given unique identifier.
Definition calendar.cpp:576
virtual Todo::List todos(TodoSortField sortField=TodoSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Return a sorted, filtered list of all Todos for this Calendar.
Definition calendar.cpp:755
virtual bool reload(const TQString &tz)=0
Load the calendar contents from storage.
static Journal::List sortJournals(Journal::List *journalList, JournalSortField sortField, SortDirection sortDirection)
Sort a list of Journals.
Definition calendar.cpp:770
virtual void closeEvents()=0
Clears out the current Calendar, freeing all used memory etc.
virtual Event * event(const TQString &uid)=0
Returns the Event associated with the given unique identifier.
virtual Event::List rawEventsForDate(const TQDate &date, EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)=0
Return a sorted, unfiltered list of all Events which occur on the given date.
CustomProperties()
Construct a new empty custom properties instance.
Definition customproperties.cpp:28
This class provides the base class common to all calendar components.
Definition incidencebase.h:46
This class provides the base class common to all calendar components.
Definition incidence.h:48
