comparison src/blist.h @ 10378:28135f8c226d

[gaim-migrate @ 11603] I call this lazy contact priority computation. Be careful not to use contact->priority directly, unless you know what you're doing. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Wed, 15 Dec 2004 02:29:58 +0000
parents d962fc7778f1
children f7f06cb69d5e
comparison
equal deleted inserted replaced
10377:a7a4db67040c 10378:28135f8c226d
129 char *alias; /**< The user-set alias of the contact */ 129 char *alias; /**< The user-set alias of the contact */
130 int totalsize; /**< The number of buddies in this contact */ 130 int totalsize; /**< The number of buddies in this contact */
131 int currentsize; /**< The number of buddies in this contact corresponding to online accounts */ 131 int currentsize; /**< The number of buddies in this contact corresponding to online accounts */
132 int online; /**< The number of buddies in this contact who are currently online */ 132 int online; /**< The number of buddies in this contact who are currently online */
133 GaimBuddy *priority; /**< The "top" buddy for this contact */ 133 GaimBuddy *priority; /**< The "top" buddy for this contact */
134 gboolean priority_valid; /**< Is priority valid? */
134 }; 135 };
135 136
136 137
137 /** 138 /**
138 * A group. This contains everything Gaim will ever need to know about a group. 139 * A group. This contains everything Gaim will ever need to know about a group.
509 * 510 *
510 * @return TRUE if there are any buddies from account in the contact, or FALSE otherwise. 511 * @return TRUE if there are any buddies from account in the contact, or FALSE otherwise.
511 */ 512 */
512 gboolean gaim_contact_on_account(GaimContact *contact, GaimAccount *account); 513 gboolean gaim_contact_on_account(GaimContact *contact, GaimAccount *account);
513 514
514 515 /**
515 /** 516 * Invalidates the priority buddy so that the next call to
516 * Re-calculates the priority buddy for a contact. 517 * gaim_contact_get_priority_buddy recomputes it.
517 * 518 *
518 * @param contact The contact. 519 * @param contact The contact
519 */ 520 * @return The highest priority buddy
520 void gaim_contact_compute_priority_buddy(GaimContact *contact); 521 */
521 522 void gaim_contact_invalidate_priority_buddy(GaimContact *contact);
522 /** 523 /**
523 * Removes a buddy from the buddy list and frees the memory allocated to it. 524 * Removes a buddy from the buddy list and frees the memory allocated to it.
524 * 525 *
525 * @param buddy The buddy to be removed 526 * @param buddy The buddy to be removed
526 */ 527 */