Tue, 09 Mar 2010 19:09:37 +0000
jabber: And fix up the commands now to be per-plugin
| 7014 | 1 | /** |
| 2 | * @file message.h Message handlers | |
| 3 | * | |
| 15884 | 4 | * purple |
| 7014 | 5 | * |
|
28322
ac8fec1d2234
Remove specific copyright lines from the XMPP prpl.
Paul Aurich <darkrain42@pidgin.im>
parents:
27429
diff
changeset
|
6 | * Purple is the legal property of its developers, whose names are too numerous |
|
ac8fec1d2234
Remove specific copyright lines from the XMPP prpl.
Paul Aurich <darkrain42@pidgin.im>
parents:
27429
diff
changeset
|
7 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
ac8fec1d2234
Remove specific copyright lines from the XMPP prpl.
Paul Aurich <darkrain42@pidgin.im>
parents:
27429
diff
changeset
|
8 | * source distribution. |
| 7014 | 9 | * |
| 10 | * This program is free software; you can redistribute it and/or modify | |
| 11 | * it under the terms of the GNU General Public License as published by | |
| 12 | * the Free Software Foundation; either version 2 of the License, or | |
| 13 | * (at your option) any later version. | |
| 14 | * | |
| 15 | * This program is distributed in the hope that it will be useful, | |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 18 | * GNU General Public License for more details. | |
| 19 | * | |
| 20 | * You should have received a copy of the GNU General Public License | |
| 21 | * 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
|
22 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 7014 | 23 | */ |
|
26703
17f9a4bef2a3
Further standardize the sentinel style (did someone say leading _s are theoretically a reserved namespace?)
Paul Aurich <darkrain42@pidgin.im>
parents:
24397
diff
changeset
|
24 | #ifndef PURPLE_JABBER_MESSAGE_H_ |
|
17f9a4bef2a3
Further standardize the sentinel style (did someone say leading _s are theoretically a reserved namespace?)
Paul Aurich <darkrain42@pidgin.im>
parents:
24397
diff
changeset
|
25 | #define PURPLE_JABBER_MESSAGE_H_ |
| 7014 | 26 | |
|
15709
b58646e3ce63
Sending XEP 85 'gone' messages
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
27 | #include "buddy.h" |
| 7014 | 28 | #include "jabber.h" |
| 29 | #include "xmlnode.h" | |
| 30 | ||
| 31 | typedef struct _JabberMessage { | |
| 32 | JabberStream *js; | |
| 33 | enum { | |
| 34 | JABBER_MESSAGE_NORMAL, | |
| 35 | JABBER_MESSAGE_CHAT, | |
| 36 | JABBER_MESSAGE_GROUPCHAT, | |
| 37 | JABBER_MESSAGE_HEADLINE, | |
| 38 | JABBER_MESSAGE_ERROR, | |
| 39 | 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
|
40 | JABBER_MESSAGE_EVENT, |
| 7014 | 41 | JABBER_MESSAGE_OTHER |
| 42 | } type; | |
| 43 | time_t sent; | |
|
9584
1a6198375303
[gaim-migrate @ 10427]
Nathan Fredrickson <nathan@silverorange.com>
parents:
8400
diff
changeset
|
44 | gboolean delayed; |
|
17822
1a183f3fa9d7
disapproval of revision 'd52c12703a8e67c41c7f95a2cae7f16ab426ad76'
Andreas Monitzer <am@adiumx.com>
parents:
17821
diff
changeset
|
45 | gboolean hasBuzz; |
| 13484 | 46 | char *id; |
| 7014 | 47 | char *from; |
| 48 | char *to; | |
| 49 | char *subject; | |
| 50 | char *body; | |
| 51 | char *xhtml; | |
| 52 | char *password; | |
| 53 | char *error; | |
| 8400 | 54 | char *thread_id; |
| 7014 | 55 | enum { |
|
27429
3313d7d74962
Remove code for obsoleted XEP-0022 (Message Events)
Paul Aurich <darkrain42@pidgin.im>
parents:
26984
diff
changeset
|
56 | JM_STATE_NONE, |
| 13708 | 57 | JM_STATE_ACTIVE, |
| 58 | JM_STATE_COMPOSING, | |
| 59 | JM_STATE_PAUSED, | |
| 60 | JM_STATE_INACTIVE, | |
| 61 | JM_STATE_GONE | |
| 62 | } chat_state; | |
| 7145 | 63 | GList *etc; |
|
17779
773326802e26
Fixed whitespace to match the coding convention used in libpurple
Andreas Monitzer <am@adiumx.com>
parents:
17768
diff
changeset
|
64 | GList *eventitems; |
| 7014 | 65 | } JabberMessage; |
| 66 | ||
| 7971 | 67 | void jabber_message_free(JabberMessage *jm); |
| 68 | ||
| 69 | void jabber_message_send(JabberMessage *jm); | |
| 7014 | 70 | |
| 71 | void jabber_message_parse(JabberStream *js, xmlnode *packet); | |
| 15884 | 72 | int jabber_message_send_im(PurpleConnection *gc, const char *who, const char *msg, |
| 73 | PurpleMessageFlags flags); | |
| 74 | int jabber_message_send_chat(PurpleConnection *gc, int id, const char *message, PurpleMessageFlags flags); | |
| 7014 | 75 | |
| 15884 | 76 | unsigned int jabber_send_typing(PurpleConnection *gc, const char *who, PurpleTypingState state); |
| 7971 | 77 | |
|
23586
e495a4623f76
Removing short-names for features and calculating own caps hash.
Tobias Markmann <tfar@soc.pidgin.im>
parents:
19897
diff
changeset
|
78 | 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
|
79 | |
|
24715
69aaae59e205
Fix compilation errors and many warnings
Paul Aurich <darkrain42@pidgin.im>
parents:
24714
diff
changeset
|
80 | 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
|
81 | |
|
26703
17f9a4bef2a3
Further standardize the sentinel style (did someone say leading _s are theoretically a reserved namespace?)
Paul Aurich <darkrain42@pidgin.im>
parents:
24397
diff
changeset
|
82 | #endif /* PURPLE_JABBER_MESSAGE_H_ */ |