[jana] [jana-ecal-component] Add jana_ecal_component_get_recurrence_id



commit d055e61338de3038075bea1f0c87cd16af865633
Author: Rob Bradford <rob linux intel com>
Date:   Tue Feb 9 17:25:11 2010 +0000

    [jana-ecal-component] Add jana_ecal_component_get_recurrence_id

 libjana-ecal/jana-ecal-component.c |   16 ++++++++++++++++
 libjana-ecal/jana-ecal-component.h |    2 ++
 2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/libjana-ecal/jana-ecal-component.c b/libjana-ecal/jana-ecal-component.c
index 1c9ce5d..6eece8c 100644
--- a/libjana-ecal/jana-ecal-component.c
+++ b/libjana-ecal/jana-ecal-component.c
@@ -652,3 +652,19 @@ component_set_custom_prop (JanaComponent *self, const gchar *name,
 	return TRUE;
 }
 
+/**
+ * jana_ecal_component_get_recurrence_id:
+ * @self: A #JanaEcalComponent
+ *
+ * Gets a string representing the recurremce for this component instance.
+ *
+ * Returns: A newly allocated string for the recurrence.
+ */
+gchar *
+jana_ecal_component_get_recurrence_id (JanaEcalComponent *self)
+{
+	JanaEcalComponentPrivate *priv = COMPONENT_PRIVATE (self);
+
+	return e_cal_component_get_recurid_as_string (priv->comp);
+}
+
diff --git a/libjana-ecal/jana-ecal-component.h b/libjana-ecal/jana-ecal-component.h
index ff40eda..7b27782 100644
--- a/libjana-ecal/jana-ecal-component.h
+++ b/libjana-ecal/jana-ecal-component.h
@@ -68,6 +68,8 @@ JanaComponent *jana_ecal_component_new_from_ecalcomp (ECalComponent *component);
 gchar * jana_ecal_component_get_summary (JanaEcalComponent *self);
 gchar * jana_ecal_component_get_description (JanaEcalComponent *self);
 gchar * jana_ecal_component_get_location (JanaEcalComponent *self);
+gchar * jana_ecal_component_get_recurrence_id (JanaEcalComponent *self);
+
 JanaTime * jana_ecal_component_get_start (JanaEcalComponent *self);
 JanaTime * jana_ecal_component_get_end (JanaEcalComponent *self);
 



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