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