X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-conf.h;h=e2bf25a6b7e49ac62ee580d852c202c471c51e25;hb=94d7e5b599bdc49a1cde5bf78e798788e013c4a7;hp=0008272f69b9e9253ee66acce87dfb55b1b4db99;hpb=8d7b3c8344fcf5d43924489067d97a8e2ba15ef0;p=modest diff --git a/src/modest-conf.h b/src/modest-conf.h index 0008272..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); }; /** @@ -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__ */