aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-10-16 22:03:03 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-10-16 22:03:03 +0800
commit6793123da8bf07d588c2b7c403e8d070ef7d3e91 (patch)
tree536169756bd79dfe07adb4574eb4c5542bad3392 /calendar/cal-util
parent45e9efcab1f4d35eb8f162f2dd3048f1a4f7c417 (diff)
downloadgsoc2013-evolution-6793123da8bf07d588c2b7c403e8d070ef7d3e91.tar
gsoc2013-evolution-6793123da8bf07d588c2b7c403e8d070ef7d3e91.tar.gz
gsoc2013-evolution-6793123da8bf07d588c2b7c403e8d070ef7d3e91.tar.bz2
gsoc2013-evolution-6793123da8bf07d588c2b7c403e8d070ef7d3e91.tar.lz
gsoc2013-evolution-6793123da8bf07d588c2b7c403e8d070ef7d3e91.tar.xz
gsoc2013-evolution-6793123da8bf07d588c2b7c403e8d070ef7d3e91.tar.zst
gsoc2013-evolution-6793123da8bf07d588c2b7c403e8d070ef7d3e91.zip
Remove pilot cruft. All pilot stuff is in the conduits now and uses the
2000-10-16 JP Rosevear <jpr@helixcode.com> * cal-client/cal-client.h: Remove pilot cruft. All pilot stuff is in the conduits now and uses the logging facility. * pcs/cal-backend-file.c: ditto * pcs/cal-backend.h: ditto * pcs/cal-backend.c: ditto * pcs/cal.c: ditto * pcs/cal.h: ditto * idl/evolution-calendar.idl: ditto * cal-util/cal-component.h: ditto * cal-util/cal-component.c: ditto * cal-client/cal-client.c: ditto * conduits/calendar/calendar-conduit.c (local_record_from_comp): Take a stab at storing recurrence stuff on the pilot properly * pcs/cal-backend.c (cal_backend_update_object): Don't log the event until after the update in case its a new item svn path=/trunk/; revision=5940
Diffstat (limited to 'calendar/cal-util')
-rw-r--r--calendar/cal-util/cal-component.c169
-rw-r--r--calendar/cal-util/cal-component.h6
2 files changed, 0 insertions, 175 deletions
diff --git a/calendar/cal-util/cal-component.c b/calendar/cal-util/cal-component.c
index cf7e3f358a..4efb29a610 100644
--- a/calendar/cal-util/cal-component.c
+++ b/calendar/cal-util/cal-component.c
@@ -97,9 +97,6 @@ struct _CalComponentPrivate {
icalproperty *transparency;
icalproperty *url;
- icalproperty *pilot_id;
- icalproperty *pilot_status;
-
/* Whether we should increment the sequence number when piping the
* object over the wire.
*/
@@ -571,13 +568,6 @@ scan_property (CalComponent *comp, icalproperty *prop)
priv->url = prop;
break;
- case ICAL_X_PROPERTY:
- if (!strcmp (icalproperty_get_x_name (prop), "X-PILOT-ID"))
- priv->pilot_id = prop;
- if (!strcmp (icalproperty_get_x_name (prop), "X-PILOT-STATUS"))
- priv->pilot_status = prop;
- break;
-
default:
break;
}
@@ -3005,167 +2995,8 @@ cal_component_set_url (CalComponent *comp, const char *url)
}
}
-/**
- * cal_component_get_pilot_id:
- * @comp: A calendar component object.
- * @pilot_id: Return value for the pilot ID.
- *
- * Queries the pilot id of a calendar component object, if any.
- **/
-void
-cal_component_get_pilot_id (CalComponent *comp, unsigned long **pilot_id)
-{
- CalComponentPrivate *priv;
-
- g_return_if_fail (comp != NULL);
- g_return_if_fail (IS_CAL_COMPONENT (comp));
-
- priv = comp->priv;
- g_return_if_fail (priv->icalcomp != NULL);
-
- /* Pilot id might want to be recordid_t */
- if (priv->pilot_id) {
- icalvalue *value;
- char *text;
-
- value = icalproperty_get_value (priv->pilot_id);
- text = icalvalue_get_text (value);
-
- *pilot_id = g_new (unsigned long, 1);
- **pilot_id = strtoul (text, NULL, 0);
- } else {
- *pilot_id = NULL;
- }
-}
-
-/**
- * cal_component_set_pilot_id:
- * @comp: A calendar component object.
- * @pilot_id: Return value for the pilot ID.
- *
- * Sets the pilot id of a clanedar component object.
- **/
-void
-cal_component_set_pilot_id (CalComponent *comp, unsigned long *pilot_id)
-{
- CalComponentPrivate *priv;
- icalvalue *value;
- char text[256];
-
- g_return_if_fail (comp != NULL);
- g_return_if_fail (IS_CAL_COMPONENT (comp));
-
- priv = comp->priv;
- g_return_if_fail (priv->icalcomp != NULL);
-
- /* pilot_id maybe should be recordid_t */
- if (!pilot_id) {
- if (priv->pilot_id) {
- icalcomponent_remove_property (priv->icalcomp,
- priv->pilot_id);
- icalproperty_free (priv->pilot_id);
- priv->pilot_id = NULL;
- }
-
- return;
- }
-
- /* iCalendar spec does not support unsigned longs directly */
- g_snprintf (text, 256, "%lu", *pilot_id);
- value = icalvalue_new_text (text);
-
- if (!priv->pilot_id) {
- priv->pilot_id = icalproperty_new (ICAL_X_PROPERTY);
- icalproperty_set_x_name (priv->pilot_id, "X-PILOT-ID");
- icalcomponent_add_property (priv->icalcomp, priv->pilot_id);
- }
-
- icalproperty_set_value (priv->pilot_id, value);
-}
-
-/**
- * cal_component_get_pilot_status:
- * @comp: A calendar component object.
- * @pilot_status: Return value for the pilot sync status.
- *
- * Queries the pilot status of a calendar component object, if any.
- **/
-void
-cal_component_get_pilot_status (CalComponent *comp,
- unsigned long **pilot_status)
-{
- CalComponentPrivate *priv;
-
- g_return_if_fail (comp != NULL);
- g_return_if_fail (IS_CAL_COMPONENT (comp));
-
- priv = comp->priv;
- g_return_if_fail (priv->icalcomp != NULL);
-
- /* Pilot id might want to be recordid_t */
- if (priv->pilot_status) {
- icalvalue *value;
- char *text;
-
- value = icalproperty_get_value (priv->pilot_status);
- text = icalvalue_get_text (value);
-
- *pilot_status = g_new (unsigned long, 1);
- **pilot_status = strtoul (text, NULL, 0);
- } else {
- *pilot_status = NULL;
- }
-}
-
-/**
- * cal_component_set_pilot_id:
- * @comp: A calendar component object.
- * @pilot_id: Return value for the pilot ID.
- *
- * Sets the pilot id of a clanedar component object.
- **/
-void
-cal_component_set_pilot_status (CalComponent *comp,
- unsigned long *pilot_status)
-{
- CalComponentPrivate *priv;
- icalvalue *value;
- char text[256];
-
- g_return_if_fail (comp != NULL);
- g_return_if_fail (IS_CAL_COMPONENT (comp));
-
- priv = comp->priv;
- g_return_if_fail (priv->icalcomp != NULL);
-
- if (!pilot_status) {
- if (priv->pilot_status) {
- icalcomponent_remove_property (priv->icalcomp,
- priv->pilot_status);
- icalproperty_free (priv->pilot_status);
- priv->pilot_status = NULL;
- }
-
- return;
- }
-
- /* iCalendar spec does not support unsigned longs directly */
- g_snprintf (text, 256, "%lu", *pilot_status);
- value = icalvalue_new_text (text);
-
- if (!priv->pilot_status) {
- priv->pilot_status = icalproperty_new (ICAL_X_PROPERTY);
- icalproperty_set_x_name (priv->pilot_status, "X-PILOT-STATUS");
- icalcomponent_add_property (priv->icalcomp, priv->pilot_status);
- }
-
- icalproperty_set_value (priv->pilot_status, value);
-}
-
-
-
/**
* cal_component_free_categories_list:
* @categ_list: List of category strings.
diff --git a/calendar/cal-util/cal-component.h b/calendar/cal-util/cal-component.h
index 749f268fcd..91d62ae548 100644
--- a/calendar/cal-util/cal-component.h
+++ b/calendar/cal-util/cal-component.h
@@ -244,12 +244,6 @@ void cal_component_set_transparency (CalComponent *comp, CalComponentTransparenc
void cal_component_get_url (CalComponent *comp, const char **url);
void cal_component_set_url (CalComponent *comp, const char *url);
-void cal_component_get_pilot_id (CalComponent *comp, unsigned long **pilot_id);
-void cal_component_set_pilot_id (CalComponent *comp, unsigned long *pilot_id);
-
-void cal_component_get_pilot_status (CalComponent *comp, unsigned long **pilot_status);
-void cal_component_set_pilot_status (CalComponent *comp, unsigned long *pilot_status);
-
/* Functions to free returned values */
void cal_component_free_categories_list (GSList *categ_list);