Mercurial > pidgin.yaz
comparison src/conversation.h @ 4491:3196d9044a45
[gaim-migrate @ 4766]
aim_user is dead. long live gaim_account.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Fri, 31 Jan 2003 13:03:47 +0000 |
parents | b30b0a02ada0 |
children | 9567b13d0e98 |
comparison
equal
deleted
inserted
replaced
4490:70b892694e0b | 4491:3196d9044a45 |
---|---|
65 { | 65 { |
66 GAIM_CONV_UPDATE_ADD = 0, /**< The buddy associated with the conversation | 66 GAIM_CONV_UPDATE_ADD = 0, /**< The buddy associated with the conversation |
67 was added. */ | 67 was added. */ |
68 GAIM_CONV_UPDATE_REMOVE, /**< The buddy associated with the conversation | 68 GAIM_CONV_UPDATE_REMOVE, /**< The buddy associated with the conversation |
69 was removed. */ | 69 was removed. */ |
70 GAIM_CONV_UPDATE_USER, /**< The aim_user was changed. */ | 70 GAIM_CONV_UPDATE_ACCOUNT, /**< The gaim_account was changed. */ |
71 GAIM_CONV_UPDATE_TYPING, /**< The typing state was updated. */ | 71 GAIM_CONV_UPDATE_TYPING, /**< The typing state was updated. */ |
72 GAIM_CONV_UPDATE_UNSEEN, /**< The unseen state was updated. */ | 72 GAIM_CONV_UPDATE_UNSEEN, /**< The unseen state was updated. */ |
73 GAIM_CONV_UPDATE_LOGGING, /**< Logging for this conversation was | 73 GAIM_CONV_UPDATE_LOGGING, /**< Logging for this conversation was |
74 enabled or disabled. */ | 74 enabled or disabled. */ |
75 GAIM_CONV_UPDATE_TOPIC, /**< The topic for a chat was updated. */ | 75 GAIM_CONV_UPDATE_TOPIC, /**< The topic for a chat was updated. */ |
195 */ | 195 */ |
196 struct gaim_conversation | 196 struct gaim_conversation |
197 { | 197 { |
198 GaimConversationType type; /**< The type of conversation. */ | 198 GaimConversationType type; /**< The type of conversation. */ |
199 | 199 |
200 struct aim_user *user; /**< The user using this conversation. */ | 200 struct gaim_account *account; /**< The user using this conversation. */ |
201 struct gaim_window *window; /**< The parent window. */ | 201 struct gaim_window *window; /**< The parent window. */ |
202 | 202 |
203 int conversation_pos; /**< The position in the window's list. */ | 203 int conversation_pos; /**< The position in the window's list. */ |
204 | 204 |
205 char *name; /**< The name of the conversation. */ | 205 char *name; /**< The name of the conversation. */ |
424 * @param name The name of the conversation. | 424 * @param name The name of the conversation. |
425 * | 425 * |
426 * @return The new conversation. | 426 * @return The new conversation. |
427 */ | 427 */ |
428 struct gaim_conversation *gaim_conversation_new(GaimConversationType type, | 428 struct gaim_conversation *gaim_conversation_new(GaimConversationType type, |
429 struct aim_user *user, | 429 struct gaim_account *account, |
430 const char *name); | 430 const char *name); |
431 | 431 |
432 /** | 432 /** |
433 * Destroys the specified conversation and removes it from the parent | 433 * Destroys the specified conversation and removes it from the parent |
434 * window. | 434 * window. |
468 */ | 468 */ |
469 struct gaim_conversation_ui_ops *gaim_conversation_get_ui_ops( | 469 struct gaim_conversation_ui_ops *gaim_conversation_get_ui_ops( |
470 struct gaim_conversation *conv); | 470 struct gaim_conversation *conv); |
471 | 471 |
472 /** | 472 /** |
473 * Sets the specified conversation's aim_user. | 473 * Sets the specified conversation's gaim_account. |
474 * | 474 * |
475 * This aim_user represents the user using gaim, not the person the user | 475 * This gaim_account represents the user using gaim, not the person the user |
476 * is having a conversation/chat/flame with. | 476 * is having a conversation/chat/flame with. |
477 * | 477 * |
478 * @param conv The conversation. | 478 * @param conv The conversation. |
479 * @param user The aim_user. | 479 * @param account The gaim_account. |
480 */ | 480 */ |
481 void gaim_conversation_set_user(struct gaim_conversation *conv, | 481 void gaim_conversation_set_account(struct gaim_conversation *conv, |
482 struct aim_user *user); | 482 struct gaim_account *account); |
483 | 483 |
484 /** | 484 /** |
485 * Returns the specified conversation's aim_user. | 485 * Returns the specified conversation's gaim_account. |
486 * | 486 * |
487 * This aim_user represents the user using gaim, not the person the user | 487 * This gaim_account represents the user using gaim, not the person the user |
488 * is having a conversation/chat/flame with. | 488 * is having a conversation/chat/flame with. |
489 * | 489 * |
490 * @param conv The conversation. | 490 * @param conv The conversation. |
491 * | 491 * |
492 * @return The conversation's aim_user. | 492 * @return The conversation's gaim_account. |
493 */ | 493 */ |
494 struct aim_user *gaim_conversation_get_user( | 494 struct gaim_account *gaim_conversation_get_account( |
495 const struct gaim_conversation *conv); | 495 const struct gaim_conversation *conv); |
496 | 496 |
497 /** | 497 /** |
498 * Returns the specified conversation's gaim_connection. | 498 * Returns the specified conversation's gaim_connection. |
499 * | 499 * |
686 | 686 |
687 /** | 687 /** |
688 * Finds a conversation with the specified name and user. | 688 * Finds a conversation with the specified name and user. |
689 * | 689 * |
690 * @param name The name of the conversation. | 690 * @param name The name of the conversation. |
691 * @param user The aim_user associated with the conversation. | 691 * @param account The gaim_account associated with the conversation. |
692 * | 692 * |
693 * @return The conversation if found, or @c NULL otherwise. | 693 * @return The conversation if found, or @c NULL otherwise. |
694 */ | 694 */ |
695 struct gaim_conversation *gaim_find_conversation_with_user( | 695 struct gaim_conversation *gaim_find_conversation_with_account( |
696 const char *name, const struct aim_user *user); | 696 const char *name, const struct gaim_account *account); |
697 | 697 |
698 /** | 698 /** |
699 * Writes to a conversation window. | 699 * Writes to a conversation window. |
700 * | 700 * |
701 * This function should not be used to write IM or chat messages. Use | 701 * This function should not be used to write IM or chat messages. Use |