comparison src/blist.h @ 7125:208cb260d7a7

[gaim-migrate @ 7692] as long as we're pissing off plugin developers... committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 02 Oct 2003 05:26:40 +0000
parents bf630f7dfdcd
children cb6bf374c7ee
comparison
equal deleted inserted replaced
7124:be4ca65b3b48 7125:208cb260d7a7
320 * @param account The account this chat will get added to 320 * @param account The account this chat will get added to
321 * @param alias The alias of the new chat 321 * @param alias The alias of the new chat
322 * @param components The info the prpl needs to join the chat 322 * @param components The info the prpl needs to join the chat
323 * @return A newly allocated chat 323 * @return A newly allocated chat
324 */ 324 */
325 GaimChat *gaim_blist_chat_new(GaimAccount *account, const char *alias, GHashTable *components); 325 GaimChat *gaim_chat_new(GaimAccount *account, const char *alias, GHashTable *components);
326 326
327 /** 327 /**
328 * Gets the alias of the chat, or the chat name if the alias does not exist 328 * Gets the alias of the chat, or the chat name if the alias does not exist
329 * 329 *
330 * @param chat The chat 330 * @param chat The chat
331 * @return The display name of the chat 331 * @return The display name of the chat
332 */ 332 */
333 char *gaim_blist_chat_get_display_name(GaimChat *chat); 333 char *gaim_chat_get_display_name(GaimChat *chat);
334 334
335 /** 335 /**
336 * Adds a new chat to the buddy list. 336 * Adds a new chat to the buddy list.
337 * 337 *
338 * The chat will be inserted right after node or appended to the end 338 * The chat will be inserted right after node or appended to the end
517 * Returns the correct name to display for a blist chat. 517 * Returns the correct name to display for a blist chat.
518 * 518 *
519 * @param chat The chat whose name will be returned. 519 * @param chat The chat whose name will be returned.
520 * @return The alias (if set), or first component value. 520 * @return The alias (if set), or first component value.
521 */ 521 */
522 const char *gaim_blist_chat_get_name(GaimChat *chat); 522 const char *gaim_chat_get_name(GaimChat *chat);
523 523
524 /** 524 /**
525 * Finds the buddy struct given a screenname and an account 525 * Finds the buddy struct given a screenname and an account
526 * 526 *
527 * @param name The buddy's screenname 527 * @param name The buddy's screenname
584 * 584 *
585 * @param chat The chat. 585 * @param chat The chat.
586 * 586 *
587 * @return The parent group, or @c NULL if the chat is not in a group. 587 * @return The parent group, or @c NULL if the chat is not in a group.
588 */ 588 */
589 GaimGroup *gaim_blist_chat_get_group(GaimChat *chat); 589 GaimGroup *gaim_chat_get_group(GaimChat *chat);
590 590
591 /** 591 /**
592 * Returns the group of which the buddy is a member. 592 * Returns the group of which the buddy is a member.
593 * 593 *
594 * @param buddy The buddy 594 * @param buddy The buddy
718 * 718 *
719 * @param g The group to retrieve data from 719 * @param g The group to retrieve data from
720 * @param key The key to retrieve the data with 720 * @param key The key to retrieve the data with
721 * @return The associated data or NULL if no data is associated 721 * @return The associated data or NULL if no data is associated
722 */ 722 */
723 char *gaim_group_get_setting(GaimGroup *g, const char *key); 723 const char *gaim_group_get_setting(GaimGroup *g, const char *key);
724 724
725 /** 725 /**
726 * Associates some data with the chat in the xml buddy list 726 * Associates some data with the chat in the xml buddy list
727 * 727 *
728 * @param c The chat the data is associated with 728 * @param c The chat the data is associated with
729 * @param key The key used to retrieve the data 729 * @param key The key used to retrieve the data
730 * @param value The data to set 730 * @param value The data to set
731 */ 731 */
732 void gaim_blist_chat_set_setting(GaimChat *c, const char *key, const char *value); 732 void gaim_chat_set_setting(GaimChat *c, const char *key, const char *value);
733 733
734 /** 734 /**
735 * Retrieves data from the XML buddy list set by gaim_blist_chat_set_setting()) 735 * Retrieves data from the XML buddy list set by gaim_chat_set_setting())
736 * 736 *
737 * @param c The chat to retrieve data from 737 * @param c The chat to retrieve data from
738 * @param key The key to retrieve the data with 738 * @param key The key to retrieve the data with
739 * 739 *
740 * @return The associated data or NULL if no data is associated 740 * @return The associated data or NULL if no data is associated
741 */ 741 */
742 char *gaim_blist_chat_get_setting(GaimChat *c, const char *key); 742 const char *gaim_chat_get_setting(GaimChat *c, const char *key);
743 743
744 /** 744 /**
745 * Associates some data with the buddy in the xml buddy list 745 * Associates some data with the buddy in the xml buddy list
746 * 746 *
747 * @param b The buddy the data is associated with 747 * @param b The buddy the data is associated with
755 * 755 *
756 * @param b The buddy to retrieve data from 756 * @param b The buddy to retrieve data from
757 * @param key The key to retrieve the data with 757 * @param key The key to retrieve the data with
758 * @return The associated data or NULL if no data is associated 758 * @return The associated data or NULL if no data is associated
759 */ 759 */
760 char *gaim_buddy_get_setting(GaimBuddy *b, const char *key); 760 const char *gaim_buddy_get_setting(GaimBuddy *b, const char *key);
761 761
762 /*@}*/ 762 /*@}*/
763 763
764 /**************************************************************************/ 764 /**************************************************************************/
765 /** @name UI Registration Functions */ 765 /** @name UI Registration Functions */