+2004-01-27 JP Rosevear <jpr@ximian.com>
+
+ * libecal/e-cal.h: update proto
+
+ * libecal/e-cal.c (e_cal_remove): rename from
+ e_cal_remove_calendar
+ (e_cal_get_error_message): key on new status name
+
+ * libecal/e-cal-types.h: rename
+ E_CALENDAR_STATUS_CARD_ID_ALREADY_EXISTS to
+ E_CALENDAR_STATUS_OBJECT_ID_ALREADY_EXISTS, delete duplicate enum
+
+ * idl/Evolution-DataServer-Calendar.idl: rename
+ CardIdAlreadyExists to ObjectIdAlreadyExists
+
+ * libecal/e-cal-listener.c (convert_status): key on new name
+
+ * backends/file/e-cal-backend-file.c
+ (e_cal_backend_file_create_object): return object id already
+ exists
+
2004-01-27 Rodrigo Moya <rodrigo@ximian.com>
* backends/groupwise/e-gw-connection.c
/* check the object is not in our cache */
if (lookup_component (cbfile, comp_uid)) {
icalcomponent_free (icalcomp);
- return GNOME_Evolution_Calendar_CardIdAlreadyExists;
+ return GNOME_Evolution_Calendar_ObjectIdAlreadyExists;
}
/* Create the cal component */
InvalidRange,
ObjectNotFound,
InvalidObject,
- CardIdAlreadyExists,
+ ObjectIdAlreadyExists,
AuthenticationFailed,
AuthenticationRequired,
UnsupportedField,
return E_CALENDAR_STATUS_OBJECT_NOT_FOUND;
case GNOME_Evolution_Calendar_InvalidObject:
return E_CALENDAR_STATUS_INVALID_OBJECT;
- case GNOME_Evolution_Calendar_CardIdAlreadyExists:
- return E_CALENDAR_STATUS_CARD_ID_ALREADY_EXISTS;
+ case GNOME_Evolution_Calendar_ObjectIdAlreadyExists:
+ return E_CALENDAR_STATUS_OBJECT_ID_ALREADY_EXISTS;
case GNOME_Evolution_Calendar_AuthenticationFailed:
return E_CALENDAR_STATUS_AUTHENTICATION_FAILED;
case GNOME_Evolution_Calendar_AuthenticationRequired:
E_CALENDAR_STATUS_URI_NOT_LOADED,
E_CALENDAR_STATUS_URI_ALREADY_LOADED,
E_CALENDAR_STATUS_PERMISSION_DENIED,
- E_CALENDAR_STATUS_CARD_NOT_FOUND,
- E_CALENDAR_STATUS_CARD_ID_ALREADY_EXISTS,
+ E_CALENDAR_STATUS_OBJECT_ID_ALREADY_EXISTS,
E_CALENDAR_STATUS_PROTOCOL_NOT_SUPPORTED,
E_CALENDAR_STATUS_CANCELLED,
E_CALENDAR_STATUS_COULD_NOT_CANCEL,
return E_CALENDAR_STATUS_PERMISSION_DENIED;
case GNOME_Evolution_Calendar_ObjectNotFound:
return E_CALENDAR_STATUS_OBJECT_NOT_FOUND;
- case GNOME_Evolution_Calendar_CardIdAlreadyExists:
- return E_CALENDAR_STATUS_CARD_ID_ALREADY_EXISTS;
+ case GNOME_Evolution_Calendar_ObjectIdAlreadyExists:
+ return E_CALENDAR_STATUS_OBJECT_ID_ALREADY_EXISTS;
case GNOME_Evolution_Calendar_AuthenticationFailed:
return E_CALENDAR_STATUS_AUTHENTICATION_FAILED;
case GNOME_Evolution_Calendar_AuthenticationRequired:
}
gboolean
-e_cal_remove_calendar (ECal *ecal, GError **error)
+e_cal_remove (ECal *ecal, GError **error)
{
ECalPrivate *priv;
CORBA_Environment ev;
return _("URI already loaded");
case E_CALENDAR_STATUS_PERMISSION_DENIED :
return _("Permission denied");
- case E_CALENDAR_STATUS_CARD_NOT_FOUND :
- return _("Object not found");
- case E_CALENDAR_STATUS_CARD_ID_ALREADY_EXISTS :
+ case E_CALENDAR_STATUS_OBJECT_ID_ALREADY_EXISTS :
return _("Object ID already exists");
case E_CALENDAR_STATUS_PROTOCOL_NOT_SUPPORTED :
return _("Protocol not supported");
gboolean e_cal_open (ECal *ecal, gboolean only_if_exists, GError **error);
void e_cal_open_async (ECal *ecal, gboolean only_if_exists);
-gboolean e_cal_remove_calendar (ECal *ecal, GError **error);
+gboolean e_cal_remove (ECal *ecal, GError **error);
GList *e_cal_uri_list (ECal *ecal, CalMode mode);