evolution r36105 - branches/mail-dbus-remoting/mail
- From: sragavan svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r36105 - branches/mail-dbus-remoting/mail
- Date: Wed, 27 Aug 2008 09:10:55 +0000 (UTC)
Author: sragavan
Date: Wed Aug 27 09:10:55 2008
New Revision: 36105
URL: http://svn.gnome.org/viewvc/evolution?rev=36105&view=rev
Log:
Call camel_object methods.
Modified:
   branches/mail-dbus-remoting/mail/camel-session-remote-impl.c
   branches/mail-dbus-remoting/mail/camel-store-remote-impl.c
Modified: branches/mail-dbus-remoting/mail/camel-session-remote-impl.c
==============================================================================
--- branches/mail-dbus-remoting/mail/camel-session-remote-impl.c	(original)
+++ branches/mail-dbus-remoting/mail/camel-session-remote-impl.c	Wed Aug 27 09:10:55 2008
@@ -10,6 +10,7 @@
 #include <camel/camel-session.h>
 #include <camel/camel-store.h>
 #include <camel/camel.h>
+#include "camel-object-remote-impl.h"
 
 #define CAMEL_SESSION_OBJECT_PATH "/org/gnome/evolution/camel/session"
 
@@ -296,6 +297,8 @@
 
 		dbus_message_append_args (return_val, DBUS_TYPE_INVALID);
 		g_free (err);
+	} else if (strncmp (method, "camel_object", 12) == 0) {
+		return camel_object_session_signal_handler (connection, message, user_data);
 	} else
 		return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
 
Modified: branches/mail-dbus-remoting/mail/camel-store-remote-impl.c
==============================================================================
--- branches/mail-dbus-remoting/mail/camel-store-remote-impl.c	(original)
+++ branches/mail-dbus-remoting/mail/camel-store-remote-impl.c	Wed Aug 27 09:10:55 2008
@@ -3,10 +3,12 @@
  *
  * */
 
+#include <string.h>
 #include <glib.h>
 #include <glib/gi18n.h>
 #include "mail-dbus.h"
 #include <camel/camel.h>
+#include "camel-object-remote-impl.h"
 
 #define CAMEL_STORE_OBJECT_PATH "/org/gnome/evolution/camel/store"
 #define CAMEL_STORE_INTERFACE "org.gnome.evolution.camel.store"
@@ -431,6 +433,8 @@
 		url = camel_service_get_url((CamelService *)store);
 		dbus_message_append_args(reply, DBUS_TYPE_STRING,
 					 &url, DBUS_TYPE_INVALID);
+	} else if (strncmp (method, "camel_object", 12) == 0) {
+		return camel_object_store_signal_handler (connection, message, user_data);
 	} else
 		return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]