#include #include #include #include #include "configuration.h"#include "nntpgrab_internal.h"
Data Structures |
|
| struct | _config_server_details |
| struct | Configuration |
| struct | ConfigurationClass |
Typedefs |
|
| typedef struct ConfigurationClass | ConfigurationClass |
| typedef struct _config_server_details |
ConfigServerDetails |
Enumerations |
|
| enum | { CONFIG_CHANGED_SIGNAL, LAST_SIGNAL } |
Functions |
|
| Configuration * | configuration_get_object (void) |
| GType | configuration_get_type (void) |
| Configuration * | configuration_new (char **errmsg, char **warnings) |
| void | configuration_destroy (Configuration *obj) |
| GList * | configuration_get_avail_servers (Configuration *obj) |
| Retrieve a list of all the available usenet servers. |
|
| void | configuration_free_avail_servers (Configuration *obj, GList *servers) |
| Frees the list returned by configuration_get_avail_servers(). |
|
| ConfigServer * | configuration_get_server_info (Configuration *obj, const char *servername) |
| Retrieve information about a specific usenet server. |
|
| gboolean | configuration_add_server (Configuration *obj, ConfigServer new_server, char **errmsg) |
| Add a new server to the list of known usenet servers. |
|
| gboolean | configuration_del_server (Configuration *obj, const char *servername, char **errmsg) |
| Delete the settings from the specified servername from the list of known usenet servers. |
|
| gboolean | configuration_edit_server (Configuration *obj, const char *servername, ConfigServer new_server, char **errmsg) |
| Change the settings from the specified servername in the list of known usenet servers. |
|
| ConfigOpts | configuration_get_opts (Configuration *obj) |
| Retrieves the configuration options. |
|
| void | configuration_set_opts (Configuration *obj, ConfigOpts opts) |
| Set the configuration options. |
|
| ConfigGroupInfo | configuration_get_newsgroup_info (Configuration *obj, const char *servername, const char *newsgroup) |
| Get the details concerning the given server and newsgroup. |
|
| void | configuration_set_newsgroup_info (Configuration *obj, const char *servername, const char *newsgroup, ConfigGroupInfo info) |
| Set the details concerning the given server and newsgroup. |
|
| gboolean | configuration_load (Configuration *obj, char **errmsg) |
| Load all settings from a local file on the harddrive. |
|
| gboolean | configuration_save (Configuration *obj, char **errmsg) |
| Save all settings to a local file on the harddrive. |
|
| typedef struct _config_server_details ConfigServerDetails |
| typedef struct ConfigurationClass ConfigurationClass |
| gboolean configuration_add_server | ( | Configuration * | obj, | |
| ConfigServer | new_server, | |||
| char ** | errmsg | |||
| ) |
Add a new server to the list of known usenet servers.
| obj | The configuration object | |
| new_server | The structure containing the settings of the new server | |
| errmsg | If an error occurs, an error message will be set in this variable |
| gboolean configuration_del_server | ( | Configuration * | obj, | |
| const char * | servername, | |||
| char ** | errmsg | |||
| ) |
Delete the settings from the specified servername from the list of known usenet servers.
| obj | The configuration object | |
| servername | The name of the server whose settings need to be removed | |
| errmsg | If an error occurs, an error message will be set in this variable |
| void configuration_destroy | ( | Configuration * | obj | ) |
| gboolean configuration_edit_server | ( | Configuration * | obj, | |
| const char * | servername, | |||
| ConfigServer | new_server, | |||
| char ** | errmsg | |||
| ) |
Change the settings from the specified servername in the list of known usenet servers.
| obj | The configuration object | |
| servername | The name of the server whose settings need to be changed | |
| new_server | The new settings of the server which need to be saved | |
| errmsg | If an error occurs, an error message will be set in this variable |
| void configuration_free_avail_servers | ( | Configuration * | obj, | |
| GList * | servers | |||
| ) |
Frees the list returned by configuration_get_avail_servers().
| obj | The configuration object | |
| servers | A GList* containing g_malloc'ed char* strings with servernames |
| GList* configuration_get_avail_servers | ( | Configuration * | obj | ) |
Retrieve a list of all the available usenet servers.
| obj | The configuration object |
| ConfigGroupInfo configuration_get_newsgroup_info | ( | Configuration * | obj, | |
| const char * | servername, | |||
| const char * | newsgroup | |||
| ) |
Get the details concerning the given server and newsgroup.
| obj | The configuration object | |
| servername | The name of the server | |
| newsgroup | The name of the newsgroup |
| Configuration* configuration_get_object | ( | void | ) |
| ConfigOpts configuration_get_opts | ( | Configuration * | obj | ) |
Retrieves the configuration options.
| obj | The configuration object |
| ConfigServer* configuration_get_server_info | ( | Configuration * | obj, | |
| const char * | servername | |||
| ) |
Retrieve information about a specific usenet server.
| obj | The Configuration object | |
| servername | The name of the usenet server whose info should be lookup up |
| GType configuration_get_type | ( | void | ) |
| gboolean configuration_load | ( | Configuration * | obj, | |
| char ** | errmsg | |||
| ) |
Load all settings from a local file on the harddrive.
| obj | The configuration object | |
| errmsg | A pointer to a char* to save a possible error message |
| Configuration* configuration_new | ( | char ** | errmsg, | |
| char ** | warnings | |||
| ) |
| gboolean configuration_save | ( | Configuration * | obj, | |
| char ** | errmsg | |||
| ) |
Save all settings to a local file on the harddrive.
| obj | The configuration object | |
| errmsg | A pointer to a char* to save a possible error message |
| void configuration_set_newsgroup_info | ( | Configuration * | obj, | |
| const char * | servername, | |||
| const char * | newsgroup, | |||
| ConfigGroupInfo | info | |||
| ) |
Set the details concerning the given server and newsgroup.
| obj | The configuration object | |
| servername | The name of the server | |
| newsgroup | The name of the newsgroup | |
| info | Structure containing the details |
| void configuration_set_opts | ( | Configuration * | obj, | |
| ConfigOpts | opts | |||
| ) |
Set the configuration options.
| obj | The configuration object | |
| opts | A structure containing configuration data |