EmpathyIrcNetworkManager

EmpathyIrcNetworkManager

Synopsis

                    EmpathyIrcNetworkManager;
EmpathyIrcNetworkManager * empathy_irc_network_manager_new
                                                        (const gchar *global_file,
                                                         const gchar *user_file);
void                empathy_irc_network_manager_add     (EmpathyIrcNetworkManager *manager,
                                                         EmpathyIrcNetwork *network);
void                empathy_irc_network_manager_remove  (EmpathyIrcNetworkManager *manager,
                                                         EmpathyIrcNetwork *network);
GSList *            empathy_irc_network_manager_get_networks
                                                        (EmpathyIrcNetworkManager *manager);
EmpathyIrcNetwork * empathy_irc_network_manager_find_network_by_address
                                                        (EmpathyIrcNetworkManager *manager,
                                                         const gchar *address);

Object Hierarchy

  GObject
   +----EmpathyIrcNetworkManager

Properties

  "global-file"              gchar*                : Read / Write / Construct Only
  "user-file"                gchar*                : Read / Write / Construct Only

Description

Details

EmpathyIrcNetworkManager

typedef struct _EmpathyIrcNetworkManager EmpathyIrcNetworkManager;


empathy_irc_network_manager_new ()

EmpathyIrcNetworkManager * empathy_irc_network_manager_new
                                                        (const gchar *global_file,
                                                         const gchar *user_file);

Creates a new EmpathyIrcNetworkManager

global_file :

the path of the global networks file, or NULL

user_file :

the path of the user networks file, or NULL

Returns :

a new EmpathyIrcNetworkManager

empathy_irc_network_manager_add ()

void                empathy_irc_network_manager_add     (EmpathyIrcNetworkManager *manager,
                                                         EmpathyIrcNetwork *network);

Add an EmpathyIrcNetwork to the given EmpathyIrcNetworkManager.

manager :

an EmpathyIrcNetworkManager

network :

the EmpathyIrcNetwork to add

empathy_irc_network_manager_remove ()

void                empathy_irc_network_manager_remove  (EmpathyIrcNetworkManager *manager,
                                                         EmpathyIrcNetwork *network);

Remove an EmpathyIrcNetwork from the given EmpathyIrcNetworkManager.

manager :

an EmpathyIrcNetworkManager

network :

the EmpathyIrcNetwork to remove

empathy_irc_network_manager_get_networks ()

GSList *            empathy_irc_network_manager_get_networks
                                                        (EmpathyIrcNetworkManager *manager);

Get the list of EmpathyIrcNetwork associated with the given manager.

manager :

an EmpathyIrcNetworkManager

Returns :

a new GSList of refed EmpathyIrcNetwork

empathy_irc_network_manager_find_network_by_address ()

EmpathyIrcNetwork * empathy_irc_network_manager_find_network_by_address
                                                        (EmpathyIrcNetworkManager *manager,
                                                         const gchar *address);

Find the EmpathyIrcNetwork which owns an EmpathyIrcServer that has the given address.

manager :

an EmpathyIrcNetworkManager

address :

the server address to look for

Returns :

the found EmpathyIrcNetwork, or NULL if not found.

Property Details

The "global-file" property

  "global-file"              gchar*                : Read / Write / Construct Only

The path of the system-wide filename from which we have to load the networks list.

Default value: NULL


The "user-file" property

  "user-file"                gchar*                : Read / Write / Construct Only

The path of user's filename from which we have to load the networks list and to which we'll save his modifications.

Default value: NULL