aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-06-09 15:04:09 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2000-06-09 15:04:09 +0800
commit943862dd20ad79007900192fec5c705e9748542a (patch)
tree01330a057de763ae84f14e8ce004928d835012f1 /calendar/cal-util
parent95ebc1fc92ebe028654b8842bc9d7e5174a0090e (diff)
downloadgsoc2013-evolution-943862dd20ad79007900192fec5c705e9748542a.tar.gz
gsoc2013-evolution-943862dd20ad79007900192fec5c705e9748542a.tar.zst
gsoc2013-evolution-943862dd20ad79007900192fec5c705e9748542a.zip
Added a get_n_objects() method.
2000-06-09 Federico Mena Quintero <federico@helixcode.com> * 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
Diffstat (limited to 'calendar/cal-util')
-rw-r--r--calendar/cal-util/calobj.h26
1 files changed, 26 insertions, 0 deletions
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;