Mercurial > ~mikael > mcabber > hg
diff mcabber/src/settings.h @ 294:871e53769084
Allow one status message per Jabber status
Messages can be defined with the following options:
message (overrides any of the others),
message_avail,
message_free,
message_dnd,
message_notavail,
message_away
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 09 Jul 2005 12:44:57 +0100 |
parents | 96917f04c841 |
children | dea407d53fe6 33b8e801ffa6 |
line wrap: on
line diff
--- a/mcabber/src/settings.h Sat Jul 09 09:50:01 2005 +0100 +++ b/mcabber/src/settings.h Sat Jul 09 12:44:57 2005 +0100 @@ -3,10 +3,22 @@ #include <glib.h> +#include "jabglue.h" + #ifndef __USE_ISOC99 # define isblank(c) ((c) == 0x20 || (c) == 0x09) #endif + +/* Default status messages */ +#define MSG_AVAIL "I'm here!" +#define MSG_FREE "Free for chat" +#define MSG_DND "Busy" +#define MSG_NOTAVAIL "Not available" +#define MSG_AWAY "Away" +#define MSG_AUTOAWAY "Auto away" + + #define SETTINGS_TYPE_OPTION 1 #define SETTINGS_TYPE_ALIAS 2 #define SETTINGS_TYPE_BINDING 3 @@ -20,6 +32,7 @@ void settings_del(guint type, const gchar *key); const gchar *settings_get(guint type, const gchar *key); int settings_get_int(guint type, const gchar *key); +const gchar *settings_get_status_msg(enum imstatus status); const gchar *isbound(int key);