aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-client
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@src.gnome.org>2000-06-23 01:24:17 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2000-06-23 01:24:17 +0800
commita3a3ee2b1456314989686ed356108b7356c0a272 (patch)
tree437bbf0e9af949208d07b547f852f377585f2f8e /calendar/cal-client
parentc14e8dd705e3483f2b0cf1fec2d754637d66b062 (diff)
downloadgsoc2013-evolution-a3a3ee2b1456314989686ed356108b7356c0a272.tar.gz
gsoc2013-evolution-a3a3ee2b1456314989686ed356108b7356c0a272.tar.zst
gsoc2013-evolution-a3a3ee2b1456314989686ed356108b7356c0a272.zip
Sync - Federico
svn path=/trunk/; revision=3693
Diffstat (limited to 'calendar/cal-client')
-rw-r--r--calendar/cal-client/cal-client.c23
-rw-r--r--calendar/cal-client/cal-client.h2
2 files changed, 14 insertions, 11 deletions
diff --git a/calendar/cal-client/cal-client.c b/calendar/cal-client/cal-client.c
index 007e284b7a..f1e60be3f3 100644
--- a/calendar/cal-client/cal-client.c
+++ b/calendar/cal-client/cal-client.c
@@ -979,22 +979,22 @@ cal_client_get_alarms_for_object (CalClient *client, const char *uid,
/**
* cal_client_update_object:
* @client: A calendar client.
- * @uid: Unique identifier of object to update.
- * @calobj: String representation of the new calendar object.
+ * @ico: A calendar object.
*
- * Asks a calendar to update an object based on its UID. Any existing object
- * with the specified UID will be replaced. The client program should not
- * assume that the object is actually in the server's storage until it has
- * received the "obj_updated" notification signal.
+ * Asks a calendar to update an object. Any existing object with the specified
+ * UID will be replaced. The client program should not assume that the object
+ * is actually in the server's storage until it has received the "obj_updated"
+ * notification signal.
*
* Return value: TRUE on success, FALSE on specifying an invalid object.
**/
gboolean
-cal_client_update_object (CalClient *client, const char *uid, const char *calobj)
+cal_client_update_object (CalClient *client, iCalObject *ico)
{
CalClientPrivate *priv;
CORBA_Environment ev;
gboolean retval;
+ char *obj_string;
g_return_val_if_fail (client != NULL, FALSE);
g_return_val_if_fail (IS_CAL_CLIENT (client), FALSE);
@@ -1002,13 +1002,16 @@ cal_client_update_object (CalClient *client, const char *uid, const char *calobj
priv = client->priv;
g_return_val_if_fail (priv->load_state == LOAD_STATE_LOADED, FALSE);
- g_return_val_if_fail (uid != NULL, FALSE);
- g_return_val_if_fail (calobj != NULL, FALSE);
+ g_return_val_if_fail (ico != NULL, FALSE);
+ g_return_val_if_fail (ico->uid != NULL, FALSE);
retval = FALSE;
+ obj_string = ical_object_to_string (ico);
+
CORBA_exception_init (&ev);
- Evolution_Calendar_Cal_update_object (priv->cal, uid, calobj, &ev);
+ Evolution_Calendar_Cal_update_object (priv->cal, ico->uid, obj_string, &ev);
+ g_free (obj_string);
if (ev._major == CORBA_USER_EXCEPTION &&
strcmp (CORBA_exception_id (&ev), ex_Evolution_Calendar_Cal_InvalidObject) == 0)
diff --git a/calendar/cal-client/cal-client.h b/calendar/cal-client/cal-client.h
index 947c9dd5dc..7c67cfba2e 100644
--- a/calendar/cal-client/cal-client.h
+++ b/calendar/cal-client/cal-client.h
@@ -97,7 +97,7 @@ gboolean cal_client_get_alarms_for_object (CalClient *client, const char *uid,
time_t start, time_t end,
GList **alarms);
-gboolean cal_client_update_object (CalClient *client, const char *uid, const char *calobj);
+gboolean cal_client_update_object (CalClient *client, iCalObject *ico);
gboolean cal_client_remove_object (CalClient *client, const char *uid);
=gstreamer0.10-removal&id=9ccc7e92dea72d32d4ae04470bbce43e6f9227da'>Welcome bsd.perl.mk. Add support for constructs such as USE_PERL5=5.8.0+.linimon2007-09-081-4/+0 * Update to 2.3.9.ume2007-08-201-7/+7 * Add an option to not use Berkeley DB.ume2007-08-091-5/+11 * Obey the default BDB version defined in bsd.database.mk.ume2007-08-081-130/+13 * Allow to build with db45 and db46 as well.ume2007-08-061-8/+42 * - Bump shlib version to libnetsnmp.so.10 and bump $PORTREVISION.kuriyama2007-02-281-2/+2 * Update to 2.3.8.ume2007-02-101-1/+1 * Change the MASTER_SITES entries fromume2006-10-071-1/+1 * Update to 2.3.7.ume2006-07-111-6/+1 * unquote BROKEN.ume2006-06-191-3/+3 * Update to 2.3.6 and unmark BROKEN.ume2006-05-261-3/+1 * 2.3.5 still has critical problem. So, I've mark it BROKEN untilume2006-05-251-0/+2 * Update to 2.3.5.ume2006-05-251-1/+1 * Remove USE_REINPLACE from ports starting with Medwin2006-05-111-1/+0 * Make it buildable on 4.X without Kerberos5 stuff.ume2006-05-011-0/+5 * Give sensible sentences for IGNORE.ume2006-04-191-1/+1 * Replace BROKEN with IGNORE.ume2006-04-181-1/+1 * Enable support for db-4.4.ume2006-04-161-19/+28 * Make it buildable with WITH_NNTP=yes.ume2006-04-141-1/+0 * Update to 2.3.3.ume2006-04-011-1/+1 * The idled support could not be enabled. The configure option forume2006-02-031-13/+3 * Update to 2.3.1.ume2005-12-211-3/+2 * Cyrus IMAPd 2.3.0 is not buildable when NNTP support is enabled.ume2005-12-161-1/+2 * remove redundant lines which was included wrongly throughume2005-12-121-2/+0 * Add Cyrus IMAPd 2.3.0 after repo. copy.ume2005-12-121-29/+35 * Chase shlib version bump of net-snmp.kuriyama2005-11-301-2/+2 * Mass-conversion to the USE_AUTOTOOLS New World Order. The code presentade2005-11-151-2/+1 * - use USE_BDB.ume2005-11-091-6/+2 * * reflect renaming on CPAN File-Spec to PathToolsskv2005-06-121-9/+4 * Stop depending on makedepend. Though configure checks existenceume2005-05-241-1/+0 * fix build.ume2005-02-281-1/+1 * use ${ECHO_CMD} rather than echo.ume2005-02-271-3/+3 * simplify more.ume2005-02-271-11/+1 * simplify the logic how to detect multiple BDB versionsume2005-02-271-17/+15 * some cleanup.ume2005-02-261-15/+21 * Update to 2.2.12.ume2005-02-241-9/+30 * use new scheme of USE_RC_SUBR.ume2005-02-111-7/+1 * Add PASS8BITHACK option to pass 8bit in subject.ume2004-12-061-0/+5 * follow shlib version bump of net-snmp.ume2004-12-051-1/+1 * make it buildable with WITH_DRAC=yes, againume2004-11-241-0/+3 * Update to 2.2.10.ume2004-11-241-1/+1 * Update to 2.2.9.ume2004-11-231-1/+1 * add AUTH_KRB5 option to use Kerberos5 authorization module.ume2004-08-301-4/+11 * Update to 2.2.8.ume2004-07-301-1/+1 * - Update to 2.2.7.ume2004-07-271-1/+1 * Utilize EXAMPLESDIR.ume2004-07-191-4/+15 * Autotools cleanup. Remove autoconf257 (259), automake17 (18), andade2004-07-021-2/+2 * Update to 2.2.6.ume2004-06-191-1/+1 * fix building package with BATCH=yes.ume2004-06-141-0/+2 * OPTIONS support.ume2004-06-121-45/+82 * add WITH_LDAP_PTLOADER which enables build with experimentalume2004-06-111-1/+9 * Sync with new bsd.autotools.mkade2004-06-051-1/+1 * Since net-snmp-5.X support was added in 2.2.5, change the defaultume2004-05-301-1/+16 * Update to 2.2.5.ume2004-05-291-3/+3