[evolution-data-server] e-cal-component.h cleanups.



commit 37535a310fcaf57ec14134bb71cc64df9f348dfb
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Mar 17 11:43:31 2013 -0400

    e-cal-component.h cleanups.

 calendar/libecal/e-cal-component.h                 |  561 ++++++++++++--------
 .../calendar/libecal/libecal-sections.txt          |    3 +-
 2 files changed, 354 insertions(+), 210 deletions(-)
---
diff --git a/calendar/libecal/e-cal-component.h b/calendar/libecal/e-cal-component.h
index 8944324..705e68c 100644
--- a/calendar/libecal/e-cal-component.h
+++ b/calendar/libecal/e-cal-component.h
@@ -29,16 +29,26 @@
 #include <glib-object.h>
 #include <libical/ical.h>
 
-G_BEGIN_DECLS
-
-
+/* Standard GObject macros */
+#define E_TYPE_CAL_COMPONENT \
+       (e_cal_component_get_type ())
+#define E_CAL_COMPONENT(obj) \
+       (G_TYPE_CHECK_INSTANCE_CAST \
+       ((obj), E_TYPE_CAL_COMPONENT, ECalComponent))
+#define E_CAL_COMPONENT_CLASS(cls) \
+       (G_TYPE_CHECK_CLASS_CAST \
+       ((cls), E_TYPE_CAL_COMPONENT, ECalComponentClass))
+#define E_IS_CAL_COMPONENT(obj) \
+       (G_TYPE_CHECK_INSTANCE_TYPE \
+       ((obj), E_TYPE_CAL_COMPONENT))
+#define E_IS_CAL_COMPONENT_CLASS(cls) \
+       (G_TYPE_CHECK_CLASS_TYPE \
+       ((cls), E_TYPE_CAL_COMPONENT))
+#define E_CAL_COMPONENT_GET_CLASS(obj) \
+       (G_TYPE_INSTANCE_GET_CLASS \
+       ((obj), E_TYPE_CAL_COMPONENT, ECalComponentClass))
 
