#include <changeset.h>
Inheritance diagram for Gnome::Conf::ChangeSet:
Public Types | |
typedef sigc::slot< void, const Glib::ustring &, const Value & > | ForeachSlot |
Public Member Functions | |
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. | |
unsigned int | size () const |
Returns the number of keys in the changeset. | |
void | remove (const Glib::ustring &key) |
Remove the specified key from the changeset. | |
Value * | exists (const Glib::ustring &key) const |
Check whether the given key will be modified by a commit operation. | |
void | unset (const Glib::ustring &key) |
Unset the given key. | |
void | set (const Glib::ustring &key, bool what) |
void | set (const Glib::ustring &key, int what) |
void | set (const Glib::ustring &key, double what) |
void | set (const Glib::ustring &key, const Glib::ustring &what) |
void | set (const Glib::ustring &key, const Schema &val) |
void | set (const Glib::ustring &key, const Value &what) |
void | for_each (const ForeachSlot &slot) |
Iterate over the keys marked in this ChangeSet. | |
Protected Attributes | |
GConfChangeSet * | gobject_ |
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.
|
|
|
|
|
|
|
|
|
|
|
Clear all entries. After this method, commiting the changeset is a no-op. |
|
Check whether the given key will be modified by a commit operation.
|
|
Iterate over the keys marked in this ChangeSet.
Calls |
|
|
|
|
|
|
|
|
|
Remove the specified key from the changeset. This means that the given key will not be modified by a commit. |
|
Implements Gnome::Conf::SetInterface. |
|
Implements Gnome::Conf::SetInterface. |
|
Implements Gnome::Conf::SetInterface. |
|
Implements Gnome::Conf::SetInterface. |
|
Implements Gnome::Conf::SetInterface. |
|
Implements Gnome::Conf::SetInterface. |
|
Returns the number of keys in the changeset.
|
|
Unset the given key. Mark the key, so that it will be removed from the configuration database during a commit. |
|
|