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 )
521 // This incidence has a parent; notify the parent of the child's death and do not destroy the parent!
bool save(const TQString &fileName, CalFormat *format=0)
Writes out the calendar to disk in the specified format.
Definition: calendarlocal.cpp:80
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
Journal::List rawJournals(JournalSortField sortField=JournalSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Return list of all journals.
Definition: resourcecached.cpp:262
Alarm::List alarmsTo(const TQDateTime &to)
Return all alarms, which ocur before given date.
Definition: calendarlocal.cpp:309
Incidence::List rawIncidences()
Returns a list of all incideces.
Definition: resourcecalendar.cpp:119
Event::List rawEvents(EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Return unfiltered list of all events in calendar.
Definition: calendarlocal.cpp:643
IncidenceList childIncidences() const
Returns an EventList of all child incidences.
Definition: incidence.cpp:934
void calendarIncidenceChanged(KCal::Incidence *incidence)
Notify the Observer that an Incidence has been modified.
Definition: resourcecached.cpp:496
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
Alarm::List alarms(const TQDateTime &from, const TQDateTime &to)
Return all alarms, which ocur in the given time interval.
Definition: resourcecached.cpp:278
void closeTodos()
Clears out the current calendar, freeing all used memory etc.
Definition: calendarlocal.cpp:120
void setSaveInterval(int minutes)
Set save interval in minutes which is used when save policy is SaveInterval.
Definition: resourcecached.cpp:100
Incidence * incidence(const TQString &uid)
Return incidence with given unique id.
Definition: resourcecalendar.cpp:91
Journal::List rawJournalsForDate(const TQDate &date)
Return list of journals for the given date.
Definition: resourcecached.cpp:267
This class provides a calendar stored as a local file.
Definition: calendarlocal.h:36
void setReloadInterval(int minutes)
Set reload interval in minutes which is used when reload policy is ReloadInterval.
Definition: resourcecached.cpp:78
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
Event::List rawEvents(EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Return unfiltered list of all events in calendar.
Definition: resourcecached.cpp:204
void closeJournals()
Clears out the current calendar, freeing all used memory etc.
Definition: calendarlocal.cpp:133
This class provides the base class common to all calendar components.
Definition: incidence.h:47
void close()
Clears out the current calendar, freeing all used memory etc.
Definition: calendarlocal.cpp:92
virtual TQString changesCacheFile(const TQString &) const
Functions for keeping the changes persistent.
Definition: resourcecached.cpp:423
KDE_DEPRECATED bool addTodo(Todo *todo)
Add a todo to the todolist.
Definition: resourcecached.cpp:209
bool deleteEvent(Event *event)
Deletes an event from this calendar.
Definition: calendarlocal.cpp:160
void calendarIncidenceAdded(KCal::Incidence *incidence)
Notify the Observer that an Incidence has been inserted.
Definition: resourcecached.cpp:480
const Person & getOwner() const
Return the owner of the calendar's full name.
Definition: resourcecached.cpp:717
bool checkForReload()
Check if reload required according to reload policy.
Definition: resourcecached.cpp:674
Todo::List rawTodos(TodoSortField sortField=TodoSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Return list of all todos.
Definition: resourcecached.cpp:231
void registerObserver(Observer *observer)
Register an Observer for this Calendar.
Definition: calendar.cpp:938
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
Namespace KCal is for global classes, objects and/or functions in libkcal.
Definition: alarm.h:38
void setTimeZoneId(const TQString &timeZoneId)
Set id of timezone, e.g.
Definition: resourcecached.cpp:285
void calendarIncidenceDeleted(KCal::Incidence *incidence)
Notify the Observer that an Incidence has been removed.
Definition: resourcecached.cpp:513
Todo::List rawTodos(TodoSortField sortField=TodoSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Return list of all todos.
Definition: calendarlocal.cpp:278
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
Todo::List rawTodosForDate(const TQDate &date)
Returns list of todos due on the specified date.
Definition: calendarlocal.cpp:294
Todo * todo(const TQString &uid)
Searches todolist for an event with this unique string identifier, returns a pointer or null...
Definition: resourcecached.cpp:236
bool hasRecurrenceID() const
Returns true if the incidence has recurrenceID, otherwise return false.
Definition: incidence.cpp:893
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 * journal(const TQString &uid)
Return Journal with given unique id.
Definition: resourcecached.cpp:257
void loadCache()
Loads the cache, this method should be called on load.
Definition: resourcecached.cpp:302
Journal::List rawJournalsForDate(const TQDate &date)
Get unfiltered journals for a given date.
Definition: calendarlocal.cpp:729
bool checkForSave()
Check if save required according to save policy.
Definition: resourcecached.cpp:681
void setTimeZoneId(const TQString &timeZoneId)
Set the Time Zone Id for the Calendar.
Definition: calendar.cpp:103
void addInfoText(TQString &) const
Add info text for concrete resources.
Definition: resourcecached.cpp:687
Journal * journal(const TQString &uid)
Return Journal with given UID.
Definition: calendarlocal.cpp:714
void closeEvents()
Clears out the current calendar, freeing all used memory etc.
Definition: calendarlocal.cpp:107
Todo::List rawTodosForDate(const TQDate &date)
Returns list of todos due on the specified date.
Definition: resourcecached.cpp:241
Event * event(const TQString &UniqueStr)
Retrieves an event on the basis of the unique string ID.
Definition: resourcecached.cpp:179
Journal::List rawJournals(JournalSortField sortField=JournalSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Return list of all journals.
Definition: calendarlocal.cpp:724
Alarm::List alarmsTo(const TQDateTime &to)
Return all alarms, which ocur before given date.
Definition: resourcecached.cpp:273
Event * event(const TQString &uid)
Retrieves an event on the basis of the unique string ID.
Definition: calendarlocal.cpp:208
Alarm::List alarms(const TQDateTime &from, const TQDateTime &to)
Return all alarms, which ocur in the given time interval.
Definition: calendarlocal.cpp:314
KDE_DEPRECATED bool addJournal(Journal *journal)
Add a Journal entry to calendar.
Definition: resourcecached.cpp:246
void unregisterObserver(Observer *observer)
Unregister an Observer for this Calendar.
Definition: calendar.cpp:945