typedef struct _ModestConf ModestConf;
typedef struct _ModestConfClass ModestConfClass;
+typedef guint ModestConfNotificationId;
+
typedef enum {
MODEST_CONF_VALUE_INT,
MODEST_CONF_VALUE_BOOL,
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);
};
/**
/**
* 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
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__ */