Top | ![]() |
![]() |
![]() |
![]() |
GdaExport * | gda_export_new () |
GList * | gda_export_get_tables () |
GList * | gda_export_get_selected_tables () |
void | gda_export_select_table () |
void | gda_export_select_table_list () |
void | gda_export_unselect_table () |
void | gda_export_run () |
void | gda_export_stop () |
GdaConnection * | gda_export_get_connection () |
void | gda_export_set_connection () |
GdaExport *
gda_export_new (GdaConnection *cnc
);
Creates a new GdaExport object, which allows you to easily add exporting functionality to your programs.
It works by first having a GdaConnection object associated to it, and then allowing you to retrieve information about all the objects present in the database, and also to add/remove those objects from a list of selected objects.
When you're done, you just run the export (gda_export_run), first connecting to the different signals that will let you be informed of the export process progress.
GList *
gda_export_get_tables (GdaExport *exp
);
Returns a list of all tables that exist in the GdaConnection being used by the given GdaExport object. This function is useful when you're building, for example, a list for the user to select which tables he/she wants in the export process.
You are responsible to free the returned value yourself.
GList *
gda_export_get_selected_tables (GdaExport *exp
);
Returns a list with the names of all the currently selected objects in the given GdaExport object.
You are responsible to free the returned value yourself.
void gda_export_select_table (GdaExport *exp
,const gchar *table
);
Adds the given table
to the list of selected tables.
void gda_export_select_table_list (GdaExport *exp
,GList *list
);
Adds all the tables contained in the given list
to the list of
selected tables.
void gda_export_unselect_table (GdaExport *exp
,const gchar *table
);
Removes the given table name from the list of selected tables.
void gda_export_run (GdaExport *exp
,GdaExportFlags flags
);
Starts the execution of the given export object. This means that, after calling this function, your application will lose control about the export process and will only receive notifications via the class signals.
void
gda_export_stop (GdaExport *exp
);
Stops execution of the given export object.