From 943862dd20ad79007900192fec5c705e9748542a Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Fri, 9 Jun 2000 07:04:09 +0000 Subject: Added a get_n_objects() method. 2000-06-09 Federico Mena Quintero * idl/evolution-calendar.idl (Cal): Added a get_n_objects() method. * pcs/cal-backend.c (cal_backend_get_n_objects): New function. * pcs/cal-backend-imc.c (cal_backend_imc_get_n_objects): Implemented. * pcs/cal.c (Cal_get_n_objects): Implemented. * cal-client/cal-client.c (cal_client_get_uids): Free the ev. (cal_client_get_n_objects): Implemented. * cal-util/calobj.h (iCalObjectField): New enumeration to identify the fields in an iCalObject. svn path=/trunk/; revision=3486 --- calendar/cal-util/calobj.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'calendar/cal-util') diff --git a/calendar/cal-util/calobj.h b/calendar/cal-util/calobj.h index 57514250e5..c93c79f906 100644 --- a/calendar/cal-util/calobj.h +++ b/calendar/cal-util/calobj.h @@ -13,6 +13,7 @@ BEGIN_GNOME_DECLS +/* Alarm types */ enum AlarmType { ALARM_MAIL, ALARM_PROGRAM, @@ -20,12 +21,37 @@ enum AlarmType { ALARM_AUDIO }; +/* Whether the alarm should trigger N mins/hours/days before its due time */ enum AlarmUnit { ALARM_MINUTES, ALARM_HOURS, ALARM_DAYS }; +/* Field identifiers for the iCalObject structure */ +typedef enum { + ICAL_OBJECT_FIELD_COMMENT, + ICAL_OBJECT_FIELD_COMPLETED, + ICAL_OBJECT_FIELD_CREATED, + ICAL_OBJECT_FIELD_DESCRIPTION, + ICAL_OBJECT_FIELD_DTSTAMP, + ICAL_OBJECT_FIELD_DTSTART, + ICAL_OBJECT_FIELD_DTEND, + ICAL_OBJECT_FIELD_GEO, + ICAL_OBJECT_FIELD_LAST_MOD, + ICAL_OBJECT_FIELD_LOCATION, + ICAL_OBJECT_FIELD_ORGANIZER, + ICAL_OBJECT_FIELD_PERCENT, + ICAL_OBJECT_FIELD_PRIORITY, + ICAL_OBJECT_FIELD_SUMMARY, + ICAL_OBJECT_FIELD_URL, + ICAL_OBJECT_FIELD_DALARM, + ICAL_OBJECT_FIELD_AALARM, + ICAL_OBJECT_FIELD_PALARM, + ICAL_OBJECT_FIELD_MALARM, + ICAL_OBJECT_FIELD_NUM_FIELDS +} iCalObjectField; + typedef struct { enum AlarmType type; int enabled; -- cgit v1.2.3