comparison src/conversation.h @ 8155:77d1252b3803

[gaim-migrate @ 8867] Patch by Etan Reisner. The tabs now stay green when they are supposed to, and the offline accounts in account drop-down lists are now greyed, like in the accounts window. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 21 Jan 2004 03:22:52 +0000
parents fa6395637e2c
children e283be34aadf
comparison
equal deleted inserted replaced
8154:064ecf11a36a 8155:77d1252b3803
66 * Conversation update type. 66 * Conversation update type.
67 */ 67 */
68 typedef enum 68 typedef enum
69 { 69 {
70 GAIM_CONV_UPDATE_ADD = 0, /**< The buddy associated with the conversation 70 GAIM_CONV_UPDATE_ADD = 0, /**< The buddy associated with the conversation
71 was added. */ 71 was added. */
72 GAIM_CONV_UPDATE_REMOVE, /**< The buddy associated with the conversation 72 GAIM_CONV_UPDATE_REMOVE, /**< The buddy associated with the conversation
73 was removed. */ 73 was removed. */
74 GAIM_CONV_UPDATE_ACCOUNT, /**< The gaim_account was changed. */ 74 GAIM_CONV_UPDATE_ACCOUNT, /**< The gaim_account was changed. */
75 GAIM_CONV_UPDATE_TYPING, /**< The typing state was updated. */ 75 GAIM_CONV_UPDATE_TYPING, /**< The typing state was updated. */
76 GAIM_CONV_UPDATE_UNSEEN, /**< The unseen state was updated. */ 76 GAIM_CONV_UPDATE_UNSEEN, /**< The unseen state was updated. */
77 GAIM_CONV_UPDATE_LOGGING, /**< Logging for this conversation was 77 GAIM_CONV_UPDATE_LOGGING, /**< Logging for this conversation was
78 enabled or disabled. */ 78 enabled or disabled. */
79 GAIM_CONV_UPDATE_TOPIC, /**< The topic for a chat was updated. */ 79 GAIM_CONV_UPDATE_TOPIC, /**< The topic for a chat was updated. */
80 80
81 /* 81 /*
82 * XXX These need to go when we implement a more generic core/UI event 82 * XXX These need to go when we implement a more generic core/UI event
83 * system. 83 * system.
84 */ 84 */
85 GAIM_CONV_ACCOUNT_ONLINE, /**< One of the user's accounts went online. */ 85 GAIM_CONV_ACCOUNT_ONLINE, /**< One of the user's accounts went online. */
86 GAIM_CONV_ACCOUNT_OFFLINE, /**< One of the user's accounts went offline. */ 86 GAIM_CONV_ACCOUNT_OFFLINE, /**< One of the user's accounts went offline. */
87 GAIM_CONV_UPDATE_AWAY, /**< The other user went away. */ 87 GAIM_CONV_UPDATE_AWAY, /**< The other user went away. */
88 GAIM_CONV_UPDATE_ICON /**< The other user's buddy icon changed. */ 88 GAIM_CONV_UPDATE_ICON, /**< The other user's buddy icon changed. */
89 GAIM_CONV_UPDATE_TITLE
89 90
90 } GaimConvUpdateType; 91 } GaimConvUpdateType;
91 92
92 /** 93 /**
93 * The typing state of a user. 94 * The typing state of a user.
142 143
143 void (*switch_conversation)(GaimConvWindow *win, unsigned int index); 144 void (*switch_conversation)(GaimConvWindow *win, unsigned int index);
144 void (*add_conversation)(GaimConvWindow *win, GaimConversation *conv); 145 void (*add_conversation)(GaimConvWindow *win, GaimConversation *conv);
145 void (*remove_conversation)(GaimConvWindow *win, GaimConversation *conv); 146 void (*remove_conversation)(GaimConvWindow *win, GaimConversation *conv);
146 void (*move_conversation)(GaimConvWindow *win, GaimConversation *conv, 147 void (*move_conversation)(GaimConvWindow *win, GaimConversation *conv,
147 unsigned int newIndex); 148 unsigned int newIndex);
148 int (*get_active_index)(const GaimConvWindow *win); 149 int (*get_active_index)(const GaimConvWindow *win);
149 }; 150 };
150 151
151 /** 152 /**
152 * Conversation operations and events. 153 * Conversation operations and events.
156 */ 157 */
157 struct _GaimConversationUiOps 158 struct _GaimConversationUiOps
158 { 159 {
159 void (*destroy_conversation)(GaimConversation *conv); 160 void (*destroy_conversation)(GaimConversation *conv);
160 void (*write_chat)(GaimConversation *conv, const char *who, 161 void (*write_chat)(GaimConversation *conv, const char *who,
161 const char *message, GaimMessageFlags flags, 162 const char *message, GaimMessageFlags flags,
162 time_t mtime); 163 time_t mtime);
163 void (*write_im)(GaimConversation *conv, const char *who, 164 void (*write_im)(GaimConversation *conv, const char *who,
164 const char *message, GaimMessageFlags flags, 165 const char *message, GaimMessageFlags flags,
165 time_t mtime); 166 time_t mtime);
166 void (*write_conv)(GaimConversation *conv, const char *who, 167 void (*write_conv)(GaimConversation *conv, const char *who,
167 const char *message, GaimMessageFlags flags, 168 const char *message, GaimMessageFlags flags,
168 time_t mtime); 169 time_t mtime);
169 170
170 void (*chat_add_user)(GaimConversation *conv, const char *user); 171 void (*chat_add_user)(GaimConversation *conv, const char *user);
171 void (*chat_add_users)(GaimConversation *conv, GList *users); 172 void (*chat_add_users)(GaimConversation *conv, GList *users);
172 void (*chat_rename_user)(GaimConversation *conv, 173 void (*chat_rename_user)(GaimConversation *conv,
173 const char *old_name, const char *new_name); 174 const char *old_name, const char *new_name);
174 void (*chat_remove_user)(GaimConversation *conv, const char *user); 175 void (*chat_remove_user)(GaimConversation *conv, const char *user);
175 void (*chat_remove_users)(GaimConversation *conv, GList *users); 176 void (*chat_remove_users)(GaimConversation *conv, GList *users);
176 177
177 void (*set_title)(GaimConversation *conv, const char *title);
178 void (*update_progress)(GaimConversation *conv, float percent); 178 void (*update_progress)(GaimConversation *conv, float percent);
179 179
180 /* Events */ 180 /* Events */
181 void (*updated)(GaimConversation *conv, GaimConvUpdateType type); 181 void (*updated)(GaimConversation *conv, GaimConvUpdateType type);
182 }; 182 };