MidgardQueryConstraintGroup

MidgardQueryConstraintGroup

Synopsis

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);

Object Hierarchy

  GObject
   +----MidgardQueryConstraintGroup

Implemented Interfaces

MidgardQueryConstraintGroup implements MidgardQueryConstraintSimple and MidgardValidable.

Properties

  "grouptype"                gchar*                : Read / Write

Description

Details

struct MidgardQueryConstraintGroup

struct MidgardQueryConstraintGroup;


struct MidgardQueryConstraintGroupClass

struct MidgardQueryConstraintGroupClass {
	GObjectClass parent;
};


midgard_query_constraint_group_new ()

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


midgard_query_constraint_group_new_valist ()

MidgardQueryConstraintGroup * midgard_query_constraint_group_new_valist
                                                        (const gchar *type,
                                                         MidgardQueryConstraintSimple *constraint,
                                                         ...);

This is C convinient function. It's not designed for language bindings.

type :

constraints group type ('OR' or 'AND')

constraint :

list of constraints to add to group or NULL

Returns :

MidgardQueryConstraintGroup instance or NULL

Since 10.05.1


midgard_query_constraint_group_new_with_constraints ()

MidgardQueryConstraintGroup * midgard_query_constraint_group_new_with_constraints
                                                        (const gchar *type,
                                                         MidgardQueryConstraintSimple **constraints,
                                                         guint n_constraints);

type :

constraints group type

constraints :

an array of MidgardQueryConstraintSimple constraints

n_constraints :

the length of given constraints array

Returns :

MidgardQueryConstraintGroup instance or NULL

Since 10.05.1


midgard_query_constraint_group_get_group_type ()

const gchar *       midgard_query_constraint_group_get_group_type
                                                        (MidgardQueryConstraintGroup *self);

self :

MidgardQueryConstraintGroup instance

Returns :

group type ('OR' or 'AND')

Since 10.05


midgard_query_constraint_group_set_group_type ()

gboolean            midgard_query_constraint_group_set_group_type
                                                        (MidgardQueryConstraintGroup *self,
                                                         const gchar *type);

self :

MidgardQueryConstraintGroup instance

type :

group type to set ('OR' or 'AND')

Returns :

TRUE if type is set, FALSE otherwise

Since 10.05


midgard_query_constraint_group_add_constraint ()

gboolean            midgard_query_constraint_group_add_constraint
                                                        (MidgardQueryConstraintGroup *self,
                                                         MidgardQueryConstraintSimple *constraint);

self :

MidgardQueryConstraintGroup instance

constraint :

MidgardQueryConstraintSimple constraint to add to constraint group

Returns :

TRUE on success, FALSE otherwise

Since 10.05

Property Details

The "grouptype" property

  "grouptype"                gchar*                : Read / Write

Default value: ""