gda-set.h | gda-set.h | |||
---|---|---|---|---|
skipping to change at line 45 | skipping to change at line 45 | |||
extern GQuark gda_set_error_quark (void); | extern GQuark gda_set_error_quark (void); | |||
#define GDA_SET_ERROR gda_set_error_quark () | #define GDA_SET_ERROR gda_set_error_quark () | |||
typedef enum | typedef enum | |||
{ | { | |||
GDA_SET_XML_SPEC_ERROR, | GDA_SET_XML_SPEC_ERROR, | |||
GDA_SET_HOLDER_NOT_FOUND_ERROR, | GDA_SET_HOLDER_NOT_FOUND_ERROR, | |||
GDA_SET_INVALID_ERROR | GDA_SET_INVALID_ERROR | |||
} GdaSetError; | } GdaSetError; | |||
/** | ||||
* GdaSetNode: | ||||
* | ||||
* For each #GdaHolder object in the #GdaSet object, there is a | ||||
* #GdaSetNode structure which sums up all the information for | ||||
* each GdaHolder. | ||||
*/ | ||||
struct _GdaSetNode { | struct _GdaSetNode { | |||
GdaHolder *holder; /* Can't be NULL */ | GdaHolder *holder; /* Can't be NULL */ | |||
GdaDataModel *source_model; /* may be NULL if @holder does not have | GdaDataModel *source_model; /* may be NULL */ | |||
any source */ | gint source_column; /* unused if @source_model is NULL */ | |||
gint source_column; /* unused is @source_model is NULL */ | ||||
/* Padding for future expansion */ | ||||
gpointer _gda_reserved1; | ||||
gpointer _gda_reserved2; | ||||
}; | }; | |||
/** | ||||
* GdaSetGroup: | ||||
* | ||||
* The #GdaSetGroup is another view of the #GdaHolder objects | ||||
* contained in the #GdaSet: there is one such structure | ||||
* for each _independant_ parameter (parameters which have the same source | ||||
data model | ||||
* all appear in the same #GdaSetGroup structure). | ||||
*/ | ||||
struct _GdaSetGroup { | struct _GdaSetGroup { | |||
GSList *nodes; /* list of GdaSetNode, at least one entry */ | GSList *nodes; /* list of GdaSetNode, at least one entry */ | |||
GdaSetSource *nodes_source; /* if NULL, then @nodes contains exactly one entry */ | GdaSetSource *nodes_source; /* if NULL, then @nodes contains exactly one entry */ | |||
/* Padding for future expansion */ | ||||
gpointer _gda_reserved1; | ||||
gpointer _gda_reserved2; | ||||
}; | }; | |||
/** | ||||
* GdaSetSource: | ||||
* | ||||
* There is a #GdaSetSource structure for each #GdaDataModel which | ||||
* is a source for least one #GdaHolder in the #GdaSet object. | ||||
*/ | ||||
struct _GdaSetSource { | struct _GdaSetSource { | |||
GdaDataModel *data_model; /* Can't be NULL */ | GdaDataModel *data_model; /* Can't be NULL */ | |||
GSList *nodes; /* list of #GdaSetNode for which sourc e_model == @data_model */ | GSList *nodes; /* list of #GdaSetNode for which sourc e_model == @data_model */ | |||
/* displayed columns in 'data_model' */ | /* Padding for future expansion */ | |||
gint shown_n_cols; | gpointer _gda_reserved1; | |||
gint *shown_cols_index; | gpointer _gda_reserved2; | |||
gpointer _gda_reserved3; | ||||
/* columns used as a reference (corresponding to PK values) in 'dat | gpointer _gda_reserved4; | |||
a_model' */ | ||||
gint ref_n_cols; | ||||
gint *ref_cols_index; | ||||
}; | }; | |||
#define GDA_SET_NODE(x) ((GdaSetNode *)(x)) | #define GDA_SET_NODE(x) ((GdaSetNode *)(x)) | |||
#define GDA_SET_SOURCE(x) ((GdaSetSource *)(x)) | #define GDA_SET_SOURCE(x) ((GdaSetSource *)(x)) | |||
#define GDA_SET_GROUP(x) ((GdaSetGroup *)(x)) | #define GDA_SET_GROUP(x) ((GdaSetGroup *)(x)) | |||
/* struct for the object's data */ | /* struct for the object's data */ | |||
struct _GdaSet | struct _GdaSet | |||
{ | { | |||
GObject object; | GObject object; | |||
End of changes. 6 change blocks. | ||||
33 lines changed or deleted | 15 lines changed or added | |||