From 2a3293368b73945c2b55f160745cb2d98b4bcee6 Mon Sep 17 00:00:00 2001 From: bertrand Date: Mon, 13 Mar 2000 06:53:48 +0000 Subject: i2000-03-13 bertrand * folder-browser-factory.c (folder_browser_set_shell): for testing and demonstration purpose, immediately register a fake service. 2000-03-13 bertrand * shell/e-shell.c (EShell_register_service): test implementation. Show the uri and the type of service that has just been registered. Test the registering mechanism. Actually seems to work well. svn path=/trunk/; revision=2112 --- shell/e-shell.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'shell/e-shell.c') diff --git a/shell/e-shell.c b/shell/e-shell.c index ec383746f0..f706723f37 100644 --- a/shell/e-shell.c +++ b/shell/e-shell.c @@ -132,7 +132,21 @@ EShell_register_service (PortableServer_Servant servant, const CORBA_char *uri, CORBA_Environment *ev) { - printf ("toto\n"); + char *service_type_desc = NULL; + + switch (type) { + + case Evolution_Shell_MAIL_STORE : + service_type_desc = "store"; + break; + case Evolution_Shell_MAIL_TRANSPORT : + service_type_desc = "transport"; + break; + default : + service_type_desc = "service of unknown type"; + } + + printf ("A component has registered a %s with uri \"%s\"\n", service_type_desc, uri); } -- cgit