Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

changeset.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _GCONFMM_CHANGESET_H
00004 #define _GCONFMM_CHANGESET_H
00005 
00006 #include <glibmm.h>
00007 
00008 // -*- Mode: C++; c-basic-offset: 4  -*-
00009 /* $Id: changeset.hg,v 1.3 2004/02/13 17:26:18 murrayc Exp $ */
00010 
00011 /* changeset.hg 
00012  * 
00013  * Copyright (C) 2002 GConfmm Development Team
00014  *
00015  * This library is free software; you can redistribute it and/or
00016  * modify it under the terms of the GNU Library General Public
00017  * License as published by the Free Software Foundation; either
00018  * version 2 of the License, or (at your option) any later version.
00019  *
00020  * This library is distributed in the hope that it will be useful,
00021  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00022  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00023  * Library General Public License for more details.
00024  *
00025  * You should have received a copy of the GNU Library General Public
00026  * License along with this library; if not, write to the Free
00027  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00028  */
00029 
00030 #include <glibmm/ustring.h>
00031 #include <gconfmm/value.h>
00032 #include <gconfmm/setinterface.h>
00033 #include <sigc++/slot.h>
00034 
00035 
00036 extern "C" {
00037     typedef struct _GConfChangeSet GConfChangeSet;
00038 }
00039 
00040 namespace Gnome
00041 {
00042 namespace Conf
00043 {
00044 
00045 
00056 class ChangeSet : public SetInterface
00057 {
00058     public:
00059 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00060   typedef ChangeSet CppObjectType;
00061   typedef GConfChangeSet BaseObjectType;
00062 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00063 
00064 private:
00065 
00066     
00067 public:
00068     ChangeSet();
00069     explicit ChangeSet(GConfChangeSet* castitem, bool make_a_copy = false);
00070 
00071     ChangeSet(const ChangeSet& src);
00072     ChangeSet& operator=(const ChangeSet& src);
00073     virtual ~ChangeSet();
00074 
00075     GConfChangeSet*       gobj()       { return gobject_; }
00076     const GConfChangeSet* gobj() const { return gobject_; }
00077     GConfChangeSet* gobj_copy() const;
00078 
00079 protected:
00080     GConfChangeSet* gobject_;
00081 
00082 public:
00086   void clear();
00087 
00090   unsigned int size() const;
00091 
00095   void remove(const Glib::ustring& key);
00096 
00100     Value* exists(const Glib::ustring& key) const;
00101     
00102 
00106   void unset(const Glib::ustring& key);
00107 
00108     
00109   void set(const Glib::ustring& key, bool what);
00110     
00111   void set(const Glib::ustring& key, int what);
00112     
00113   void set(const Glib::ustring& key, double what);
00114     
00115   void set(const Glib::ustring& key, const Glib::ustring& what);
00116     
00117   void set(const Glib::ustring& key, const Schema& val);
00118 
00119     
00120   void set(const Glib::ustring& key, const Value& what);
00121     
00122     
00123     typedef sigc::slot<void, const Glib::ustring&, const Value&> ForeachSlot;
00128     void for_each(const ForeachSlot& slot);
00129     
00130 private:
00131     static GConfChangeSet* do_ref(GConfChangeSet*);
00132 
00133 
00134 };
00135 
00136 
00137 } // namespace Conf
00138 } // namespace Gnome
00139 
00140 #endif /* _GCONFMM_CHANGESET_H */
00141 

Generated on Thu Mar 10 09:21:29 2005 for gconfmm by  doxygen 1.3.9.1