3 #ifndef _GCONFMM_CHANGESET_H 4 #define _GCONFMM_CHANGESET_H 31 #include <glibmm/ustring.h> 34 #include <sigc++/slot.h> 60 #ifndef DOXYGEN_SHOULD_SKIP_THIS 91 unsigned int size()
const;
96 void remove(
const Glib::ustring& key);
107 void unset(
const Glib::ustring& key);
120 #ifdef GLIBMM_EXCEPTIONS_ENABLED 121 virtual void set(
const Glib::ustring& key,
const Value& value);
122 virtual void set(
const Glib::ustring& key,
bool what);
123 virtual void set(
const Glib::ustring& key,
int what);
124 virtual void set(
const Glib::ustring& key,
double what);
125 virtual void set(
const Glib::ustring& key,
const Glib::ustring& what);
126 virtual void set(
const Glib::ustring& key,
const Schema& what);
128 virtual void set(
const Glib::ustring& key,
const Value& value, std::auto_ptr<Glib::Error>& error);
129 virtual void set(
const Glib::ustring& key,
bool what, std::auto_ptr<Glib::Error>& error);
130 virtual void set(
const Glib::ustring& key,
int what, std::auto_ptr<Glib::Error>& error);
131 virtual void set(
const Glib::ustring& key,
double what, std::auto_ptr<Glib::Error>& error);
132 virtual void set(
const Glib::ustring& key,
const Glib::ustring& what, std::auto_ptr<Glib::Error>& error);
133 virtual void set(
const Glib::ustring& key,
const Schema& what, std::auto_ptr<Glib::Error>& error);
134 #endif //GLIBMM_EXCEPTIONS_ENABLED 137 typedef sigc::slot<void, const Glib::ustring&, const Value&>
ForeachSlot;
142 void for_each(
const ForeachSlot& slot);
Definition: callback.h:33
const GConfChangeSet * gobj() const
Definition: changeset.h:77
GConfChangeSet * gobject_
Definition: changeset.h:81
struct _GConfChangeSet GConfChangeSet
Definition: changeset.h:38
sigc::slot< void, const Glib::ustring &, const Value & > ForeachSlot
Definition: changeset.h:137
void clear()
Clear all entries.
unsigned int size() const
Returns the number of keys in the changeset.
GConfChangeSet * gobj()
Definition: changeset.h:76
Value * exists(const Glib::ustring &key) const
Check whether the given key will be modified by a commit operation.
Wrapper for primitive types.
Definition: value.h:141
GConfChangeSet * gobj_copy() const
A ChangeSet is a set of changes to the GConf database that can be commited and reversed easily...
Definition: changeset.h:57
void for_each(const ForeachSlot &slot)
Iterate over the keys marked in this ChangeSet.
ChangeSet & operator=(const ChangeSet &src)
Common Interface for key-value settable objects.
Definition: setinterface.h:47
void unset(const Glib::ustring &key)
Unset the given key.