Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 92f87bfa90c8366bbacbfc7a4d26a5b5 > files > 18

gob2-2.0.20-5.mga7.i586.rpm

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

%{
/* 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:Object
	(BonoboObject GNOME_Foo_SomeInterface)
{

	BonoboObject
	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 */
}