Mercurial > pidgin.yaz
annotate src/protocols/jabber/message.h @ 7936:b8b83826cc61
[gaim-migrate @ 8607]
Useless check.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 27 Dec 2003 01:31:10 +0000 |
parents | 0e4894b3e2a6 |
children | 6fca0d9cc98b |
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; | |
40 char *from; | |
41 char *to; | |
42 char *subject; | |
43 char *body; | |
44 char *xhtml; | |
45 char *password; | |
46 char *error; | |
47 enum { | |
48 JABBER_MESSAGE_EVENT_COMPOSING = 1 << 1 | |
49 } events; | |
7145 | 50 GList *etc; |
7014 | 51 } JabberMessage; |
52 | |
53 | |
54 void jabber_message_parse(JabberStream *js, xmlnode *packet); | |
55 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
|
56 GaimConvImFlags flags); |
7014 | 57 int jabber_message_send_chat(GaimConnection *gc, int id, const char *message); |
58 | |
59 int jabber_send_typing(GaimConnection *gc, const char *who, int typing); | |
60 | |
61 #endif /* _GAIM_JABBER_MESSAGE_H_ */ |