diff src/protocols/jabber/message.h @ 13706:3eb7a5f0de82

[gaim-migrate @ 16110] support for JEP-0085 (chat state notifications) Basically, this gains us the ability to send/receive the fact that a user has typed, and then stopped. This has passed the WorksForMe(TM) test suite...lemme know if you notice anything weird. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 01 May 2006 01:22:18 +0000
parents bd77abf05a12
children a9ff4499d9ce
line wrap: on
line diff
--- a/src/protocols/jabber/message.h	Sat Apr 29 20:47:20 2006 +0000
+++ b/src/protocols/jabber/message.h	Mon May 01 01:22:18 2006 +0000
@@ -48,8 +48,17 @@
 	char *error;
 	char *thread_id;
 	enum {
-		JABBER_MESSAGE_EVENT_COMPOSING = 1 << 1
-	} events;
+		JM_TS_NONE = 0,
+		JM_TS_JEP_0022 = 0x1,
+		JM_TS_JEP_0085 = 0x2
+	} typing_style;
+	enum {
+		JM_STATE_ACTIVE,
+		JM_STATE_COMPOSING,
+		JM_STATE_PAUSED,
+		JM_STATE_INACTIVE,
+		JM_STATE_GONE
+	} chat_state;
 	GList *etc;
 } JabberMessage;