resourcecached.cpp
23 // If a cached resource initiates a reload while an event editor is active, or an event is locked for editing,
24 // a big fat crash will ensue. The reload subroutine must ABORT if ANY korganizer events are locked for editing!!!
262 Journal::List ResourceCached::rawJournals( JournalSortField sortField, SortDirection sortDirection )
280 // kdDebug(5800) << "ResourceCached::alarms(" << from.toString() << " - " << to.toString() << ")\n";
428 void ResourceCached::saveChangesCache( const TQMap<Incidence*, bool> &map, const TQString &type )
TDE_DEPRECATED bool addTodo(Todo *todo)
Add a todo to the todolist.
Definition: resourcecached.cpp:209
Alarm::List alarmsTo(const TQDateTime &to)
Return all alarms, which ocur before given date.
Definition: calendarlocal.cpp:309
Todo * todo(const TQString &uid)
Searches todolist for an event with this unique string identifier, returns a pointer or null.
Definition: calendarlocal.cpp:284
Journal::List rawJournalsForDate(const TQDate &date)
Get unfiltered journals for a given date.
Definition: calendarlocal.cpp:729
IncidenceList childIncidences() const
Returns an EventList of all child incidences.
Definition: incidence.cpp:934
Event * event(const TQString &uid)
Retrieves an event on the basis of the unique string ID.
Definition: calendarlocal.cpp:208
bool load(const TQString &fileName, CalFormat *format=0)
Loads a calendar on disk in vCalendar or iCalendar format into the current calendar.
Definition: calendarlocal.cpp:62
Event::List rawEventsForDate(const TQDate &date, EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Builds and then returns a list of all events that match for the date specified.
Definition: resourcecached.cpp:184
bool checkForSave()
Check if save required according to save policy.
Definition: resourcecached.cpp:681
void calendarIncidenceAdded(KCal::Incidence *incidence)
Notify the Observer that an Incidence has been inserted.
Definition: resourcecached.cpp:480
bool save(const TQString &fileName, CalFormat *format=0)
Writes out the calendar to disk in the specified format.
Definition: calendarlocal.cpp:80
void registerObserver(Observer *observer)
Register an Observer for this Calendar.
Definition: calendar.cpp:938
Todo::List rawTodosForDate(const TQDate &date)
Returns list of todos due on the specified date.
Definition: resourcecached.cpp:241
const Person & getOwner() const
Return the owner of the calendar's full name.
Definition: resourcecached.cpp:717
Todo * todo(const TQString &uid)
Searches todolist for an event with this unique string identifier, returns a pointer or null.
Definition: resourcecached.cpp:236
Todo::List rawTodos(TodoSortField sortField=TodoSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Return list of all todos.
Definition: resourcecached.cpp:231
Alarm::List alarms(const TQDateTime &from, const TQDateTime &to)
Return all alarms, which ocur in the given time interval.
Definition: calendarlocal.cpp:314
Incidence * incidence(const TQString &uid)
Return incidence with given unique id.
Definition: resourcecalendar.cpp:91
bool hasRecurrenceID() const
Returns true if the incidence has recurrenceID, otherwise return false.
Definition: incidence.cpp:893
void calendarIncidenceDeleted(KCal::Incidence *incidence)
Notify the Observer that an Incidence has been removed.
Definition: resourcecached.cpp:513
Journal * journal(const TQString &uid)
Return Journal with given unique id.
Definition: resourcecached.cpp:257
Definition: alarm.h:38
void setTimeZoneId(const TQString &timeZoneId)
Set id of timezone, e.g.
Definition: resourcecached.cpp:285
void setTimeZoneId(const TQString &timeZoneId)
Set the Time Zone Id for the Calendar.
Definition: calendar.cpp:103
void loadCache()
Loads the cache, this method should be called on load.
Definition: resourcecached.cpp:302
Event::List rawEvents(EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Return unfiltered list of all events in calendar.
Definition: calendarlocal.cpp:643
This class provides a calendar stored as a local file.
Definition: calendarlocal.h:36
virtual TQString cacheFile() const
This method is used by loadCache() and saveCache(), reimplement it to change the location of the cach...
Definition: resourcecached.cpp:418
void unregisterObserver(Observer *observer)
Unregister an Observer for this Calendar.
Definition: calendar.cpp:945
Todo::List rawTodosForDate(const TQDate &date)
Returns list of todos due on the specified date.
Definition: calendarlocal.cpp:294
void closeJournals()
Clears out the current calendar, freeing all used memory etc.
Definition: calendarlocal.cpp:133
TDE_DEPRECATED bool addJournal(Journal *journal)
Add a Journal entry to calendar.
Definition: resourcecached.cpp:246
Event * event(const TQString &UniqueStr)
Retrieves an event on the basis of the unique string ID.
Definition: resourcecached.cpp:179
Todo::List rawTodos(TodoSortField sortField=TodoSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Return list of all todos.
Definition: calendarlocal.cpp:278
void closeEvents()
Clears out the current calendar, freeing all used memory etc.
Definition: calendarlocal.cpp:107
virtual TQString changesCacheFile(const TQString &) const
Functions for keeping the changes persistent.
Definition: resourcecached.cpp:423
Alarm::List alarmsTo(const TQDateTime &to)
Return all alarms, which ocur before given date.
Definition: resourcecached.cpp:273
Alarm::List alarms(const TQDateTime &from, const TQDateTime &to)
Return all alarms, which ocur in the given time interval.
Definition: resourcecached.cpp:278
This class provides the base class common to all calendar components.
Definition: incidence.h:47
void setSaveInterval(int minutes)
Set save interval in minutes which is used when save policy is SaveInterval.
Definition: resourcecached.cpp:100
Journal::List rawJournalsForDate(const TQDate &date)
Return list of journals for the given date.
Definition: resourcecached.cpp:267
This class provides the interfaces for a calendar resource.
Definition: resourcecalendar.h:57
virtual void doClose()
Virtual method from KRES::Resource, called when the last instace of the resource is closed.
Definition: resourcecached.cpp:701
void calendarIncidenceChanged(KCal::Incidence *incidence)
Notify the Observer that an Incidence has been modified.
Definition: resourcecached.cpp:496
Journal::List rawJournals(JournalSortField sortField=JournalSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Return list of all journals.
Definition: resourcecached.cpp:262
Journal * journal(const TQString &uid)
Return Journal with given UID.
Definition: calendarlocal.cpp:714
void addInfoText(TQString &) const
Add info text for concrete resources.
Definition: resourcecached.cpp:687
Journal::List rawJournals(JournalSortField sortField=JournalSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Return list of all journals.
Definition: calendarlocal.cpp:724
void close()
Clears out the current calendar, freeing all used memory etc.
Definition: calendarlocal.cpp:92
void closeTodos()
Clears out the current calendar, freeing all used memory etc.
Definition: calendarlocal.cpp:120
void setReloadInterval(int minutes)
Set reload interval in minutes which is used when reload policy is ReloadInterval.
Definition: resourcecached.cpp:78
Event::List rawEvents(EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Return unfiltered list of all events in calendar.
Definition: resourcecached.cpp:204
Event::List rawEventsForDate(const TQDate &date, EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Builds and then returns a list of all events that match for the date specified.
Definition: calendarlocal.cpp:526
bool checkForReload()
Check if reload required according to reload policy.
Definition: resourcecached.cpp:674