-#define E_TYPE_CAL_COMPONENT            (e_cal_component_get_type ())
-#define E_CAL_COMPONENT(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_CAL_COMPONENT, 
ECalComponent))
-#define E_CAL_COMPONENT_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), E_TYPE_CAL_COMPONENT,       \
-                                      ECalComponentClass))
-#define E_IS_CAL_COMPONENT(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_CAL_COMPONENT))
-#define E_IS_CAL_COMPONENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), E_TYPE_CAL_COMPONENT))
+G_BEGIN_DECLS
 
 typedef struct {
        gchar *uid;
@@ -65,7 +75,7 @@ typedef enum {
  *       numbers are saved in the user settings file. So don't reorder them!
  */
 typedef enum {
-       E_CAL_COMPONENT_FIELD_CATEGORIES,               /* concatenation of the categories list */
+       E_CAL_COMPONENT_FIELD_CATEGORIES,       /* concatenation of categories */
        E_CAL_COMPONENT_FIELD_CLASSIFICATION,
        E_CAL_COMPONENT_FIELD_COMPLETED,
        E_CAL_COMPONENT_FIELD_DTEND,
@@ -77,14 +87,14 @@ typedef enum {
        E_CAL_COMPONENT_FIELD_SUMMARY,
        E_CAL_COMPONENT_FIELD_TRANSPARENCY,
        E_CAL_COMPONENT_FIELD_URL,
-       E_CAL_COMPONENT_FIELD_HAS_ALARMS,               /* not a real field */
+       E_CAL_COMPONENT_FIELD_HAS_ALARMS,       /* not a real field */
        E_CAL_COMPONENT_FIELD_ICON,             /* not a real field */
        E_CAL_COMPONENT_FIELD_COMPLETE,         /* not a real field */
-       E_CAL_COMPONENT_FIELD_RECURRING,                /* not a real field */
+       E_CAL_COMPONENT_FIELD_RECURRING,        /* not a real field */
        E_CAL_COMPONENT_FIELD_OVERDUE,          /* not a real field */
        E_CAL_COMPONENT_FIELD_COLOR,            /* not a real field */
        E_CAL_COMPONENT_FIELD_STATUS,
-       E_CAL_COMPONENT_FIELD_COMPONENT,                /* not a real field */
+       E_CAL_COMPONENT_FIELD_COMPONENT,        /* not a real field */
        E_CAL_COMPONENT_FIELD_LOCATION,
        E_CAL_COMPONENT_FIELD_NUM_FIELDS
 } ECalComponentField;
@@ -185,13 +195,10 @@ typedef struct {
 
 typedef struct _ECalComponent ECalComponent;
 typedef struct _ECalComponentClass ECalComponentClass;
-
 typedef struct _ECalComponentPrivate ECalComponentPrivate;
 
 struct _ECalComponent {
-       GObject object;
-
-       /*< private >*/
+       GObject parent;
        ECalComponentPrivate *priv;
 };
 
@@ -201,167 +208,272 @@ struct _ECalComponentClass {
 
 /* Calendar component */
 
-GType e_cal_component_get_type (void);
-
-gchar *e_cal_component_gen_uid (void);
-
-ECalComponent *e_cal_component_new (void);
-
-ECalComponent *e_cal_component_new_from_string (const gchar *calobj);
-ECalComponent *e_cal_component_new_from_icalcomponent (icalcomponent *icalcomp);
-
-ECalComponent *e_cal_component_clone (ECalComponent *comp);
-
-void e_cal_component_set_new_vtype (ECalComponent *comp, ECalComponentVType type);
-
-gboolean e_cal_component_set_icalcomponent (ECalComponent *comp, icalcomponent *icalcomp);
-icalcomponent *e_cal_component_get_icalcomponent (ECalComponent *comp);
-void e_cal_component_rescan (ECalComponent *comp);
-void e_cal_component_strip_errors (ECalComponent *comp);
-
-ECalComponentVType e_cal_component_get_vtype (ECalComponent *comp);
-
-gchar *e_cal_component_get_as_string (ECalComponent *comp);
-
-void e_cal_component_commit_sequence (ECalComponent *comp);
-void e_cal_component_abort_sequence (ECalComponent *comp);
-
-void e_cal_component_get_uid (ECalComponent *comp, const gchar **uid);
-void e_cal_component_set_uid (ECalComponent *comp, const gchar *uid);
-
-ECalComponentId *e_cal_component_get_id (ECalComponent *comp);
-void e_cal_component_free_id (ECalComponentId *id);
-ECalComponentId *e_cal_component_id_copy (const ECalComponentId *id);
-guint e_cal_component_id_hash (const ECalComponentId *id);
-gboolean e_cal_component_id_equal (const ECalComponentId *id1, const ECalComponentId *id2);
-
-void e_cal_component_get_categories (ECalComponent *comp, const gchar **categories);
-void e_cal_component_set_categories (ECalComponent *comp, const gchar *categories);
-void e_cal_component_get_categories_list (ECalComponent *comp, GSList **categ_list);
-void e_cal_component_set_categories_list (ECalComponent *comp, GSList *categ_list);
-
-void e_cal_component_get_classification (ECalComponent *comp, ECalComponentClassification *classif);
-void e_cal_component_set_classification (ECalComponent *comp, ECalComponentClassification classif);
-
-void e_cal_component_get_comment_list (ECalComponent *comp, GSList **text_list);
-void e_cal_component_set_comment_list (ECalComponent *comp, GSList *text_list);
-
-void e_cal_component_get_completed (ECalComponent *comp, struct icaltimetype **t);
-void e_cal_component_set_completed (ECalComponent *comp, struct icaltimetype *t);
-
-void e_cal_component_get_contact_list (ECalComponent *comp, GSList **text_list);
-void e_cal_component_set_contact_list (ECalComponent *comp, GSList *text_list);
-
-void e_cal_component_get_created (ECalComponent *comp, struct icaltimetype **t);
-void e_cal_component_set_created (ECalComponent *comp, struct icaltimetype *t);
-
-void e_cal_component_get_description_list (ECalComponent *comp, GSList **text_list);
-void e_cal_component_set_description_list (ECalComponent *comp, GSList *text_list);
-
-void e_cal_component_get_dtend (ECalComponent *comp, ECalComponentDateTime *dt);
-void e_cal_component_set_dtend (ECalComponent *comp, ECalComponentDateTime *dt);
-
-void e_cal_component_get_dtstamp (ECalComponent *comp, struct icaltimetype *t);
-void e_cal_component_set_dtstamp (ECalComponent *comp, struct icaltimetype *t);
-
-void e_cal_component_get_dtstart (ECalComponent *comp, ECalComponentDateTime *dt);
-void e_cal_component_set_dtstart (ECalComponent *comp, ECalComponentDateTime *dt);
-
-void e_cal_component_get_due (ECalComponent *comp, ECalComponentDateTime *dt);
-void e_cal_component_set_due (ECalComponent *comp, ECalComponentDateTime *dt);
-
-void e_cal_component_get_exdate_list (ECalComponent *comp, GSList **exdate_list);
-void e_cal_component_set_exdate_list (ECalComponent *comp, GSList *exdate_list);
-gboolean e_cal_component_has_exdates (ECalComponent *comp);
-
-void e_cal_component_get_exrule_list (ECalComponent *comp, GSList **recur_list);
-void e_cal_component_get_exrule_property_list (ECalComponent *comp, GSList **recur_list);
-void e_cal_component_set_exrule_list (ECalComponent *comp, GSList *recur_list);
-gboolean e_cal_component_has_exrules (ECalComponent *comp);
-
-gboolean e_cal_component_has_exceptions (ECalComponent *comp);
-
-void e_cal_component_get_geo (ECalComponent *comp, struct icalgeotype **geo);
-void e_cal_component_set_geo (ECalComponent *comp, struct icalgeotype *geo);
-
-void e_cal_component_get_last_modified (ECalComponent *comp, struct icaltimetype **t);
-void e_cal_component_set_last_modified (ECalComponent *comp, struct icaltimetype *t);
-
-void e_cal_component_get_organizer (ECalComponent *comp, ECalComponentOrganizer *organizer);
-void e_cal_component_set_organizer (ECalComponent *comp, ECalComponentOrganizer *organizer);
-gboolean e_cal_component_has_organizer (ECalComponent *comp);
-
-gint  e_cal_component_get_percent_as_int (ECalComponent *comp);
-void e_cal_component_set_percent_as_int (ECalComponent *comp, gint percent);
-
-void e_cal_component_get_percent (ECalComponent *comp, gint **percent);
-void e_cal_component_set_percent (ECalComponent *comp, gint *percent);
-
-void e_cal_component_get_priority (ECalComponent *comp, gint **priority);
-void e_cal_component_set_priority (ECalComponent *comp, gint *priority);
-
-void e_cal_component_get_recurid (ECalComponent *comp, ECalComponentRange *recur_id);
-gchar *e_cal_component_get_recurid_as_string (ECalComponent *comp);
-void e_cal_component_set_recurid (ECalComponent *comp, ECalComponentRange *recur_id);
-
-void e_cal_component_get_rdate_list (ECalComponent *comp, GSList **period_list);
-void e_cal_component_set_rdate_list (ECalComponent *comp, GSList *period_list);
-gboolean e_cal_component_has_rdates (ECalComponent *comp);
-
-void e_cal_component_get_rrule_list (ECalComponent *comp, GSList **recur_list);
-void e_cal_component_get_rrule_property_list (ECalComponent *comp, GSList **recur_list);
-void e_cal_component_set_rrule_list (ECalComponent *comp, GSList *recur_list);
-gboolean e_cal_component_has_rrules (ECalComponent *comp);
-
-gboolean e_cal_component_has_recurrences (ECalComponent *comp);
-gboolean e_cal_component_has_simple_recurrence (ECalComponent *comp);
-gboolean e_cal_component_is_instance (ECalComponent *comp);
-
-void e_cal_component_get_sequence (ECalComponent *comp, gint **sequence);
-void e_cal_component_set_sequence (ECalComponent *comp, gint *sequence);
-
-void e_cal_component_get_status (ECalComponent *comp, icalproperty_status *status);
-void e_cal_component_set_status (ECalComponent *comp, icalproperty_status status);
-
-void e_cal_component_get_summary (ECalComponent *comp, ECalComponentText *summary);
-void e_cal_component_set_summary (ECalComponent *comp, ECalComponentText *summary);
-
-void e_cal_component_get_transparency (ECalComponent *comp, ECalComponentTransparency *transp);
-void e_cal_component_set_transparency (ECalComponent *comp, ECalComponentTransparency transp);
-
-void e_cal_component_get_url (ECalComponent *comp, const gchar **url);
-void e_cal_component_set_url (ECalComponent *comp, const gchar *url);
-
-void e_cal_component_get_attendee_list (ECalComponent *comp, GSList **attendee_list);
-void e_cal_component_set_attendee_list (ECalComponent *comp, GSList *attendee_list);
-gboolean e_cal_component_has_attendees (ECalComponent *comp);
-
-void e_cal_component_get_location (ECalComponent *comp, const gchar **location);
-void e_cal_component_set_location (ECalComponent *comp, const gchar *location);
+GType          e_cal_component_get_type        (void);
+
+gchar *                e_cal_component_gen_uid         (void);
+
+ECalComponent *        e_cal_component_new             (void);
+ECalComponent *        e_cal_component_new_from_string (const gchar *calobj);
+ECalComponent *        e_cal_component_new_from_icalcomponent
+                                               (icalcomponent *icalcomp);
+
+ECalComponent *        e_cal_component_clone           (ECalComponent *comp);
+
+void           e_cal_component_set_new_vtype   (ECalComponent *comp,
+                                                ECalComponentVType type);
+
+icalcomponent *        e_cal_component_get_icalcomponent
+                                               (ECalComponent *comp);
+gboolean       e_cal_component_set_icalcomponent
+                                               (ECalComponent *comp,
+                                                icalcomponent *icalcomp);
+void           e_cal_component_rescan          (ECalComponent *comp);
+void           e_cal_component_strip_errors    (ECalComponent *comp);
+
+ECalComponentVType
+               e_cal_component_get_vtype       (ECalComponent *comp);
+
+gchar *                e_cal_component_get_as_string   (ECalComponent *comp);
+
+void           e_cal_component_commit_sequence (ECalComponent *comp);
+void           e_cal_component_abort_sequence  (ECalComponent *comp);
+
+void           e_cal_component_get_uid         (ECalComponent *comp,
+                                                const gchar **uid);
+void           e_cal_component_set_uid         (ECalComponent *comp,
+                                                const gchar *uid);
+
+ECalComponentId *
+               e_cal_component_get_id          (ECalComponent *comp);
+void           e_cal_component_free_id         (ECalComponentId *id);
+ECalComponentId *
+               e_cal_component_id_copy         (const ECalComponentId *id);
+guint          e_cal_component_id_hash         (const ECalComponentId *id);
+gboolean       e_cal_component_id_equal        (const ECalComponentId *id1,
+                                                const ECalComponentId *id2);
+
+void           e_cal_component_get_categories  (ECalComponent *comp,
+                                                const gchar **categories);
+void           e_cal_component_set_categories  (ECalComponent *comp,
+                                                const gchar *categories);
+void           e_cal_component_get_categories_list
+                                               (ECalComponent *comp,
+                                                GSList **categ_list);
+void           e_cal_component_set_categories_list
+                                               (ECalComponent *comp,
+                                                GSList *categ_list);
+
+void           e_cal_component_get_classification
+                                               (ECalComponent *comp,
+                                                ECalComponentClassification *classif);
+void           e_cal_component_set_classification
+                                               (ECalComponent *comp,
+                                                ECalComponentClassification classif);
+
+void           e_cal_component_get_comment_list
+                                               (ECalComponent *comp,
+                                                GSList **text_list);
+void           e_cal_component_set_comment_list
+                                               (ECalComponent *comp,
+                                                GSList *text_list);
+
+void           e_cal_component_get_completed   (ECalComponent *comp,
+                                                struct icaltimetype **t);
+void           e_cal_component_set_completed   (ECalComponent *comp,
+                                                struct icaltimetype *t);
+
+void           e_cal_component_get_contact_list
+                                               (ECalComponent *comp,
+                                                GSList **text_list);
+void           e_cal_component_set_contact_list
+                                               (ECalComponent *comp,
+                                                GSList *text_list);
+
+void           e_cal_component_get_created     (ECalComponent *comp,
+                                                struct icaltimetype **t);
+void           e_cal_component_set_created     (ECalComponent *comp,
+                                                struct icaltimetype *t);
+
+void           e_cal_component_get_description_list
+                                               (ECalComponent *comp,
+                                                GSList **text_list);
+void           e_cal_component_set_description_list
+                                               (ECalComponent *comp,
+                                                GSList *text_list);
+
+void           e_cal_component_get_dtend       (ECalComponent *comp,
+                                                ECalComponentDateTime *dt);
+void           e_cal_component_set_dtend       (ECalComponent *comp,
+                                                ECalComponentDateTime *dt);
+
+void           e_cal_component_get_dtstamp     (ECalComponent *comp,
+                                                struct icaltimetype *t);
+void           e_cal_component_set_dtstamp     (ECalComponent *comp,
+                                                struct icaltimetype *t);
+
+void           e_cal_component_get_dtstart     (ECalComponent *comp,
+                                                ECalComponentDateTime *dt);
+void           e_cal_component_set_dtstart     (ECalComponent *comp,
+                                                ECalComponentDateTime *dt);
+
+void           e_cal_component_get_due         (ECalComponent *comp,
+                                                ECalComponentDateTime *dt);
+void           e_cal_component_set_due         (ECalComponent *comp,
+                                                ECalComponentDateTime *dt);
+
+void           e_cal_component_get_exdate_list (ECalComponent *comp,
+                                                GSList **exdate_list);
+void           e_cal_component_set_exdate_list (ECalComponent *comp,
+                                                GSList *exdate_list);
+gboolean       e_cal_component_has_exdates     (ECalComponent *comp);
+
+void           e_cal_component_get_exrule_list (ECalComponent *comp,
+                                                GSList **recur_list);
+void           e_cal_component_get_exrule_property_list
+                                               (ECalComponent *comp,
+                                                GSList **recur_list);
+void           e_cal_component_set_exrule_list (ECalComponent *comp,
+                                                GSList *recur_list);
+gboolean       e_cal_component_has_exrules     (ECalComponent *comp);
+
+gboolean       e_cal_component_has_exceptions  (ECalComponent *comp);
+
+void           e_cal_component_get_geo         (ECalComponent *comp,
+                                                struct icalgeotype **geo);
+void           e_cal_component_set_geo         (ECalComponent *comp,
+                                                struct icalgeotype *geo);
+
+void           e_cal_component_get_last_modified
+                                               (ECalComponent *comp,
+                                                struct icaltimetype **t);
+void           e_cal_component_set_last_modified
+                                               (ECalComponent *comp,
+                                                struct icaltimetype *t);
+
+void           e_cal_component_get_organizer   (ECalComponent *comp,
+                                                ECalComponentOrganizer *organizer);
+void           e_cal_component_set_organizer   (ECalComponent *comp,
+                                                ECalComponentOrganizer *organizer);
+gboolean       e_cal_component_has_organizer   (ECalComponent *comp);
+
+gint           e_cal_component_get_percent_as_int
+                                               (ECalComponent *comp);
+void           e_cal_component_set_percent_as_int
+                                               (ECalComponent *comp,
+                                                gint percent);
+
+void           e_cal_component_get_percent     (ECalComponent *comp,
+                                                gint **percent);
+void           e_cal_component_set_percent     (ECalComponent *comp,
+                                                gint *percent);
+
+void           e_cal_component_get_priority    (ECalComponent *comp,
+                                                gint **priority);
+void           e_cal_component_set_priority    (ECalComponent *comp,
+                                                gint *priority);
+
+void           e_cal_component_get_recurid     (ECalComponent *comp,
+                                                ECalComponentRange *recur_id);
+gchar *                e_cal_component_get_recurid_as_string
+                                               (ECalComponent *comp);
+void           e_cal_component_set_recurid     (ECalComponent *comp,
+                                                ECalComponentRange *recur_id);
+
+void           e_cal_component_get_rdate_list  (ECalComponent *comp,
+                                                GSList **period_list);
+void           e_cal_component_set_rdate_list  (ECalComponent *comp,
+                                                GSList *period_list);
+gboolean       e_cal_component_has_rdates      (ECalComponent *comp);
+
+void           e_cal_component_get_rrule_list  (ECalComponent *comp,
+                                                GSList **recur_list);
+void           e_cal_component_get_rrule_property_list
+                                               (ECalComponent *comp,
+                                                GSList **recur_list);
+void           e_cal_component_set_rrule_list  (ECalComponent *comp,
+                                                GSList *recur_list);
+gboolean       e_cal_component_has_rrules      (ECalComponent *comp);
+
+gboolean       e_cal_component_has_recurrences (ECalComponent *comp);
+gboolean       e_cal_component_has_simple_recurrence
+                                               (ECalComponent *comp);
+gboolean       e_cal_component_is_instance     (ECalComponent *comp);
+
+void           e_cal_component_get_sequence    (ECalComponent *comp,
+                                                gint **sequence);
+void           e_cal_component_set_sequence    (ECalComponent *comp,
+                                                gint *sequence);
+
+void           e_cal_component_get_status      (ECalComponent *comp,
+                                                icalproperty_status *status);
+void           e_cal_component_set_status      (ECalComponent *comp,
+                                                icalproperty_status status);
+
+void           e_cal_component_get_summary     (ECalComponent *comp,
+                                                ECalComponentText *summary);
+void           e_cal_component_set_summary     (ECalComponent *comp,
+                                                ECalComponentText *summary);
+
+void           e_cal_component_get_transparency
+                                               (ECalComponent *comp,
+                                                ECalComponentTransparency *transp);
+void           e_cal_component_set_transparency
+                                               (ECalComponent *comp,
+                                                ECalComponentTransparency transp);
+
+void           e_cal_component_get_url         (ECalComponent *comp,
+                                                const gchar **url);
+void           e_cal_component_set_url         (ECalComponent *comp,
+                                                const gchar *url);
+
+void           e_cal_component_get_attendee_list
+                                               (ECalComponent *comp,
+                                                GSList **attendee_list);
+void           e_cal_component_set_attendee_list
+                                               (ECalComponent *comp,
+                                                GSList *attendee_list);
+gboolean       e_cal_component_has_attendees   (ECalComponent *comp);
+
+void           e_cal_component_get_location    (ECalComponent *comp,
+                                                const gchar **location);
+void           e_cal_component_set_location    (ECalComponent *comp,
+                                                const gchar *location);
 
 /* Attachment handling */
-void e_cal_component_get_attachment_list (ECalComponent *comp, GSList **attachment_list);
-void e_cal_component_set_attachment_list (ECalComponent *comp, GSList *attachment_list);
-gboolean e_cal_component_has_attachments (ECalComponent *comp);
-gint e_cal_component_get_num_attachments (ECalComponent *comp);
-
-gboolean e_cal_component_event_dates_match (ECalComponent *comp1, ECalComponent *comp2);
+void           e_cal_component_get_attachment_list
+                                               (ECalComponent *comp,
+                                                GSList **attachment_list);
+void           e_cal_component_set_attachment_list
+                                               (ECalComponent *comp,
+                                                GSList *attachment_list);
+gboolean       e_cal_component_has_attachments (ECalComponent *comp);
+gint           e_cal_component_get_num_attachments
+                                               (ECalComponent *comp);
+
+gboolean       e_cal_component_event_dates_match
+                                               (ECalComponent *comp1,
+                                                ECalComponent *comp2);
 
 /* Functions to free returned values */
 
-void e_cal_component_free_categories_list (GSList *categ_list);
-void e_cal_component_free_datetime (ECalComponentDateTime *dt);
-void e_cal_component_free_range (ECalComponentRange *range);
-void e_cal_component_free_exdate_list (GSList *exdate_list);
-void e_cal_component_free_geo (struct icalgeotype *geo);
-void e_cal_component_free_icaltimetype (struct icaltimetype *t);
-void e_cal_component_free_percent (gint *percent);
-void e_cal_component_free_priority (gint *priority);
-void e_cal_component_free_period_list (GSList *period_list);
-void e_cal_component_free_recur_list (GSList *recur_list);
-void e_cal_component_free_sequence (gint *sequence);
-void e_cal_component_free_text_list (GSList *text_list);
-void e_cal_component_free_attendee_list (GSList *attendee_list);
+void           e_cal_component_free_categories_list
+                                               (GSList *categ_list);
+void           e_cal_component_free_datetime   (ECalComponentDateTime *dt);
+void           e_cal_component_free_range      (ECalComponentRange *range);
+void           e_cal_component_free_exdate_list
+                                               (GSList *exdate_list);
+void           e_cal_component_free_geo        (struct icalgeotype *geo);
+void           e_cal_component_free_icaltimetype
+                                               (struct icaltimetype *t);
+void           e_cal_component_free_percent    (gint *percent);
+void           e_cal_component_free_priority   (gint *priority);
+void           e_cal_component_free_period_list
+                                               (GSList *period_list);
+void           e_cal_component_free_recur_list (GSList *recur_list);
+void           e_cal_component_free_sequence   (gint *sequence);
+void           e_cal_component_free_text_list  (GSList *text_list);
+void           e_cal_component_free_attendee_list
+                                               (GSList *attendee_list);
 
 /* Alarms */
 
@@ -427,46 +539,77 @@ typedef struct {
        struct icaldurationtype duration;
 } ECalComponentAlarmRepeat;
 
-gboolean e_cal_component_has_alarms (ECalComponent *comp);
-void e_cal_component_add_alarm (ECalComponent *comp, ECalComponentAlarm *alarm);
-void e_cal_component_remove_alarm (ECalComponent *comp, const gchar *auid);
-void e_cal_component_remove_all_alarms (ECalComponent *comp);
+gboolean       e_cal_component_has_alarms      (ECalComponent *comp);
+void           e_cal_component_add_alarm       (ECalComponent *comp,
+                                                ECalComponentAlarm *alarm);
+void           e_cal_component_remove_alarm    (ECalComponent *comp,
+                                                const gchar *auid);
+void           e_cal_component_remove_all_alarms
+                                               (ECalComponent *comp);
 
-GList *e_cal_component_get_alarm_uids (ECalComponent *comp);
-ECalComponentAlarm *e_cal_component_get_alarm (ECalComponent *comp, const gchar *auid);
+GList *                e_cal_component_get_alarm_uids  (ECalComponent *comp);
+ECalComponentAlarm *
+               e_cal_component_get_alarm       (ECalComponent *comp,
+                                                const gchar *auid);
 
-void e_cal_component_alarms_free (ECalComponentAlarms *alarms);
+void           e_cal_component_alarms_free     (ECalComponentAlarms *alarms);
 
 /* ECalComponentAlarms */
-ECalComponentAlarm *e_cal_component_alarm_new (void);
-ECalComponentAlarm *e_cal_component_alarm_clone (ECalComponentAlarm *alarm);
-void e_cal_component_alarm_free (ECalComponentAlarm *alarm);
-
-const gchar *e_cal_component_alarm_get_uid (ECalComponentAlarm *alarm);
-
-void e_cal_component_alarm_get_action (ECalComponentAlarm *alarm, ECalComponentAlarmAction *action);
-void e_cal_component_alarm_set_action (ECalComponentAlarm *alarm, ECalComponentAlarmAction action);
-
-void e_cal_component_alarm_get_attach (ECalComponentAlarm *alarm, icalattach **attach);
-void e_cal_component_alarm_set_attach (ECalComponentAlarm *alarm, icalattach *attach);
-
-void e_cal_component_alarm_get_description (ECalComponentAlarm *alarm, ECalComponentText *description);
-void e_cal_component_alarm_set_description (ECalComponentAlarm *alarm, ECalComponentText *description);
-
-void e_cal_component_alarm_get_repeat (ECalComponentAlarm *alarm, ECalComponentAlarmRepeat *repeat);
-void e_cal_component_alarm_set_repeat (ECalComponentAlarm *alarm, ECalComponentAlarmRepeat repeat);
-
-void e_cal_component_alarm_get_trigger (ECalComponentAlarm *alarm, ECalComponentAlarmTrigger *trigger);
-void e_cal_component_alarm_set_trigger (ECalComponentAlarm *alarm, ECalComponentAlarmTrigger trigger);
-
-void e_cal_component_alarm_get_attendee_list (ECalComponentAlarm *alarm, GSList **attendee_list);
-void e_cal_component_alarm_set_attendee_list (ECalComponentAlarm *alarm, GSList *attendee_list);
-gboolean e_cal_component_alarm_has_attendees (ECalComponentAlarm *alarm);
-
-icalcomponent *e_cal_component_alarm_get_icalcomponent (ECalComponentAlarm *alarm);
-
-
+ECalComponentAlarm *
+               e_cal_component_alarm_new       (void);
+ECalComponentAlarm *
+               e_cal_component_alarm_clone     (ECalComponentAlarm *alarm);
+void           e_cal_component_alarm_free      (ECalComponentAlarm *alarm);
+
+const gchar *  e_cal_component_alarm_get_uid   (ECalComponentAlarm *alarm);
+
+void           e_cal_component_alarm_get_action
+                                               (ECalComponentAlarm *alarm,
+                                                ECalComponentAlarmAction *action);
+void           e_cal_component_alarm_set_action
+                                               (ECalComponentAlarm *alarm,
+                                                ECalComponentAlarmAction action);
+
+void           e_cal_component_alarm_get_attach
+                                               (ECalComponentAlarm *alarm,
+                                                icalattach **attach);
+void           e_cal_component_alarm_set_attach
+                                               (ECalComponentAlarm *alarm,
+                                                icalattach *attach);
+
+void           e_cal_component_alarm_get_description
+                                               (ECalComponentAlarm *alarm,
+                                                ECalComponentText *description);
+void           e_cal_component_alarm_set_description
+                                               (ECalComponentAlarm *alarm,
+                                                ECalComponentText *description);
+
+void           e_cal_component_alarm_get_repeat
+                                               (ECalComponentAlarm *alarm,
+                                                ECalComponentAlarmRepeat *repeat);
+void           e_cal_component_alarm_set_repeat
+                                               (ECalComponentAlarm *alarm,
+                                                ECalComponentAlarmRepeat repeat);
+
+void           e_cal_component_alarm_get_trigger
+                                               (ECalComponentAlarm *alarm,
+                                                ECalComponentAlarmTrigger *trigger);
+void           e_cal_component_alarm_set_trigger
+                                               (ECalComponentAlarm *alarm,
+                                                ECalComponentAlarmTrigger trigger);
+
+void           e_cal_component_alarm_get_attendee_list
+                                               (ECalComponentAlarm *alarm,
+                                                GSList **attendee_list);
+void           e_cal_component_alarm_set_attendee_list
+                                               (ECalComponentAlarm *alarm,
+                                                GSList *attendee_list);
+gboolean       e_cal_component_alarm_has_attendees
+                                               (ECalComponentAlarm *alarm);
+
+icalcomponent *        e_cal_component_alarm_get_icalcomponent
+                                               (ECalComponentAlarm *alarm);
 
 G_END_DECLS
 
-#endif
+#endif /* E_CAL_COMPONENT_H */
diff --git a/docs/reference/calendar/libecal/libecal-sections.txt 
b/docs/reference/calendar/libecal/libecal-sections.txt
index 022b976..3bc5889 100644
--- a/docs/reference/calendar/libecal/libecal-sections.txt
+++ b/docs/reference/calendar/libecal/libecal-sections.txt
@@ -246,8 +246,8 @@ e_cal_component_new_from_string
 e_cal_component_new_from_icalcomponent
 e_cal_component_clone
 e_cal_component_set_new_vtype
-e_cal_component_set_icalcomponent
 e_cal_component_get_icalcomponent
+e_cal_component_set_icalcomponent
 e_cal_component_rescan
 e_cal_component_strip_errors
 e_cal_component_get_vtype
@@ -390,6 +390,7 @@ E_IS_CAL_COMPONENT
 E_TYPE_CAL_COMPONENT
 E_CAL_COMPONENT_CLASS
 E_IS_CAL_COMPONENT_CLASS
+E_CAL_COMPONENT_GET_CLASS
 ECalComponentClass
 e_cal_component_get_type
 <SUBSECTION Private>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]