evolution r36054 - branches/mail-dbus-remoting/mail



Author: sragavan
Date: Tue Aug 26 03:08:45 2008
New Revision: 36054
URL: http://svn.gnome.org/viewvc/evolution?rev=36054&view=rev

Log:
Implement mail session shutdown.


Modified:
   branches/mail-dbus-remoting/mail/mail-session-remote-impl.c
   branches/mail-dbus-remoting/mail/mail-session-remote.c

Modified: branches/mail-dbus-remoting/mail/mail-session-remote-impl.c
==============================================================================
--- branches/mail-dbus-remoting/mail/mail-session-remote-impl.c	(original)
+++ branches/mail-dbus-remoting/mail/mail-session-remote-impl.c	Tue Aug 26 03:08:45 2008
@@ -104,6 +104,11 @@
 
 		d(printf("%s\n", method));
 		mail_session_flush_filter_log ();
+	} else if (strcmp(method, "mail_session_shutdown") == 0) {
+		gboolean ret;
+
+		d(printf("%s\n", method));
+		mail_session_shutdown ();
 	} 
 
 

Modified: branches/mail-dbus-remoting/mail/mail-session-remote.c
==============================================================================
--- branches/mail-dbus-remoting/mail/mail-session-remote.c	(original)
+++ branches/mail-dbus-remoting/mail/mail-session-remote.c	Tue Aug 26 03:08:45 2008
@@ -211,3 +211,30 @@
 	d(printf("mail_session_flush_filter_log: Success \n"));
 	return;
 }
+
+void
+mail_session_remote_shutdown (void)
+{
+	gboolean ret;
+	DBusError error;
+
+	dbus_error_init (&error);
+	/* Invoke the appropriate dbind call to MailSessionRemoteImpl */
+	ret = dbind_context_method_call (evolution_dbus_peek_context(), 
+			CAMEL_DBUS_NAME,
+			MAIL_SESSION_OBJECT_PATH,
+			MAIL_SESSION_INTERFACE,
+			"mail_session_shutdown",
+			&error, 
+			""); 
+
+	if (!ret) {
+		g_warning ("Error:mail_session_remote_shutdown : %s\n", error.message);
+		return ;
+	}
+
+	d(printf("mail_session_shutdown: Success \n"));
+	return;
+}
+
+



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