comparison src/blist.h @ 6755:ea289c6f2382

[gaim-migrate @ 7287] fix a bug with removing buddies, and the start of support for aliasing contacts committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 05 Sep 2003 17:04:39 +0000
parents a781689ca455
children 549a0bbbf73d
comparison
equal deleted inserted replaced
6754:47e49e3c00f4 6755:ea289c6f2382
103 103
104 /** 104 /**
105 * A contact. This contains everything Gaim will ever need to know about a contact. 105 * A contact. This contains everything Gaim will ever need to know about a contact.
106 */ 106 */
107 struct _GaimContact { 107 struct _GaimContact {
108 GaimBlistNode node; /**< The node that this contact inherits from. */ 108 GaimBlistNode node; /**< The node that this contact inherits from. */
109 int totalsize; /**< The number of buddies in this contact */ 109 char *alias; /**< The user-set alias of the contact */
110 int currentsize; /**< The number of buddies in this contact corresponding to online accounts */ 110 int totalsize; /**< The number of buddies in this contact */
111 int online; /**< The number of buddies in this contact who are currently online */ 111 int currentsize; /**< The number of buddies in this contact corresponding to online accounts */
112 int online; /**< The number of buddies in this contact who are currently online */
112 }; 113 };
113 114
114 115
115 /** 116 /**
116 * A group. This contains everything Gaim will ever need to know about a group. 117 * A group. This contains everything Gaim will ever need to know about a group.
406 * @return The highest priority buddy 407 * @return The highest priority buddy
407 */ 408 */
408 GaimBuddy *gaim_contact_get_priority_buddy(GaimContact *contact); 409 GaimBuddy *gaim_contact_get_priority_buddy(GaimContact *contact);
409 410
410 /** 411 /**
412 * Sets the alias for a contact.
413 *
414 * @param contact The contact
415 * @param alias The alias to set, or NULL to unset
416 */
417 void gaim_contact_set_alias(GaimContact *contact, const char *alias);
418
419 /**
420 * Gets the alias for a contact.
421 *
422 * @param contact The contact
423 * @return The alias, or NULL if it is not set.
424 */
425 const char *gaim_contact_get_alias(GaimContact *contact);
426
427 /**
411 * Removes a buddy from the buddy list and frees the memory allocated to it. 428 * Removes a buddy from the buddy list and frees the memory allocated to it.
412 * 429 *
413 * @param buddy The buddy to be removed 430 * @param buddy The buddy to be removed
414 */ 431 */
415 void gaim_blist_remove_buddy(GaimBuddy *buddy); 432 void gaim_blist_remove_buddy(GaimBuddy *buddy);