|
| ChangeSet () |
|
| ChangeSet (GConfChangeSet* castitem, bool make_a_copy=false) |
|
| ChangeSet (const ChangeSet& src) |
|
ChangeSet& | operator= (const ChangeSet& src) |
|
virtual | ~ChangeSet () |
|
GConfChangeSet* | gobj () |
|
const GConfChangeSet* | gobj () const |
|
GConfChangeSet* | gobj_copy () const |
|
void | clear () |
| Clear all entries. More...
|
|
unsigned int | size () const |
| Returns the number of keys in the changeset. More...
|
|
void | remove (const Glib::ustring& key) |
| Remove the specified key from the changeset. More...
|
|
Value* | exists (const Glib::ustring& key) const |
| Check whether the given key will be modified by a commit operation. More...
|
|
void | unset (const Glib::ustring& key) |
| Unset the given key. More...
|
|
virtual void | set (const Glib::ustring& key, const Value& value) |
|
virtual void | set (const Glib::ustring& key, bool what) |
|
virtual void | set (const Glib::ustring& key, int what) |
|
virtual void | set (const Glib::ustring& key, double what) |
|
virtual void | set (const Glib::ustring& key, const Glib::ustring& what) |
|
virtual void | set (const Glib::ustring& key, const Schema& what) |
|
void | for_each (const ForeachSlot& slot) |
| Iterate over the keys marked in this ChangeSet. More...
|
|
virtual void | set (const Glib::ustring& key, const Value& value)=0 |
|
virtual void | set (const Glib::ustring& key, bool what)=0 |
|
virtual void | set (const Glib::ustring& key, int what)=0 |
|
virtual void | set (const Glib::ustring& key, double what)=0 |
|
virtual void | set (const Glib::ustring& key, const Glib::ustring& what)=0 |
|
virtual void | set (const Glib::ustring& key, const Schema& what)=0 |
|
void | set (const Glib::ustring& key, const ValuePair&pair) |
|
void | set_int_list (const Glib::ustring& key, const SListHandle_ValueInt& list) |
|
void | set_bool_list (const Glib::ustring& key, const SListHandle_ValueBool& list) |
|
void | set_float_list (const Glib::ustring& key, const SListHandle_ValueFloat& list) |
|
void | set_string_list (const Glib::ustring& key, const SListHandle_ValueString& list) |
|
void | set_schema_list (const Glib::ustring& key, const SListHandle_ValueSchema& list) |
|
A ChangeSet is a set of changes to the GConf database that can be commited and reversed easily.
The changes can be both set and unset operations. Currently the ChangeSet operations are not atomic, and not specially optimized for. However, it is suitable for use, for instance, preferences dialogs.
The set*() methods do not throw errors, they simply store the keys and the values.
- See also
- Client::change_set_from_current(), Client::change_set_commit(), Client::change_set_reverse().