| Libgnomedb 4.0 Reference Manual | ||||
|---|---|---|---|---|
GnomeDbProviderSpecEditorGnomeDbProviderSpecEditor — Widget to display and edit connection data associated to a database provider |
GnomeDbProviderSpecEditor;
GnomeDbProviderSpecEditorClass;
GnomeDbProviderSpecEditorPrivate;
GtkWidget* gnome_db_provider_spec_editor_new (const gchar *provider);
void gnome_db_provider_spec_editor_set_provider
(GnomeDbProviderSpecEditor *spec,
const gchar *provider);
gboolean gnome_db_provider_spec_editor_is_valid
(GnomeDbProviderSpecEditor *spec);
gchar* gnome_db_provider_spec_editor_get_specs
(GnomeDbProviderSpecEditor *spec);
void gnome_db_provider_spec_editor_set_specs
(GnomeDbProviderSpecEditor *spec,
const gchar *specs_string);
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBox
+----GtkVBox
+----GnomeDbProviderSpecEditor
typedef struct {
GtkVBoxClass parent_class;
/* signals */
void (* changed) (GnomeDbProviderSpecEditor *spec);
} GnomeDbProviderSpecEditorClass;
typedef struct _GnomeDbProviderSpecEditorPrivate GnomeDbProviderSpecEditorPrivate;
GtkWidget* gnome_db_provider_spec_editor_new (const gchar *provider);
Creates a new GnomeDbProviderSpecEditor widget
|
the provider to be used |
Returns : |
void gnome_db_provider_spec_editor_set_provider
(GnomeDbProviderSpecEditor *spec,
const gchar *provider);
Updates the displayed fields in spec to represent the required
and possible arguments that a connection to a database through
provider would require
|
a GnomeDbProviderSpecEditor widget |
|
the provider to be used |
gboolean gnome_db_provider_spec_editor_is_valid
(GnomeDbProviderSpecEditor *spec);
Tells if the current information displayed in spec respects the
provider's specifications (about non NULL values for example)
|
a GnomeDbProviderSpecEditor widget |
Returns : |
gchar* gnome_db_provider_spec_editor_get_specs
(GnomeDbProviderSpecEditor *spec);
Get the currently displayed provider's specific connection string
|
a GnomeDbProviderSpecEditor widget |
Returns : |
a new string, or NULL if no provider have been specified
|
void gnome_db_provider_spec_editor_set_specs
(GnomeDbProviderSpecEditor *spec,
const gchar *specs_string);
Sets the connection string to be displayed in the widget
|
a GnomeDbProviderSpecEditor widget |
|
"changed" signalvoid user_function (GnomeDbProviderSpecEditor *dbproviderspeceditor, gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |