X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodest-conf.h;h=e2bf25a6b7e49ac62ee580d852c202c471c51e25;hb=58862afe7770c07e425d5f893f552d0342b82fbe;hp=2edd05b2723ba65fc5d1574210dd1bc26f81d6c5;hpb=c0d1c43e9e48abc7d867cabcd57ccc9a6917a41b;p=modest diff --git a/src/modest-conf.h b/src/modest-conf.h index 2edd05b..e2bf25a 100644 --- a/src/modest-conf.h +++ b/src/modest-conf.h @@ -46,6 +46,8 @@ G_BEGIN_DECLS typedef struct _ModestConf ModestConf; typedef struct _ModestConfClass ModestConfClass; +typedef guint ModestConfNotificationId; + typedef enum { MODEST_CONF_VALUE_INT, MODEST_CONF_VALUE_BOOL, @@ -64,7 +66,10 @@ struct _ModestConf { struct _ModestConfClass { GObjectClass parent_class; - void (* key_changed) (ModestConf* self, const gchar *key, ModestConfEvent event); + void (* key_changed) (ModestConf* self, + const gchar *key, + ModestConfEvent event, + ModestConfNotificationId id); }; /** @@ -271,7 +276,7 @@ gboolean modest_conf_key_is_valid (const gchar* str); /** * modest_conf_key_escape: - * @str: a string to escape + * @str: a non-empty string to escape * * returns an escaped version of @str, ie. something suitable as a key * This is a *class* function, and therefore does not require a ModestConf @@ -295,6 +300,13 @@ gchar* modest_conf_key_escape (const gchar* str); gchar* modest_conf_key_unescape (const gchar* str); +ModestConfNotificationId modest_conf_listen_to_namespace (ModestConf *self, + const gchar *namespace); + +void modest_conf_forget_namespace (ModestConf *self, + const gchar *namespace, + ModestConfNotificationId id); + G_END_DECLS #endif /* __MODEST_CONF_H__ */