Rc
Object Hierarchy:
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "xfce_rc_get_type ()" ) ]
[ Compact ]
public class Rc
Content:
Static methods:
Methods:
- public void close ()
Destructs this.
- public void delete_entry (string key, bool global)
Similar to
delete_group, but works on an entry in the current group.
- public void delete_group (string group, bool global)
If this is a simple config object
and group exists, it is deleted.
- public void flush ()
Flushes all changes that currently reside only in memory back to
permanent storage.
- public string[] get_entries (string group)
Returns the names of all entries in group if any.
- public unowned string get_group ()
Returns the name of the group in which we are searching for keys and
from which we are retrieving entries.
- public string[] get_groups ()
Returns the names of all known groups in
this.
- public unowned string get_locale ()
Returns current locale used by this
to lookup translated entries.
- public bool has_entry (string key)
Checks whether the key has an entry in the current group.
- public bool has_group (string group)
Returns true if the specified
group is known about.
- public bool is_dirty ()
Checks whether this has any dirty (
modified) entries.
- public bool is_readonly ()
Returns the read-only status of this
.
- public bool read_bool_entry (string key, bool fallback)
Reads the value of an entry specified by key in the
current group and interpret it as a boolean value.
- public unowned string read_entry (string key, string fallback)
Reads the value of an entry specified by key in the
current group.
- public unowned string read_entry_untranslated (string key, string fallback)
Reads the value of an entry specified by key in the
current group.
- public int read_int_entry (string key, int fallback)
Reads the value of an entry specified by key in the
current group and interprets it as an integer value.
- public string[] read_list_entry (string key, string delimiter)
Reads a list of strings in the entry specified by key in the current
group.
- public void rollback ()
Mark this as "clean", i.
- public void set_group (string group)
Specifies the group in which keys will be read and written.
- public void write_bool_entry (string key, bool value)
- public void write_entry (string key, string value)
Writes a key/value pair.
- public void write_int_entry (string key, int value)
- public void write_list_entry (string key, string value, string separator)
Wrapper for
write_entry, that stores a string list value.