GNOME Data Access manual | |||
---|---|---|---|
<<< Previous Page | Home | Next Page >>> |
As stated before, for each different data source supported by libgda, there must be a CORBA object implementing the GNOME::Database::Provider interface. So, in theory, you just need the libgda IDL files (included in the libgda distribution), and make use of them from your favorite language. That is, you can access directly the libgda architecture by talking to the different via CORBA with the help of the IDL files.
As an example for this, we should talk about bonobo-python or bonobo-perl, which are 2 of the most advanced Bonobo bindings available, and which would help you in accessign the GDA framework from those 2 lenguages.
Since libgda itself is developed in the C language, and that most providers are also implemented in that language, the libgda library itself contains a set of helper classes and functions to help you in the addition of a new provider to the GDA framework.
The GdaServerProvider is the class you should implement for adding a new provider. This class is just a typical GObject-based class, with a set of virtual methods, that are the ones that you must implement. These virtual methods are declared in the class structure, in the gda-server-provider.h file. They are: