comparison 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
comparison
equal deleted inserted replaced
990:35e7913affb7 991:ef10906691bb
23 23
24 // Only used in screen.c; this is the maximum line number 24 // Only used in screen.c; this is the maximum line number
25 // in a multi-line message. Should be < 1000 25 // in a multi-line message. Should be < 1000
26 // Note: message length is limited by the HBB_BLOCKSIZE size too 26 // Note: message length is limited by the HBB_BLOCKSIZE size too
27 #define MULTILINE_MAX_LINE_NUMBER 299 27 #define MULTILINE_MAX_LINE_NUMBER 299
28
29 // When chatstates are enabled, timeout (in seconds) before "composing"
30 // becomes "paused" because of user inactivity.
31 // Warning: setting this very low will cause more network traffic.
32 #define COMPOSING_TIMEOUT 8L
28 33
29 enum colors { 34 enum colors {
30 COLOR_GENERAL = 3, 35 COLOR_GENERAL = 3,
31 COLOR_MSGOUT, 36 COLOR_MSGOUT,
32 COLOR_STATUS, 37 COLOR_STATUS,
89 inline const char *scr_get_multiline(void); 94 inline const char *scr_get_multiline(void);
90 inline const char *scr_get_multimode_subj(void); 95 inline const char *scr_get_multimode_subj(void);
91 96
92 inline void scr_Beep(void); 97 inline void scr_Beep(void);
93 98
94 unsigned int scr_GetAutoAwayTimeout(time_t now); 99 long int scr_GetAutoAwayTimeout(time_t now);
95 void scr_CheckAutoAway(int activity); 100 void scr_CheckAutoAway(int activity);
101
102 #if defined JEP0022 || defined JEP0085
103 long int scr_GetChatStatesTimeout(time_t now);
104 #endif
96 105
97 // For commands... 106 // For commands...
98 void scr_RosterTop(void); 107 void scr_RosterTop(void);
99 void scr_RosterBottom(void); 108 void scr_RosterBottom(void);
100 void scr_RosterUp(void); 109 void scr_RosterUp(void);