AlarmCalendar Class Reference
Provides read and write access to calendar files. More...
#include <alarmcalendar.h>
Inherits QObject.
Public Types
- enum CalID {
ACTIVE, EXPIRED, DISPLAY, TEMPLATE,
NCALS
}
Signals
- void calendarSaved (AlarmCalendar *)
- void purged ()
- void emptyStatus (bool empty)
Public Member Functions
- bool valid () const
- KAEvent::Status type () const
- bool open ()
- int load ()
- bool reload ()
- void save ()
- void close ()
- void startUpdate ()
- void endUpdate ()
- KCal::Event * event (const QString &uniqueID)
- KCal::Event::List events ()
- KCal::Event::List events (const QDate &d, bool sorted=false)
- KCal::Event::List eventsWithAlarms (const QDateTime &from, const QDateTime &to)
- KCal::Event * addEvent (const KAEvent &, bool useEventID=false)
- void updateEvent (const KAEvent &)
- void deleteEvent (const QString &eventID, bool save=false)
- void emitEmptyStatus ()
- void purgeAll ()
- void setPurgeDays (int days)
- void purgeIfQueued ()
- bool isOpen () const
- QString path () const
- QString urlString () const
- int KAlarmVersion () const
- const QString & KAlarmSubVersion () const
- bool KAlarmVersion057_UTC () const
Static Public Member Functions
- static int KAlarmVersion (int major, int minor, int rev)
- static bool initialiseCalendars ()
- static void terminateCalendars ()
- static AlarmCalendar * activeCalendar ()
- static AlarmCalendar * expiredCalendar ()
- static AlarmCalendar * displayCalendar ()
- static AlarmCalendar * templateCalendar ()
- static AlarmCalendar * activeCalendarOpen ()
- static AlarmCalendar * expiredCalendarOpen ()
- static AlarmCalendar * displayCalendarOpen ()
- static AlarmCalendar * templateCalendarOpen ()
Detailed Description
Provides read and write access to calendar files.Either vCalendar or iCalendar files may be read, but the calendar is saved only in iCalendar format to avoid information loss.
The documentation for this class was generated from the following files:
- alarmcalendar.h
- alarmcalendar.cpp