Sat, 22 Nov 2008 18:26:45 +0000
Sprinkle around more support for xml:lang on JabberIdentities
Change the IPC has_feature function to take a PurpleAccount and look up
the caps via the jbr
| 7014 | 1 | /** |
| 2 | * @file message.h Message handlers | |
| 3 | * | |
| 15884 | 4 | * purple |
| 7014 | 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 | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
15884
diff
changeset
|
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 7014 | 21 | */ |
| 15884 | 22 | #ifndef _PURPLE_JABBER_MESSAGE_H_ |
| 23 | #define _PURPLE_JABBER_MESSAGE_H_ | |
| 7014 | 24 | |
|
15709
b58646e3ce63
Sending XEP 85 'gone' messages
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
25 | #include "buddy.h" |
| 7014 | 26 | #include "jabber.h" |
| 27 | #include "xmlnode.h" | |
| 28 | ||
| 29 | typedef struct _JabberMessage { | |
| 30 | JabberStream *js; | |
| 31 | enum { | |
| 32 | JABBER_MESSAGE_NORMAL, | |
| 33 | JABBER_MESSAGE_CHAT, | |
| 34 | JABBER_MESSAGE_GROUPCHAT, | |
| 35 | JABBER_MESSAGE_HEADLINE, | |
| 36 | JABBER_MESSAGE_ERROR, | |
| 37 | JABBER_MESSAGE_GROUPCHAT_INVITE, | |
|
17779
773326802e26
Fixed whitespace to match the coding convention used in libpurple
Andreas Monitzer <am@adiumx.com>
parents:
17768
diff
changeset
|
38 | JABBER_MESSAGE_EVENT, |
| 7014 | 39 | JABBER_MESSAGE_OTHER |
| 40 | } type; | |
| 41 | time_t sent; | |
|
9584
1a6198375303
[gaim-migrate @ 10427]
Nathan Fredrickson <nathan@silverorange.com>
parents:
8400
diff
changeset
|
42 | gboolean delayed; |
|
17822
1a183f3fa9d7
disapproval of revision 'd52c12703a8e67c41c7f95a2cae7f16ab426ad76'
Andreas Monitzer <am@adiumx.com>
parents:
17821
diff
changeset
|
43 | gboolean hasBuzz; |
| 13484 | 44 | char *id; |
| 7014 | 45 | char *from; |
| 46 | char *to; | |
| 47 | char *subject; | |
| 48 | char *body; | |
| 49 | char *xhtml; | |
| 50 | char *password; | |
| 51 | char *error; | |
| 8400 | 52 | char *thread_id; |
| 7014 | 53 | enum { |
| 13708 | 54 | JM_TS_NONE = 0, |
| 55 | JM_TS_JEP_0022 = 0x1, | |
| 56 | JM_TS_JEP_0085 = 0x2 | |
| 57 | } typing_style; | |
| 58 | enum { | |
| 59 | JM_STATE_ACTIVE, | |
| 60 | JM_STATE_COMPOSING, | |
| 61 | JM_STATE_PAUSED, | |
| 62 | JM_STATE_INACTIVE, | |
| 63 | JM_STATE_GONE | |
| 64 | } chat_state; | |
| 7145 | 65 | GList *etc; |
|
17779
773326802e26
Fixed whitespace to match the coding convention used in libpurple
Andreas Monitzer <am@adiumx.com>
parents:
17768
diff
changeset
|
66 | GList *eventitems; |
| 7014 | 67 | } JabberMessage; |
| 68 | ||
| 7971 | 69 | void jabber_message_free(JabberMessage *jm); |
| 70 | ||
| 71 | void jabber_message_send(JabberMessage *jm); | |
| 7014 | 72 | |
| 73 | void jabber_message_parse(JabberStream *js, xmlnode *packet); | |
| 15884 | 74 | int jabber_message_send_im(PurpleConnection *gc, const char *who, const char *msg, |
| 75 | PurpleMessageFlags flags); | |
| 76 | int jabber_message_send_chat(PurpleConnection *gc, int id, const char *message, PurpleMessageFlags flags); | |
| 7014 | 77 | |
| 15884 | 78 | unsigned int jabber_send_typing(PurpleConnection *gc, const char *who, PurpleTypingState state); |
|
15709
b58646e3ce63
Sending XEP 85 'gone' messages
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
79 | void jabber_message_conv_closed(JabberStream *js, const char *who); |
| 7971 | 80 | |
|
23586
e495a4623f76
Removing short-names for features and calculating own caps hash.
Tobias Markmann <tfar@soc.pidgin.im>
parents:
19897
diff
changeset
|
81 | gboolean jabber_buzz_isenabled(JabberStream *js, const gchar *namespace); |
|
17824
52683dfc1f7d
Added the option to enable/disable buzz via a status setting. It's default off for the pidgin folks.
Andreas Monitzer <am@adiumx.com>
parents:
17822
diff
changeset
|
82 | |
|
24715
69aaae59e205
Fix compilation errors and many warnings
Paul Aurich <darkrain42@pidgin.im>
parents:
24714
diff
changeset
|
83 | gboolean jabber_custom_smileys_isenabled(JabberStream *js, const const gchar *namespace); |
|
23626
e21afec2f485
Custom smileys for XMPP according to XEP 0231. Refs #5627.
Marcus Lundblad <malu@pidgin.im>
parents:
19897
diff
changeset
|
84 | |
| 15884 | 85 | #endif /* _PURPLE_JABBER_MESSAGE_H_ */ |