Mercurial > ~mikael > mcabber > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
293:d0295e735768 | 294:871e53769084 |
---|---|
1 #ifndef __SETTINGS_H__ | 1 #ifndef __SETTINGS_H__ |
2 #define __SETTINGS_H__ 1 | 2 #define __SETTINGS_H__ 1 |
3 | 3 |
4 #include <glib.h> | 4 #include <glib.h> |
5 | 5 |
6 #include "jabglue.h" | |
7 | |
6 #ifndef __USE_ISOC99 | 8 #ifndef __USE_ISOC99 |
7 # define isblank(c) ((c) == 0x20 || (c) == 0x09) | 9 # define isblank(c) ((c) == 0x20 || (c) == 0x09) |
8 #endif | 10 #endif |
11 | |
12 | |
13 /* Default status messages */ | |
14 #define MSG_AVAIL "I'm here!" | |
15 #define MSG_FREE "Free for chat" | |
16 #define MSG_DND "Busy" | |
17 #define MSG_NOTAVAIL "Not available" | |
18 #define MSG_AWAY "Away" | |
19 #define MSG_AUTOAWAY "Auto away" | |
20 | |
9 | 21 |
10 #define SETTINGS_TYPE_OPTION 1 | 22 #define SETTINGS_TYPE_OPTION 1 |
11 #define SETTINGS_TYPE_ALIAS 2 | 23 #define SETTINGS_TYPE_ALIAS 2 |
12 #define SETTINGS_TYPE_BINDING 3 | 24 #define SETTINGS_TYPE_BINDING 3 |
13 | 25 |
18 const gchar **pkey, const gchar **pval); | 30 const gchar **pkey, const gchar **pval); |
19 void settings_set(guint type, const gchar *key, const gchar *value); | 31 void settings_set(guint type, const gchar *key, const gchar *value); |
20 void settings_del(guint type, const gchar *key); | 32 void settings_del(guint type, const gchar *key); |
21 const gchar *settings_get(guint type, const gchar *key); | 33 const gchar *settings_get(guint type, const gchar *key); |
22 int settings_get_int(guint type, const gchar *key); | 34 int settings_get_int(guint type, const gchar *key); |
35 const gchar *settings_get_status_msg(enum imstatus status); | |
23 | 36 |
24 const gchar *isbound(int key); | 37 const gchar *isbound(int key); |
25 | 38 |
26 #endif /* __SETTINGS_H__ */ | 39 #endif /* __SETTINGS_H__ */ |
27 | 40 |