![]() | ![]() | ![]() | GNOME-DB API reference | ![]() |
---|
GList * gnome_db_config_get_saved_sql_queries (void);GList * gnome_db_config_get_saved_xml_queries (void); GnomeDbConfigComponent; #define gnome_db_config_component_get_name(_com_) #define gnome_db_config_component_get_location(_com_) #define gnome_db_config_component_get_description(_com_) #define gnome_db_config_component_get_repo_ids(_com_) #define gnome_db_config_component_get_type(_com_) #define gnome_db_config_component_get_icon(_com_) GnomeDbConfigComponent* gnome_db_config_component_new (void);void gnome_db_config_component_free (GnomeDbConfigComponent *component);void gnome_db_config_component_set_name (GnomeDbConfigComponent *component, constgchar *name);void gnome_db_config_component_set_location (GnomeDbConfigComponent *component, constgchar *location);void gnome_db_config_component_set_description (GnomeDbConfigComponent *component, constgchar *desc);void gnome_db_config_component_set_repo_ids (GnomeDbConfigComponent *component, constgchar *repo_ids);void gnome_db_config_component_set_type (GnomeDbConfigComponent *component, constgchar *type);void gnome_db_config_component_set_icon (GnomeDbConfigComponent *component, constgchar *icon);GList * gnome_db_config_get_all_components (void);GList * gnome_db_config_get_shell_components (void);void gnome_db_config_component_free_list (GList *list); #define GNOME_DB_CONFIG_SECTION_DESIGNER #define GNOME_DB_CONFIG_SECTION_HELP_VIEWER #define GNOME_DB_CONFIG_SECTION_HELP_VIEWER_DOCS #define GNOME_DB_CONFIG_SECTION_LAST_COMMANDS #define GNOME_DB_CONFIG_SECTION_SAVED_SQL_QUERIES #define GNOME_DB_CONFIG_SECTION_SAVED_XML_QUERIES #define GNOME_DB_CONFIG_SECTION_SAVED_BATCH_JOBS #define GNOME_DB_CONFIG_KEY_SHOW_TOOLTIPS #define GNOME_DB_REPO_CONTROL #define GNOME_DB_OAFIID_BUILDER_FACTORY #define GNOME_DB_OAFIID_COMPONENT_FACTORY #define GNOME_DB_OAFIID_MANAGER_FACTORY #define GNOME_DB_OAFIID_MONIKER_FACTORY #define GNOME_DB_OAFIID_BUILDER #define GNOME_DB_OAFIID_CONNECTION #define GNOME_DB_OAFIID_DESIGNER #define GNOME_DB_OAFIID_EXPORT #define GNOME_DB_OAFIID_IMPORT #define GNOME_DB_OAFIID_LOG_VIEWER #define GNOME_DB_OAFIID_MANAGER #define GNOME_DB_OAFIID_MONIKER_DATABASE
This module contains lots of functions that let you access/modify the GNOME-DB configuration.
GList * gnome_db_config_get_saved_sql_queries (void);
Returns the names of all the saved SQL queries for the current user. To free the returned GList, use gda_config_free_list
Returns : | a GList containing the names of all saved SQL queries. |
GList * gnome_db_config_get_saved_xml_queries (void);
Returns the names of all the saved XML queries for the current user. To free the returned GList, use gda_config_free_list
Returns : | a GList containing the names of all saved XML queries. |
typedef struct { gchar* name; gchar* location; gchar* description; gchar* repo_ids; gchar* type; gchar* icon; } GnomeDbConfigComponent;
#define gnome_db_config_component_get_location(_com_)
_com_ : |
|
#define gnome_db_config_component_get_description(_com_)
_com_ : |
|
#define gnome_db_config_component_get_repo_ids(_com_)
_com_ : |
|
GnomeDbConfigComponent* gnome_db_config_component_new (void);
Creates a new GnomeDbConfigComponent structure. This structure is used to represent the information stored in the configuration database about a component.
You would almost never want to use this routine directly, since the GnomeDbConfigComponent are created internally in the GNOME-DB library, and just returned to the programmer.
Returns : | the newly-created structure |
void gnome_db_config_component_free (GnomeDbConfigComponent *component);
Frees all memory used by the given GnomeDbConfigComponent structure.
component : |
|
void gnome_db_config_component_set_name (GnomeDbConfigComponent *component, constgchar *name);
Sets the 'name' field in the given GnomeDbConfigComponent structure
component : | a GnomeDbConfigComponent structure name: the new name for the component |
name : |
|
void gnome_db_config_component_set_location (GnomeDbConfigComponent *component, constgchar *location);
Sets the 'location' field in the given GnomeDbConfigComponent structure
component : | a GnomeDbConfigComponent structure |
location : | new location for the component |
void gnome_db_config_component_set_description (GnomeDbConfigComponent *component, constgchar *desc);
Sets the 'description' field in the given GnomeDbConfigComponent structure
component : | a GnomeDbConfigComponent structure |
desc : |
|
void gnome_db_config_component_set_repo_ids (GnomeDbConfigComponent *component, constgchar *repo_ids);
Sets the 'repo_ids' field in the given GnomeDbConfigComponent structure
component : | a GnomeDbConfigComponent structure |
repo_ids : | new repository IDs for the component |
void gnome_db_config_component_set_type (GnomeDbConfigComponent *component, constgchar *type);
Sets the 'type' field in the given GnomeDbConfigComponent structure
component : | a GnomeDbConfigComponent structure |
type : | new type for the component |
void gnome_db_config_component_set_icon (GnomeDbConfigComponent *component, constgchar *icon);
Sets the 'icon' field in the given GnomeDbConfigComponent structure
component : | a GnomeDbConfigComponent structure |
icon : | new icon for the component |
GList * gnome_db_config_get_shell_components (void);
Return a list of all registered components that can be used in the gnome-db frontend. It's up to the programmer to free the returned list, which can be easily done by calling gnome_db_config_component_free_list.
Returns : | a GList of GnomeDbConfigComponent structures. |
void gnome_db_config_component_free_list (GList *list);
Frees the given list, which should be a GList of GnomeDbConfigComponent
structures, as returned by gnome_db_config_get_shell_components or
list : | the list to be freed |
#define GNOME_DB_CONFIG_SECTION_HELP_VIEWER "/apps/gnome-db/HelpViewer"
#define GNOME_DB_CONFIG_SECTION_HELP_VIEWER_DOCS "/apps/gnome-db/HelpViewer/Docs"
#define GNOME_DB_CONFIG_SECTION_LAST_COMMANDS "/apps/gnome-db/LastCommands"
#define GNOME_DB_CONFIG_SECTION_SAVED_SQL_QUERIES "/apps/gnome-db/SavedQueries/SQL"
#define GNOME_DB_CONFIG_SECTION_SAVED_XML_QUERIES "/apps/gnome-db/SavedQueries/XML"
#define GNOME_DB_CONFIG_SECTION_SAVED_BATCH_JOBS "/apps/gnome-db/SavedBatchJobs"
#define GNOME_DB_CONFIG_KEY_SHOW_TOOLTIPS "/apps/gnome-db/Widgets/ShowTooltips"
#define GNOME_DB_OAFIID_BUILDER_FACTORY "OAFIID:GNOME_Database_UIBuilderFactory"
#define GNOME_DB_OAFIID_COMPONENT_FACTORY "OAFIID:GNOME_Database_UIComponentFactory"
#define GNOME_DB_OAFIID_MANAGER_FACTORY "OAFIID:GNOME_Database_UIManagerFactory"
#define GNOME_DB_OAFIID_MONIKER_FACTORY "OAFIID:GNOME_Database_UIMonikerFactory"
#define GNOME_DB_OAFIID_CONNECTION "OAFIID:GNOME_Database_UIConnection_Control"
#define GNOME_DB_OAFIID_LOG_VIEWER "OAFIID:GNOME_Database_UILogViewer_Control"
<<< gnome-db | gnome-db-util >>> |