diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-12-06 22:57:21 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-12-06 22:57:21 +0100 |
commit | 00a3f990b3e512a7dc14343dd522a3a8497c4762 (patch) | |
tree | 4ab71d4301254e1f8dbf62355a86c2e2ec926eba /doc | |
parent | 23c70b013bef27399911f14dae918afc702a3937 (diff) | |
download | weechat-00a3f990b3e512a7dc14343dd522a3a8497c4762.zip |
api: add new function nicklist_get_next_item
Diffstat (limited to 'doc')
-rw-r--r-- | doc/en/weechat_plugin_api.en.txt | 51 | ||||
-rw-r--r-- | doc/fr/weechat_plugin_api.fr.txt | 52 | ||||
-rw-r--r-- | doc/it/weechat_plugin_api.it.txt | 54 |
3 files changed, 157 insertions, 0 deletions
diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt index ca59b681e..3c5cb4c94 100644 --- a/doc/en/weechat_plugin_api.en.txt +++ b/doc/en/weechat_plugin_api.en.txt @@ -10129,6 +10129,57 @@ weechat.nicklist_remove_all(buffer) weechat.nicklist_remove_all(my_buffer) ---------------------------------------- +weechat_nicklist_get_next_item +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +_New in version 0.3.7._ + +Get next group or nick from nicklist (mainly used to display nicklist). + +Prototype: + +[source,C] +---------------------------------------- +void gui_nicklist_get_next_item (struct t_gui_buffer *buffer, + struct t_gui_nick_group **group, + struct t_gui_nick **nick); +---------------------------------------- + +Arguments: + +* 'buffer': buffer pointer +* 'group': pointer on pointer to group +* 'nick': pointer on pointer to nick + +C example: + +[source,C] +---------------------------------------- +struct t_gui_nick_group *ptr_group; +struct t_gui_nick *ptr_nick; + +ptr_group = NULL; +ptr_nick = NULL; +gui_nicklist_get_next_item (buffer, &ptr_group, &ptr_nick); +while (ptr_group || ptr_nick) +{ + if (ptr_nick) + { + /* nick */ + /* ... */ + } + else + { + /* group */ + /* ... */ + } + gui_nicklist_get_next_item (buffer, &ptr_group, &ptr_nick); +} +---------------------------------------- + +[NOTE] +This function is not available in scripting API. + weechat_nicklist_group_get_integer ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/doc/fr/weechat_plugin_api.fr.txt b/doc/fr/weechat_plugin_api.fr.txt index 82fc16e41..a9cc46294 100644 --- a/doc/fr/weechat_plugin_api.fr.txt +++ b/doc/fr/weechat_plugin_api.fr.txt @@ -10304,6 +10304,58 @@ weechat.nicklist_remove_all(buffer) weechat.nicklist_remove_all(my_buffer) ---------------------------------------- +weechat_nicklist_get_next_item +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +_Nouveau dans la version 0.3.7._ + +Retourne le prochain groupe ou pseudo de la liste des pseudos (utilisé +principalement pour afficher la liste des pseudos). + +Prototype : + +[source,C] +---------------------------------------- +void gui_nicklist_get_next_item (struct t_gui_buffer *buffer, + struct t_gui_nick_group **group, + struct t_gui_nick **nick); +---------------------------------------- + +Paramètres : + +* 'buffer' : pointeur vers le tampon +* 'group' : pointeur vers un pointeur sur le groupe +* 'nick' : pointeur vers un pointeur sur le pseudo + +Exemple en C : + +[source,C] +---------------------------------------- +struct t_gui_nick_group *ptr_group; +struct t_gui_nick *ptr_nick; + +ptr_group = NULL; +ptr_nick = NULL; +gui_nicklist_get_next_item (buffer, &ptr_group, &ptr_nick); +while (ptr_group || ptr_nick) +{ + if (ptr_nick) + { + /* pseudo */ + /* ... */ + } + else + { + /* groupe */ + /* ... */ + } + gui_nicklist_get_next_item (buffer, &ptr_group, &ptr_nick); +} +---------------------------------------- + +[NOTE] +Cette fonction n'est pas disponible dans l'API script. + weechat_nicklist_group_get_integer ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/doc/it/weechat_plugin_api.it.txt b/doc/it/weechat_plugin_api.it.txt index 019218728..d9f87a51c 100644 --- a/doc/it/weechat_plugin_api.it.txt +++ b/doc/it/weechat_plugin_api.it.txt @@ -10211,6 +10211,60 @@ weechat.nicklist_remove_all(buffer) weechat.nicklist_remove_all(my_buffer) ---------------------------------------- +weechat_nicklist_get_next_item +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +_Novità nella versione 0.3.7._ + +// TRANSLATION MISSING +Get next group or nick from nicklist (mainly used to display nicklist). + +Prototipo: + +[source,C] +---------------------------------------- +void gui_nicklist_get_next_item (struct t_gui_buffer *buffer, + struct t_gui_nick_group **group, + struct t_gui_nick **nick); +---------------------------------------- + +Argomenti: + +* 'buffer': puntatore al buffer +// TRANSLATION MISSING +* 'group': pointer on pointer to group +// TRANSLATION MISSING +* 'nick': pointer on pointer to nick + +Esempio in C: + +[source,C] +---------------------------------------- +struct t_gui_nick_group *ptr_group; +struct t_gui_nick *ptr_nick; + +ptr_group = NULL; +ptr_nick = NULL; +gui_nicklist_get_next_item (buffer, &ptr_group, &ptr_nick); +while (ptr_group || ptr_nick) +{ + if (ptr_nick) + { + /* nick */ + /* ... */ + } + else + { + /* group */ + /* ... */ + } + gui_nicklist_get_next_item (buffer, &ptr_group, &ptr_nick); +} +---------------------------------------- + +[NOTE] +Questa funzione non è disponibile nelle API per lo scripting. + weechat_nicklist_group_get_integer ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |