Re: [gnome-db] GdaDataModel virtual functions API question + new PATCH
- From: Daniel Espinosa <esodan gmail com>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gnome-db-list gnome org
- Subject: Re: [gnome-db] GdaDataModel virtual functions API question + new PATCH
- Date: Fri, 23 Sep 2011 19:02:33 +0200
2011/9/22 Murray Cumming <murrayc murrayc com>
On Thu, 2011-09-22 at 03:33 +0200, Daniel Espinosa wrote:No, these are used by GdaDataModel. For instance:
> I'm continuing adding more and more annotations in libgda-4.2 (find
> attached another PATCH :-), I'm adding Virtual: annotations to
> GdaDataModel and found that the following virtual functions:
> public abstract bool i_iter_at_row (Gda.DataModelIter iter,
> int row);
> public abstract bool i_iter_next (Gda.DataModelIter iter);
> public abstract bool i_iter_prev (Gda.DataModelIter iter);
> public abstract bool i_iter_set_value (Gda.DataModelIter iter,
> int col, GLib.Value value) throws GLib.Error;
> * Must not be part of GdaDataModel* because they are functions of
> GdaDataModelter. Remove this functions in libgda-5.0 could be good to
> cleaning the API.
(I guess the data model creates and manipulates iterators. That makes
DataModel create Iter is Ok. But it returns a DataModelIter object and you can create more iters if you want, then i_iter_next virtual function must be implemented by Provider but called on the required Iter I guess.
If this are the behavior then (in an hipotetical condition) if some one implement a new Provider using Vala will use i_iter_next (and other iter related virtual functions) override directly right?
Just to help feature Providers:
Are there any help (I didn't find them) to implement GdaDataModel interface?
For Providers is only required to subclass GdaDataModelSelect class? What about iterator's virtual functions? Are they implemented by DataModelSelect?
> The following virtual function have a staticYou mean virtual rather than static, I guess.
That's not unusual at all. It's not a problem.
> function and no public function to use it, is this correct? Must be
> removed from the virtual functions API in 5.0?
> public abstract bool i_get_notify ();
>I don't understand this part.
> I'm finding more API comments from the generated VAPI file on Utility:
most functions must be in the object used by them to perform the action.
Is the same as happened on Gda Easy's functions: move this functions as part of the object used, i.e.
] [Thread Prev