21 #ifndef GCONFMM_SET_INTERFACE_H
22 #define GCONFMM_SET_INTERFACE_H
27 #if (__GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96))
28 #pragma GCC system_header
52 #ifdef GLIBMM_EXCEPTIONS_ENABLED
53 virtual void set(
const Glib::ustring& key,
const Value& value) = 0;
54 virtual void set(
const Glib::ustring& key,
bool what) = 0;
55 virtual void set(
const Glib::ustring& key,
int what) = 0;
56 virtual void set(
const Glib::ustring& key,
double what) = 0;
57 virtual void set(
const Glib::ustring& key,
const Glib::ustring& what) = 0;
58 virtual void set(
const Glib::ustring& key,
const Schema& what) = 0;
60 void set(
const Glib::ustring& key,
const ValuePair& pair);
62 void set_int_list(
const Glib::ustring& key,
const SListHandle_ValueInt& list);
63 void set_bool_list(
const Glib::ustring& key,
const SListHandle_ValueBool& list);
64 void set_float_list(
const Glib::ustring& key,
const SListHandle_ValueFloat& list);
65 void set_string_list(
const Glib::ustring& key,
const SListHandle_ValueString& list);
66 void set_schema_list(
const Glib::ustring& key,
const SListHandle_ValueSchema& list);
68 #else //GLIBMM_EXCEPTIONS_ENABLED
70 virtual void set(
const Glib::ustring& key,
const Value& value, std::auto_ptr<Glib::Error>& error) = 0;
71 virtual void set(
const Glib::ustring& key,
bool what, std::auto_ptr<Glib::Error>& error) = 0;
72 virtual void set(
const Glib::ustring& key,
int what, std::auto_ptr<Glib::Error>& error) = 0;
73 virtual void set(
const Glib::ustring& key,
double what, std::auto_ptr<Glib::Error>& error) = 0;
74 virtual void set(
const Glib::ustring& key,
const Glib::ustring& what, std::auto_ptr<Glib::Error>& error) = 0;
75 virtual void set(
const Glib::ustring& key,
const Schema& what, std::auto_ptr<Glib::Error>& error) = 0;
77 void set(
const Glib::ustring& key,
const ValuePair& pair, std::auto_ptr<Glib::Error>& error);
79 void set_int_list(
const Glib::ustring& key,
const SListHandle_ValueInt& list, std::auto_ptr<Glib::Error>& error);
80 void set_bool_list(
const Glib::ustring& key,
const SListHandle_ValueBool& list, std::auto_ptr<Glib::Error>& error);
81 void set_float_list(
const Glib::ustring& key,
const SListHandle_ValueFloat& list, std::auto_ptr<Glib::Error>& error);
82 void set_string_list(
const Glib::ustring& key,
const SListHandle_ValueString& list, std::auto_ptr<Glib::Error>& error);
83 void set_schema_list(
const Glib::ustring& key,
const SListHandle_ValueSchema& list, std::auto_ptr<Glib::Error>& error);
84 #endif //GLIBMM_EXCEPTIONS_ENABLED