![]() | ![]() | ![]() | Libgnomedb Reference Manual | ![]() |
---|
GnomeDbQfFunc — Represents a function (selected by a GnomeDbServerFunction object)
struct GnomeDbQfFunc; GType gnome_db_qf_func_get_type (void); GObject* gnome_db_qf_func_new_with_func (GnomeDbQuery *query, GnomeDbServerFunction *func); GObject* gnome_db_qf_func_new_with_xml_id (GnomeDbQuery *query, const gchar *func_xml_id); GnomeDbServerFunction* gnome_db_qf_func_get_ref_func (GnomeDbQfFunc *func); gboolean gnome_db_qf_func_set_args (GnomeDbQfFunc *func, GSList *args); GSList* gnome_db_qf_func_get_args (GnomeDbQfFunc *func);
GObject +----GnomeDbBase +----GnomeDbQfield +----GnomeDbQfFunc
GnomeDbQfFunc implements GnomeDbXmlStorage, GnomeDbRenderer, GnomeDbReferer and GnomeDbField.
"templ-signal" void user_function (GnomeDbQfFunc *dbqffunc, gpointer user_data);
The function is applied to zero or more GnomeDbQfield objects of the same query
GObject* gnome_db_qf_func_new_with_func (GnomeDbQuery *query, GnomeDbServerFunction *func);
Creates a new GnomeDbQfFunc object which represents the func function
query : | a GnomeDbQuery in which the new object will be |
func : | a GnomeDbServerFunction object |
Returns : | the new object |
GObject* gnome_db_qf_func_new_with_xml_id (GnomeDbQuery *query, const gchar *func_xml_id);
Creates a new GnomeDbQfFunc object which represents a given function
query : | a GnomeDbQuery in which the new object will be |
func_xml_id : | the XML Id of a GnomeDbServerFunction object |
Returns : | the new object |
GnomeDbServerFunction* gnome_db_qf_func_get_ref_func (GnomeDbQfFunc *func);
Get the real GnomeDbServerFunction object used by func
func : | a GnomeDbQfFunc object |
Returns : | the GnomeDbServerFunction object, or NULL if func is not active |
gboolean gnome_db_qf_func_set_args (GnomeDbQfFunc *func, GSList *args);
Sets the argument(s) of func. If args is NULL, then all the arguments (if there was any) are removed.
If func is not active, then no check on the provided args is performed.
func : | a GnomeDbQfFunc object |
args : | a list of GnomeDbQfield objects |
Returns : | TRUE if no error occurred |
GSList* gnome_db_qf_func_get_args (GnomeDbQfFunc *func);
Get a list of the other GnomeDbQfield objects which are arguments of func. If some of them are missing, then a NULL is inserted where it should have been.
func : | a GnomeDbQfFunc object |
Returns : | a new list of arguments |
"query" (gpointer : Read / Write) |
void user_function (GnomeDbQfFunc *dbqffunc, gpointer user_data);
dbqffunc : | the object which received the signal. |
user_data : | user data set when the signal handler was connected. |
<< GnomeDbQfField | GnomeDbQfAgg >> |