00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef GCONFMM_SET_INTERFACE_H
00022 #define GCONFMM_SET_INTERFACE_H
00023 #include <gconfmm/value.h>
00024
00025 namespace Gnome
00026 {
00027 namespace Conf
00028 {
00029
00041 class SetInterface
00042 {
00043 public:
00044
00045
00046 #ifdef GLIBMM_EXCEPTIONS_ENABLED
00047 virtual void set(const Glib::ustring& key, const Value& value) = 0;
00048 virtual void set(const Glib::ustring& key, bool what) = 0;
00049 virtual void set(const Glib::ustring& key, int what) = 0;
00050 virtual void set(const Glib::ustring& key, double what) = 0;
00051 virtual void set(const Glib::ustring& key, const Glib::ustring& what) = 0;
00052 virtual void set(const Glib::ustring& key, const Schema& what) = 0;
00053
00054 void set(const Glib::ustring& key,const ValuePair& pair);
00055
00056 void set_int_list(const Glib::ustring& key, const SListHandle_ValueInt& list);
00057 void set_bool_list(const Glib::ustring& key, const SListHandle_ValueBool& list);
00058 void set_float_list(const Glib::ustring& key, const SListHandle_ValueFloat& list);
00059 void set_string_list(const Glib::ustring& key, const SListHandle_ValueString& list);
00060 void set_schema_list(const Glib::ustring& key, const SListHandle_ValueSchema& list);
00061
00062 #else //GLIBMM_EXCEPTIONS_ENABLED
00063
00064 virtual void set(const Glib::ustring& key, const Value& value, std::auto_ptr<Glib::Error>& error) = 0;
00065 virtual void set(const Glib::ustring& key, bool what, std::auto_ptr<Glib::Error>& error) = 0;
00066 virtual void set(const Glib::ustring& key, int what, std::auto_ptr<Glib::Error>& error) = 0;
00067 virtual void set(const Glib::ustring& key, double what, std::auto_ptr<Glib::Error>& error) = 0;
00068 virtual void set(const Glib::ustring& key, const Glib::ustring& what, std::auto_ptr<Glib::Error>& error) = 0;
00069 virtual void set(const Glib::ustring& key, const Schema& what, std::auto_ptr<Glib::Error>& error) = 0;
00070
00071 void set(const Glib::ustring& key,const ValuePair& pair, std::auto_ptr<Glib::Error>& error);
00072
00073 void set_int_list(const Glib::ustring& key, const SListHandle_ValueInt& list, std::auto_ptr<Glib::Error>& error);
00074 void set_bool_list(const Glib::ustring& key, const SListHandle_ValueBool& list, std::auto_ptr<Glib::Error>& error);
00075 void set_float_list(const Glib::ustring& key, const SListHandle_ValueFloat& list, std::auto_ptr<Glib::Error>& error);
00076 void set_string_list(const Glib::ustring& key, const SListHandle_ValueString& list, std::auto_ptr<Glib::Error>& error);
00077 void set_schema_list(const Glib::ustring& key, const SListHandle_ValueSchema& list, std::auto_ptr<Glib::Error>& error);
00078 #endif //GLIBMM_EXCEPTIONS_ENABLED
00079 };
00080
00081 }
00082 }
00083
00084 #endif