Midgard2 Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
struct MidgardQueryConstraintGroup; struct MidgardQueryConstraintGroupClass; MidgardQueryConstraintGroup * midgard_query_constraint_group_new (void
); MidgardQueryConstraintGroup * midgard_query_constraint_group_new_valist (const gchar *type
,MidgardQueryConstraintSimple *constraint
,...
); MidgardQueryConstraintGroup * midgard_query_constraint_group_new_with_constraints (const gchar *type
,MidgardQueryConstraintSimple **constraints
,guint n_constraints
); const gchar * midgard_query_constraint_group_get_group_type (MidgardQueryConstraintGroup *self
); gboolean midgard_query_constraint_group_set_group_type (MidgardQueryConstraintGroup *self
,const gchar *type
); gboolean midgard_query_constraint_group_add_constraint (MidgardQueryConstraintGroup *self
,MidgardQueryConstraintSimple *constraint
);
MidgardQueryConstraintGroup implements MidgardQueryConstraintSimple and MidgardValidable.
struct MidgardQueryConstraintGroupClass { GObjectClass parent; };
MidgardQueryConstraintGroup * midgard_query_constraint_group_new
(void
);
Create new MidgardQueryConstraintGroup instance with default "AND" group type.
Returns : |
MidgardQueryConstraintGroup instance or NULL
|
Since 10.05.1
MidgardQueryConstraintGroup * midgard_query_constraint_group_new_valist (const gchar *type
,MidgardQueryConstraintSimple *constraint
,...
);
This is C convinient function. It's not designed for language bindings.
|
constraints group type ('OR' or 'AND') |
|
list of constraints to add to group or NULL |
Returns : |
MidgardQueryConstraintGroup instance or NULL
|
Since 10.05.1
MidgardQueryConstraintGroup * midgard_query_constraint_group_new_with_constraints (const gchar *type
,MidgardQueryConstraintSimple **constraints
,guint n_constraints
);
|
constraints group type |
|
an array of MidgardQueryConstraintSimple constraints |
|
the length of given constraints array |
Returns : |
MidgardQueryConstraintGroup instance or NULL
|
Since 10.05.1
const gchar * midgard_query_constraint_group_get_group_type
(MidgardQueryConstraintGroup *self
);
|
MidgardQueryConstraintGroup instance |
Returns : |
group type ('OR' or 'AND') |
Since 10.05
gboolean midgard_query_constraint_group_set_group_type (MidgardQueryConstraintGroup *self
,const gchar *type
);
|
MidgardQueryConstraintGroup instance |
|
group type to set ('OR' or 'AND') |
Returns : |
TRUE if type is set, FALSE otherwise |
Since 10.05
gboolean midgard_query_constraint_group_add_constraint (MidgardQueryConstraintGroup *self
,MidgardQueryConstraintSimple *constraint
);
|
MidgardQueryConstraintGroup instance |
|
MidgardQueryConstraintSimple constraint to add to constraint group |
Returns : |
TRUE on success, FALSE otherwise |
Since 10.05