Mercurial > pidgin
comparison src/list.h @ 5142:94f11800cac5
[gaim-migrate @ 5506]
gave groups the same neat setting stuff that buddies have, and put it to use
by having groups remember if they're collapsed.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Wed, 16 Apr 2003 21:49:02 +0000 |
parents | b37d7d09ec83 |
children |
comparison
equal
deleted
inserted
replaced
5141:5736055629cb | 5142:94f11800cac5 |
---|---|
92 * A group. This contains everything Gaim will ever need to know about a group. | 92 * A group. This contains everything Gaim will ever need to know about a group. |
93 */ | 93 */ |
94 struct group { | 94 struct group { |
95 GaimBlistNode node; /**< The node that this group inherits from */ | 95 GaimBlistNode node; /**< The node that this group inherits from */ |
96 char *name; /**< The name of this group. */ | 96 char *name; /**< The name of this group. */ |
97 GHashTable *settings; /**< per-group settings from the XML buddy list, set by plugins and the likes. */ | |
97 }; | 98 }; |
98 | 99 |
99 | 100 |
100 /** | 101 /** |
101 * The Buddy List | 102 * The Buddy List |
414 * Loads the buddy list from ~/.gaim/blist.xml. | 415 * Loads the buddy list from ~/.gaim/blist.xml. |
415 */ | 416 */ |
416 void gaim_blist_load(); | 417 void gaim_blist_load(); |
417 | 418 |
418 /** | 419 /** |
420 * Associates some data with the group in the xml buddy list | |
421 * | |
422 * @param g The group the data is associated with | |
423 * @param key The key used to retrieve the data | |
424 * @param value The data to set | |
425 */ | |
426 void gaim_group_set_setting(struct group *g, const char *key, const char *value); | |
427 | |
428 /** | |
429 * Retrieves data from the XML buddy list set by gaim_group_set_setting()) | |
430 * | |
431 * @param g The group to retrieve data from | |
432 * @param key The key to retrieve the data with | |
433 * @return The associated data or NULL if no data is associated | |
434 */ | |
435 char *gaim_group_get_setting(struct group *g, const char *key); | |
436 | |
437 | |
438 /** | |
419 * Associates some data with the buddy in the xml buddy list | 439 * Associates some data with the buddy in the xml buddy list |
420 * | 440 * |
421 * @param b The buddy the data is associated with | 441 * @param b The buddy the data is associated with |
422 * @param key The key used to retrieve the data | 442 * @param key The key used to retrieve the data |
423 * @param value The data to set | 443 * @param value The data to set |