comparison src/blist.h @ 10349:655c48791b3c

[gaim-migrate @ 11563] Removed "Use remote alias when no alias is set" Defaulted to: Conversation titles: No Conversation messages: Yes Buddy list: Yes I barely use MSN, and I use ICQ even less, so if someone thinks of better defaults let me know. These seem to be the best for me. The trick is that on MSN, the server alias usually is less helpful than the screenname and on ICQ, it's more helpful. An alternative is to have the prpl specify which to use, but that's dumb. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 13 Dec 2004 00:52:07 +0000
parents 64bc206c7473
children d962fc7778f1
comparison
equal deleted inserted replaced
10348:64bc206c7473 10349:655c48791b3c
551 551
552 /** 552 /**
553 * Returns the alias of a buddy. 553 * Returns the alias of a buddy.
554 * 554 *
555 * @param buddy The buddy whose name will be returned. 555 * @param buddy The buddy whose name will be returned.
556 * @return The alias (if set), server alias (if set and preference 556 * @return The alias (if set), server alias (if set),
557 * is to display server aliases), or NULL. 557 * or NULL.
558 */ 558 */
559 const char *gaim_buddy_get_alias_only(GaimBuddy *buddy); 559 const char *gaim_buddy_get_alias_only(GaimBuddy *buddy);
560 560
561 561
562 /** 562 /**
568 * @return The appropriate name or alias, or NULL. 568 * @return The appropriate name or alias, or NULL.
569 * 569 *
570 */ 570 */
571 const char *gaim_buddy_get_contact_alias(GaimBuddy *buddy); 571 const char *gaim_buddy_get_contact_alias(GaimBuddy *buddy);
572 572
573 /**
574 * Returns the correct alias for this user, ignoring server aliases. Used
575 * when a user-recognizable name is required. In order: buddy's alias; buddy's
576 * contact alias; buddy's user name.
577 *
578 * @param buddy The buddy whose alias will be returned.
579 * @return The appropriate name or alias.
580 */
581 const char *gaim_buddy_get_local_alias(GaimBuddy *buddy);
573 582
574 /** 583 /**
575 * Returns the correct name to display for a buddy. In order of precedence: 584 * Returns the correct name to display for a buddy. In order of precedence:
576 * the buddy's alias; the buddy's server alias; the buddy's contact alias; 585 * the buddy's alias; the buddy's server alias; the buddy's contact alias;
577 * the buddy's user name. 586 * the buddy's user name.
714 723
715 /****************************************************************************************/ 724 /****************************************************************************************/
716 /** @name Buddy list file management API */ 725 /** @name Buddy list file management API */
717 /****************************************************************************************/ 726 /****************************************************************************************/
718 727
719 /*@{*/
720 /** 728 /**
721 * Parses the toc-style buddy list used in older versions of Gaim and for SSI in toc.c 729 * Parses the toc-style buddy list used in older versions of Gaim and for SSI in toc.c
722 * 730 *
723 * @param account This is the account that the buddies and groups from config will get added to 731 * @param account This is the account that the buddies and groups from config will get added to
724 * @param config This is the toc-style buddy list data 732 * @param config This is the toc-style buddy list data
728 736
729 /** 737 /**
730 * Loads the buddy list from ~/.gaim/blist.xml. 738 * Loads the buddy list from ~/.gaim/blist.xml.
731 */ 739 */
732 void gaim_blist_load(); 740 void gaim_blist_load();
733
734 /**
735 * Force an immediate write of the buddy list. Normally the buddy list is
736 * saved automatically a few seconds after a change is made.
737 */
738 void gaim_blist_sync();
739 741
740 /** 742 /**
741 * Requests from the user information needed to add a buddy to the 743 * Requests from the user information needed to add a buddy to the
742 * buddy list. 744 * buddy list.
743 * 745 *