Mercurial > ~mikael > mcabber > hg
diff mcabber/src/jabglue.h @ 1014:99c5278bf6b8
Keep the status and status messages when we're disconnected
Improve the automatic reconnection after a network failure.
- AutoConnection is only set to false when the user disconnects
explicitly (i.e. in do_disconnect()).
- AutoConnection is set to TRUE after the 1st successful connection.
- In jb_setstatus(), update the status message and the "wanted status"
even in offline mode. It helps with auto-away.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 12 Nov 2006 22:25:14 +0100 |
parents | c112423ac012 |
children | 579299b1c9b2 |
line wrap: on
line diff
--- a/mcabber/src/jabglue.h Sun Nov 12 15:55:04 2006 +0100 +++ b/mcabber/src/jabglue.h Sun Nov 12 22:25:14 2006 +0100 @@ -15,6 +15,7 @@ #endif extern jconn jc; +extern guint AutoConnection; extern char imstatus2char[]; // Status chars: '_', 'o', 'i', 'f', 'd', 'n', 'a' @@ -50,6 +51,7 @@ inline enum imstatus jb_getstatus(void); inline const char *jb_getstatusmsg(void); void jb_setstatus(enum imstatus st, const char *recipient, const char *msg); +inline void jb_setprevstatus(void); void jb_send_msg(const char *jid, const char *text, int type, const char *subject, const char *id); void jb_send_raw(const char *str);