summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/ObjectModel.cpp8
-rw-r--r--src/client/ObjectModel.hpp7
2 files changed, 12 insertions, 3 deletions
diff --git a/src/client/ObjectModel.cpp b/src/client/ObjectModel.cpp
index bdf0be4f..3ffd96bd 100644
--- a/src/client/ObjectModel.cpp
+++ b/src/client/ObjectModel.cpp
@@ -56,6 +56,14 @@ ObjectModel::set_meta_property(const Raul::URI& key, const Raul::Atom& value)
}
+void
+ObjectModel::add_property(const Raul::URI& key, const Raul::Atom& value)
+{
+ ResourceImpl::add_property(key, value);
+ signal_property.emit(key, value);
+}
+
+
const Atom&
ObjectModel::get_property(const Raul::URI& key) const
{
diff --git a/src/client/ObjectModel.hpp b/src/client/ObjectModel.hpp
index 25657ed5..72692d65 100644
--- a/src/client/ObjectModel.hpp
+++ b/src/client/ObjectModel.hpp
@@ -54,10 +54,11 @@ class ObjectModel : virtual public Ingen::Shared::GraphObject
public:
virtual ~ObjectModel();
- virtual const Raul::Atom& get_property(const Raul::URI& key) const;
+ const Raul::Atom& get_property(const Raul::URI& key) const;
- virtual Raul::Atom& set_property(const Raul::URI& key, const Raul::Atom& value);
- virtual Raul::Atom& set_meta_property(const Raul::URI& key, const Raul::Atom& value);
+ Raul::Atom& set_property(const Raul::URI& key, const Raul::Atom& value);
+ void add_property(const Raul::URI& key, const Raul::Atom& value);
+ Raul::Atom& set_meta_property(const Raul::URI& key, const Raul::Atom& value);
Resource& meta() { return _meta; }
const Resource& meta() const { return _meta; }