Medium connectionPreferences

From TrillWiki

Jump to: navigation, search

The medium_connectionPreferences notification is triggered when the user wishes to modify the preferences associated with a particular connection.

Compatibility: 2.0 and higher

Contents

Syntax

callback(int window_id, char *icontrol, "medium_connectionPreferences", connection_entry_t *data, void *userData);

Note that all Trillian functions and notifications begin with a lower-case letter, despite the Wiki requirement that all pages start with a capital letter.

Parameters

Medium connectionPreferences utilitizes the connection_entry_t structure.

struct connection_entry_t {  
 	unsigned int			struct_size; 
 
 	char				*medium; 
 
 	int				connection_id; 
 
 	char				*name; 
 	char				*status; 
 
 	/* 2.0 
 	 */ 
 	char				*section; 
 	struct menu_entry_t		*menu_entry; 
 };



medium
The medium of the connection.
connection_id
The connection id associated with the current connection.
name
The name associated with the connection.


Return Value

Must return 0.

Remarks

The preferences can be accessed both from the connection area of Trillian and the account area, so you may receive a medium_accountPreferences as well at some point.


See also: medium_accountPreferences

Personal tools