aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util/cal-component.h
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-08-12 01:49:53 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2000-08-12 01:49:53 +0800
commitbba515a79c91c90e413403d1f03251cf0ed33457 (patch)
tree8ec92963b99bf69a1874280cfbaf003908442350 /calendar/cal-util/cal-component.h
parent1fa80ef1b7e6de2c0653b68f60986ae4150d2780 (diff)
downloadgsoc2013-evolution-bba515a79c91c90e413403d1f03251cf0ed33457.tar
gsoc2013-evolution-bba515a79c91c90e413403d1f03251cf0ed33457.tar.gz
gsoc2013-evolution-bba515a79c91c90e413403d1f03251cf0ed33457.tar.bz2
gsoc2013-evolution-bba515a79c91c90e413403d1f03251cf0ed33457.tar.lz
gsoc2013-evolution-bba515a79c91c90e413403d1f03251cf0ed33457.tar.xz
gsoc2013-evolution-bba515a79c91c90e413403d1f03251cf0ed33457.tar.zst
gsoc2013-evolution-bba515a79c91c90e413403d1f03251cf0ed33457.zip
Handle the PERCENT-COMPLETE property. (free_icalcomponent): Likewise.
2000-08-11 Federico Mena Quintero <federico@helixcode.com> * cal-util/cal-component.c (scan_property): Handle the PERCENT-COMPLETE property. (free_icalcomponent): Likewise. (cal_component_get_percent): Likewise. (cal_component_set_percent): Likewise. (cal_component_free_percent): Likewise. (scan_property): Handle the PRIORITY property. (free_icalcomponent): Likewise. (cal_component_get_priority): Likewise. (cal_component_set_priority): Likewise. (cal_component_free_priority): Likewise. * cal-util/cal-component.h (CalComponentField): New enumeration with the list of fields we support for ETable. svn path=/trunk/; revision=4745
Diffstat (limited to 'calendar/cal-util/cal-component.h')
-rw-r--r--calendar/cal-util/cal-component.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/calendar/cal-util/cal-component.h b/calendar/cal-util/cal-component.h
index 1fc1d455d4..faecd6621f 100644
--- a/calendar/cal-util/cal-component.h
+++ b/calendar/cal-util/cal-component.h
@@ -51,6 +51,29 @@ typedef enum {
CAL_COMPONENT_TIMEZONE
} CalComponentVType;
+/* Field identifiers for a calendar component */
+typedef enum {
+ CAL_COMPONENT_FIELD_CATEGORIES,
+ CAL_COMPONENT_FIELD_CLASSIFICATION,
+ CAL_COMPONENT_FIELD_COMPLETED,
+ CAL_COMPONENT_FIELD_CREATED,
+ CAL_COMPONENT_FIELD_DTEND,
+ CAL_COMPONENT_FIELD_DTSTART,
+ CAL_COMPONENT_FIELD_DUE,
+ CAL_COMPONENT_FIELD_PERCENT,
+ CAL_COMPONENT_FIELD_PRIORITY,
+ CAL_COMPONENT_FIELD_SUMMARY,
+ CAL_COMPONENT_FIELD_TRANSPARENCY,
+ CAL_COMPONENT_FIELD_URL,
+ CAL_COMPONENT_FIELD_HAS_ALARMS, /* not a real field */
+ CAL_COMPONENT_FIELD_ICON, /* not a real field */
+ CAL_COMPONENT_FIELD_COMPLETE, /* not a real field */
+ CAL_COMPONENT_FIELD_RECURRING, /* not a real field */
+ CAL_COMPONENT_FIELD_OVERDUE, /* not a real field */
+ CAL_COMPONENT_FIELD_COLOR, /* not a real field */
+ CAL_COMPONETN_FIELD_NUM_FIELDS
+} CalComponentField;
+
/* Structures to return properties and their parameters */
typedef enum {
@@ -181,6 +204,12 @@ void cal_component_set_exrule_list (CalComponent *comp, GSList *recur_list);
void cal_component_get_last_modified (CalComponent *comp, struct icaltimetype **t);
void cal_component_set_last_modified (CalComponent *comp, struct icaltimetype *t);
+void cal_component_get_percent (CalComponent *comp, int **percent);
+void cal_component_set_percent (CalComponent *comp, int *percent);
+
+void cal_component_get_priority (CalComponent *comp, int **priority);
+void cal_component_set_priority (CalComponent *comp, int *priority);
+
void cal_component_get_rdate_list (CalComponent *comp, GSList **period_list);
void cal_component_set_rdate_list (CalComponent *comp, GSList *period_list);
@@ -205,6 +234,8 @@ void cal_component_free_categories_list (GSList *categ_list);
void cal_component_free_datetime (CalComponentDateTime *dt);
void cal_component_free_exdate_list (GSList *exdate_list);
void cal_component_free_icaltimetype (struct icaltimetype *t);
+void cal_component_free_percent (int *percent);
+void cal_component_free_priority (int *priority);
void cal_component_free_period_list (GSList *period_list);
void cal_component_free_recur_list (GSList *recur_list);
void cal_component_free_sequence (int *sequence);