]> git.draconx.ca Git - gob-dx.git/blob - examples/foo-some-interface.gob
Release 2.0.0
[gob-dx.git] / examples / foo-some-interface.gob
1 /*
2  * Example BonoboXObject class
3  *
4  * see GNOME_Foo_SomeInterface.idl
5  */
6 requires 2.0.0
7
8 %{
9 /* some standard includes */
10 #include <gnome.h>
11 #include <bonobo.h>
12
13 /* this requires you to use orbit-idl on GNOME_Foo_SomeInterface.idl first */
14 #include "GNOME_Foo_SomeInterface.h"
15
16 #include "foo-some-interface.h"
17 #include "foo-some-interface-private.h"
18 %}
19
20 class Foo:Some:Interface from Bonobo:Object
21         (BonoboObject GNOME_Foo_SomeInterface)
22 {
23
24         BonoboObject
25         private void
26         fooBar (PortableServer_Servant servant,
27                 const CORBA_char *string,
28                 CORBA_Environment *ev)
29         {
30                 Self *self = SELF (bonobo_object_from_servant (servant));
31
32                 /* your code here */
33         }
34
35         /* rest of class */
36 }