comparison src/conversation.h @ 11664:38bbb0f15453

[gaim-migrate @ 13949] "This patch updates the colors of the tabs correctly. I have removed the tab-highlighting stuff from the core to the UI." Sadrul Habib Chowdhury committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Fri, 14 Oct 2005 11:30:37 +0000
parents 9b3833da6840
children 04e0189bb519
comparison
equal deleted inserted replaced
11663:03db7f366ae1 11664:38bbb0f15453
48 GAIM_CONV_TYPE_CHAT, /**< Chat room. */ 48 GAIM_CONV_TYPE_CHAT, /**< Chat room. */
49 GAIM_CONV_TYPE_MISC, /**< A misc. conversation. */ 49 GAIM_CONV_TYPE_MISC, /**< A misc. conversation. */
50 GAIM_CONV_TYPE_ANY /**< Any type of conversation. */ 50 GAIM_CONV_TYPE_ANY /**< Any type of conversation. */
51 51
52 } GaimConversationType; 52 } GaimConversationType;
53
54 /**
55 * Unseen text states.
56 */
57 typedef enum
58 {
59 GAIM_UNSEEN_NONE = 0, /**< No unseen text in the conversation. */
60 GAIM_UNSEEN_TEXT, /**< Unseen text in the conversation. */
61 GAIM_UNSEEN_NICK, /**< Unseen text and the nick was said. */
62 GAIM_UNSEEN_EVENT /**< Unseen events in the conversation. */
63
64 } GaimUnseenState;
65 53
66 /** 54 /**
67 * Conversation update type. 55 * Conversation update type.
68 */ 56 */
69 typedef enum 57 typedef enum
244 232
245 GList *logs; /**< This conversation's logs */ 233 GList *logs; /**< This conversation's logs */
246 234
247 GList *send_history; /**< The send history. */ 235 GList *send_history; /**< The send history. */
248 236
249 GaimUnseenState unseen; /**< The unseen tab state. */
250
251 union 237 union
252 { 238 {
253 GaimConvIm *im; /**< IM-specific data. */ 239 GaimConvIm *im; /**< IM-specific data. */
254 GaimConvChat *chat; /**< Chat-specific data. */ 240 GaimConvChat *chat; /**< Chat-specific data. */
255 void *misc; /**< Misc. data. */ 241 void *misc; /**< Misc. data. */
393 * user's alias. 379 * user's alias.
394 * 380 *
395 * @param conv The conversation. 381 * @param conv The conversation.
396 */ 382 */
397 void gaim_conversation_autoset_title(GaimConversation *conv); 383 void gaim_conversation_autoset_title(GaimConversation *conv);
398
399 /**
400 * Sets the conversation's unseen state.
401 *
402 * @param conv The conversation.
403 * @param state The new unseen state.
404 */
405 void gaim_conversation_set_unseen(GaimConversation *conv,
406 GaimUnseenState state);
407
408 /**
409 * Returns the conversation's unseen state.
410 *
411 * @param conv The conversation.
412 *
413 * @return The conversation's unseen state.
414 */
415 GaimUnseenState gaim_conversation_get_unseen(const GaimConversation *conv);
416 384
417 /** 385 /**
418 * Sets the specified conversation's name. 386 * Sets the specified conversation's name.
419 * 387 *
420 * @param conv The conversation. 388 * @param conv The conversation.