diff mcabber/src/screen.h @ 991:ef10906691bb

Chatstates: add composing timeout
author Mikael Berthe <mikael@lilotux.net>
date Wed, 01 Nov 2006 11:56:58 +0100
parents fc30221b952d
children 0759f4c7da68
line wrap: on
line diff
--- a/mcabber/src/screen.h	Wed Nov 01 00:57:56 2006 +0100
+++ b/mcabber/src/screen.h	Wed Nov 01 11:56:58 2006 +0100
@@ -26,6 +26,11 @@
 // Note: message length is limited by the HBB_BLOCKSIZE size too
 #define MULTILINE_MAX_LINE_NUMBER 299
 
+// When chatstates are enabled, timeout (in seconds) before "composing"
+// becomes "paused" because of user inactivity.
+// Warning: setting this very low will cause more network traffic.
+#define COMPOSING_TIMEOUT 8L
+
 enum colors {
   COLOR_GENERAL = 3,
   COLOR_MSGOUT,
@@ -91,9 +96,13 @@
 
 inline void scr_Beep(void);
 
-unsigned int scr_GetAutoAwayTimeout(time_t now);
+long int scr_GetAutoAwayTimeout(time_t now);
 void scr_CheckAutoAway(int activity);
 
+#if defined JEP0022 || defined JEP0085
+long int scr_GetChatStatesTimeout(time_t now);
+#endif
+
 // For commands...
 void scr_RosterTop(void);
 void scr_RosterBottom(void);