Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > by-pkgid > 13aa745fa82315981ff58c83c7af0f46 > files > 16

gob-1.0.12-1mdk.i586.rpm

/*
 * Example BonoboXObject class
 *
 * see GNOME_Foo_SomeInterface.idl
 */
requires 1.0.9

%{
/* some standard includes */
#include <gnome.h>
#include <bonobo.h>

/* this requires you to use orbit-idl on GNOME_Foo_SomeInterface.idl first */
#include "GNOME_Foo_SomeInterface.h"

#include "foo-some-interface.h"
#include "foo-some-interface-private.h"
%}

class Foo:Some:Interface from Bonobo:X:Object
	(BonoboX GNOME_Foo_SomeInterface)
{

	BonoboX
	private void
	fooBar (PortableServer_Servant servant,
	        const CORBA_char *string,
	        CORBA_Environment *ev)
	{
		Self *self = SELF (bonobo_object_from_servant (servant));

		/* your code here */
	}

	/* rest of class */
}