Mercurial > pidgin
annotate src/protocols/jabber/message.h @ 11454:201617d49573
[gaim-migrate @ 13693]
This commit includes a number of changes:
1. Aliases are now used consistently in chats. If the prpl uses unique screen names for chats (e.g. Jabber), then aliases are not used at all.
2. The chat list is now colorized to match the colors used in the chat itself.
3. Buddies are bolded in the chat user list.
4. Buddies are sorted above non-buddies in the chat user list.
5. The chat user list is ellipsized when possible (i.e. on GTK+ 2.6.0 or above).
6. I've accepted patch #1178248, by Matt Amato to add "buddy-added" and "buddy-removed" signals. These were used in my implementation of #3 and #4, to update the GUI when users are added or removed from the buddy list.
7. I've added a "blist-node-aliased" signal that is emitted when a buddy, contact, or chat is aliased.
8. Since it was hard to separate and I need it at some point, I'm letting it slip in... I've changed GaimConversation.log to be a GList named logs. This way, we can have multiple logs for a single conversation. This will be necessary to implement unnamed chat logging in some reasonable fasion (see my notes in the TODO file).
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 06 Sep 2005 03:04:07 +0000 |
parents | fe35f55ee984 |
children | 4d3119205a33 |
rev | line source |
---|---|
7014 | 1 /** |
2 * @file message.h Message handlers | |
3 * | |
4 * gaim | |
5 * | |
6 * Copyright (C) 2003 Nathan Walp <faceprint@faceprint.com> | |
7 * | |
8 * This program is free software; you can redistribute it and/or modify | |
9 * it under the terms of the GNU General Public License as published by | |
10 * the Free Software Foundation; either version 2 of the License, or | |
11 * (at your option) any later version. | |
12 * | |
13 * This program is distributed in the hope that it will be useful, | |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 * GNU General Public License for more details. | |
17 * | |
18 * You should have received a copy of the GNU General Public License | |
19 * along with this program; if not, write to the Free Software | |
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
21 */ | |
22 #ifndef _GAIM_JABBER_MESSAGE_H_ | |
23 #define _GAIM_JABBER_MESSAGE_H_ | |
24 | |
25 #include "jabber.h" | |
26 #include "xmlnode.h" | |
27 | |
28 typedef struct _JabberMessage { | |
29 JabberStream *js; | |
30 enum { | |
31 JABBER_MESSAGE_NORMAL, | |
32 JABBER_MESSAGE_CHAT, | |
33 JABBER_MESSAGE_GROUPCHAT, | |
34 JABBER_MESSAGE_HEADLINE, | |
35 JABBER_MESSAGE_ERROR, | |
36 JABBER_MESSAGE_GROUPCHAT_INVITE, | |
37 JABBER_MESSAGE_OTHER | |
38 } type; | |
39 time_t sent; | |
9584 | 40 gboolean delayed; |
7014 | 41 char *from; |
42 char *to; | |
43 char *subject; | |
44 char *body; | |
45 char *xhtml; | |
46 char *password; | |
47 char *error; | |
8400 | 48 char *thread_id; |
7014 | 49 enum { |
50 JABBER_MESSAGE_EVENT_COMPOSING = 1 << 1 | |
51 } events; | |
7145 | 52 GList *etc; |
7014 | 53 } JabberMessage; |
54 | |
7971 | 55 void jabber_message_free(JabberMessage *jm); |
56 | |
57 void jabber_message_send(JabberMessage *jm); | |
7014 | 58 |
59 void jabber_message_parse(JabberStream *js, xmlnode *packet); | |
60 int jabber_message_send_im(GaimConnection *gc, const char *who, const char *msg, | |
7118
bf630f7dfdcd
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7014
diff
changeset
|
61 GaimConvImFlags flags); |
7014 | 62 int jabber_message_send_chat(GaimConnection *gc, int id, const char *message); |
63 | |
64 int jabber_send_typing(GaimConnection *gc, const char *who, int typing); | |
65 | |
7971 | 66 |
7014 | 67 #endif /* _GAIM_JABBER_MESSAGE_H_ */ |