comparison src/blist.h @ 9620:c001be3c330e

[gaim-migrate @ 10464] Changes to those get_alias functions in blist.c from Christopher (siege) O'Brien: Renames gaim_get_buddy_alias to gaim_buddy_get_alias Renames gaim_get_buddy_alias_only to _gaim_buddy_get_alias_only Adds function gaim_buddy_get_contact_alias, which looks up a buddy's appropriate display name by order of: buddy alias; contact alias; server alias; buddy name. Note that the buddy alias is still the top-priority. Changed conversation.c to use _get_contact_alias rather than _get_alias The end result of this is that aliasing the contact will result in conversations with any of that contact's buddies using the contact alias. This allows people like myself to no longer have to alias each buddy to the same alias in order to achieve the same effect. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 31 Jul 2004 21:29:40 +0000
parents eae7e049d639
children 8ad07c6f6522
comparison
equal deleted inserted replaced
9619:da88e2cd5c53 9620:c001be3c330e
527 * Returns the alias of a buddy. 527 * Returns the alias of a buddy.
528 * 528 *
529 * @param buddy The buddy whose name will be returned. 529 * @param buddy The buddy whose name will be returned.
530 * @return The alias (if set), server alias (if option is set), or NULL. 530 * @return The alias (if set), server alias (if option is set), or NULL.
531 */ 531 */
532 const char *gaim_get_buddy_alias_only(GaimBuddy *buddy); 532 const char *gaim_buddy_get_alias_only(GaimBuddy *buddy);
533 533
534 534
535 /** 535 /**
536 * Returns the correct name to display for a buddy. 536 * Returns the correct name to display for a buddy, taking the contact alias
537 * into account. In order of precedence: the buddy's alias; the buddy's
538 * contact alias; the buddy's server alias; the buddy's user name.
539 *
540 * @param buddy The buddy whose name will be returned
541 * @return The appropriate name or alias, or "Unknown"
542 *
543 */
544 const char *gaim_buddy_get_contact_alias(GaimBuddy *buddy);
545
546
547 /**
548 * Returns the correct name to display for a buddy. In order of precedence:
549 * the buddy's alias; the buddy's server alias; the buddy's contact alias;
550 * the buddy's user name.
537 * 551 *
538 * @param buddy The buddy whose name will be returned. 552 * @param buddy The buddy whose name will be returned.
539 * @return The alias (if set), server alias (if option is set), screenname, or "Unknown" 553 * @return The appropriate name or alias, or "Unknown"
540 */ 554 */
541 const char *gaim_get_buddy_alias(GaimBuddy *buddy); 555 const char *gaim_buddy_get_alias(GaimBuddy *buddy);
542 556
543 /** 557 /**
544 * Returns the correct name to display for a blist chat. 558 * Returns the correct name to display for a blist chat.
545 * 559 *
546 * @param chat The chat whose name will be returned. 560 * @param chat The chat whose name will be returned.