![]() |
![]() |
![]() |
libempathy Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
EmpathyIrcNetwork; EmpathyIrcNetwork * empathy_irc_network_new (const gchar *name); GSList * empathy_irc_network_get_servers (EmpathyIrcNetwork *network); void empathy_irc_network_append_server (EmpathyIrcNetwork *network, EmpathyIrcServer *server); void empathy_irc_network_remove_server (EmpathyIrcNetwork *network, EmpathyIrcServer *server); void empathy_irc_network_set_server_position (EmpathyIrcNetwork *network, EmpathyIrcServer *server, gint pos);
EmpathyIrcNetwork * empathy_irc_network_new (const gchar *name);
Creates a new EmpathyIrcNetwork.
|
the name of the network |
Returns : |
a new EmpathyIrcNetwork |
GSList * empathy_irc_network_get_servers (EmpathyIrcNetwork *network);
Get the list of EmpathyIrcServer that belongs to this network. These servers are sorted according their priority. So the first one will be the first used when trying to connect to the network.
|
an EmpathyIrcNetwork |
Returns : |
a new GSList of refed EmpathyIrcServer. |
void empathy_irc_network_append_server (EmpathyIrcNetwork *network, EmpathyIrcServer *server);
Add an EmpathyIrcServer to the given EmpathyIrcNetwork. The server is added at the last position in network's servers list.
|
an EmpathyIrcNetwork |
|
the EmpathyIrcServer to add |
void empathy_irc_network_remove_server (EmpathyIrcNetwork *network, EmpathyIrcServer *server);
Remove an EmpathyIrcServer from the servers list of the given EmpathyIrcNetwork.
|
an EmpathyIrcNetwork |
|
the EmpathyIrcServer to remove |
void empathy_irc_network_set_server_position (EmpathyIrcNetwork *network, EmpathyIrcServer *server, gint pos);
Move an EmpathyIrcServer in the servers list of the given EmpathyIrcNetwork.
|
an EmpathyIrcNetwork |
|
the EmpathyIrcServer to move |
|
the position to move the server. If this is negative, or is larger than the number of servers in the list, the server is moved to the end of the list. |
"charset"
property"charset" gchar* : Read / Write / Construct
The charset to use on this network.
Default value: "UTF-8"
"name"
property"name" gchar* : Read / Write
The displayed name of this network.
Default value: NULL
"modified"
signalvoid user_function (EmpathyIrcNetwork *network, gpointer user_data) : Run Last / Has Details
Emitted when either a property or a server of the network is modified.
|
the object that received the signal |
|
user data set when the signal handler was connected. |