Details
enum GnomeDbComponentType
typedef enum {
GNOME_DB_COMPONENT_TYPE_INVALID = -1,
GNOME_DB_COMPONENT_TYPE_EXE,
GNOME_DB_COMPONENT_TYPE_SHLIB,
GNOME_DB_COMPONENT_TYPE_FACTORY
} GnomeDbComponentType; |
GnomeDbComponentInfo
typedef struct {
gchar *id;
gchar *location;
GnomeDbComponentType type;
gchar *description;
GList *repo_ids;
gchar *username;
gchar *hostname;
gchar *domain;
GdaParameterList *properties;
} GnomeDbComponentInfo; |
gnome_db_config_get_component_list ()
GList* gnome_db_config_get_component_list
(const gchar *query); |
Return a list of all components currently installed in
the system that match the given query (see
BonoboActivation documentation). Each of the nodes
in the returned GList is a GnomeDbComponentInfo. To free
the returned list, call the gnome_db_config_free_component_list
function.
gnome_db_config_free_component_list ()
void gnome_db_config_free_component_list
(GList *list); |
gnome_db_config_get_component_data_model ()
GdaDataModel* gnome_db_config_get_component_data_model
(const gchar *query); |
gnome_db_config_get_string ()
gchar* gnome_db_config_get_string (const gchar *path); |
Gets the value of the specified configuration entry as a string. You
are then responsible to free the returned string
path : | path to the configuration entry |
Returns : | the value stored at the given entry |
gnome_db_config_get_int ()
gint gnome_db_config_get_int (const gchar *path); |
Gets the value of the specified configuration entry as an integer
path : | path to the configuration entry |
Returns : | the value stored at the given entry |
gnome_db_config_get_float ()
gdouble gnome_db_config_get_float (const gchar *path); |
Gets the value of the specified configuration entry as a float
path : | path to the configuration entry |
Returns : | the value stored at the given entry |
gnome_db_config_get_boolean ()
gboolean gnome_db_config_get_boolean (const gchar *path); |
Gets the value of the specified configuration entry as a boolean
path : | path to the configuration entry |
Returns : | the value stored at the given entry |
gnome_db_config_set_string ()
void gnome_db_config_set_string (const gchar *path,
const gchar *new_value); |
Sets the given configuration entry to contain a string
gnome_db_config_set_int ()
void gnome_db_config_set_int (const gchar *path,
gint new_value); |
Sets the given configuration entry to contain an integer
gnome_db_config_set_float ()
void gnome_db_config_set_float (const gchar *path,
gdouble new_value); |
Sets the given configuration entry to contain a float
gnome_db_config_set_boolean ()
void gnome_db_config_set_boolean (const gchar *path,
gboolean new_value); |
Sets the given configuration entry to contain a boolean
gnome_db_config_remove_section ()
void gnome_db_config_remove_section (const gchar *path); |
Remove the given section from the configuration database
path : | path to the configuration section |
gnome_db_config_remove_key ()
void gnome_db_config_remove_key (const gchar *path); |
Remove the given entry from the configuration database
path : | path to the configuration entry |
gnome_db_config_has_section ()
gboolean gnome_db_config_has_section (const gchar *path); |
Checks whether the given section exists in the configuration
system
path : | path to the configuration section |
Returns : | TRUE if the section exists, FALSE otherwise |
gnome_db_config_has_key ()
gboolean gnome_db_config_has_key (const gchar *path); |
Check whether the given key exists in the configuration system
path : | path to the configuration key |
Returns : | TRUE if the entry exists, FALSE otherwise |
gnome_db_config_list_sections ()
GList* gnome_db_config_list_sections (const gchar *path); |
Return a GList containing the names of all the sections available
under the given root directory.
To free the returned value, you can use gnome_db_config_free_list
gnome_db_config_list_keys ()
GList* gnome_db_config_list_keys (const gchar *path); |
Returns a list of all keys that exist under the given path.
To free the returned value, you can use gnome_db_config_free_list
gnome_db_config_get_data_source_list ()
GList* gnome_db_config_get_data_source_list
(void); |
Retrieves information about available data sources.
gnome_db_config_find_data_source ()
Looks for a data source given its name.
The search is case insensitive.
gnome_db_config_free_data_source_info ()
Frees the resources allocated by a GdaDataSourceInfo.
info : | the struture to deallocate. |
gnome_db_config_free_data_source_list ()
void gnome_db_config_free_data_source_list
(GList *list); |
Frees the list.
gnome_db_config_remove_data_source ()
void gnome_db_config_remove_data_source
(const gchar *name); |
Removes the given data source from the GDA configuration.
name : | Name for the data source to be removed. |
gnome_db_config_save_data_source ()
void gnome_db_config_save_data_source
(const gchar *name,
const gchar *provider,
const gchar *cnc_string,
const gchar *description,
const gchar *username,
const gchar *password); |
Adds a new data source (or update an existing one) to the GDA
configuration, based on the parameters given.
gnome_db_config_add_listener ()
guint gnome_db_config_add_listener (const gchar *path,
GConfClientNotifyFunc func,
gpointer user_data); |
Installs a configuration listener, which is a callback function
which will be called every time a change occurs on a given
configuration entry.
gnome_db_config_remove_listener ()
void gnome_db_config_remove_listener (guint id); |
Removes a previously installed configuration listener.
GNOME_DB_CONFIG_KEY_BROWSER_PANED_POSITION
#define GNOME_DB_CONFIG_KEY_BROWSER_PANED_POSITION "/apps/gnome-db/Browser/PanedPosition" |
GNOME_DB_CONFIG_KEY_EDITOR_SHOW_LINE_NUMBERS
#define GNOME_DB_CONFIG_KEY_EDITOR_SHOW_LINE_NUMBERS "/apps/gnome-db/Editor/ShowLineNumbers" |
GNOME_DB_CONFIG_KEY_EDITOR_TAB_STOP
#define GNOME_DB_CONFIG_KEY_EDITOR_TAB_STOP "/apps/gnome-db/Editor/TabStop" |