diff options
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/ObjectModel.cpp | 16 | ||||
-rw-r--r-- | src/client/PortModel.cpp | 11 |
2 files changed, 6 insertions, 21 deletions
diff --git a/src/client/ObjectModel.cpp b/src/client/ObjectModel.cpp index 81c0039b..f8137a79 100644 --- a/src/client/ObjectModel.cpp +++ b/src/client/ObjectModel.cpp @@ -53,21 +53,10 @@ ObjectModel::is_a(const Raul::URI& type) const return has_property(_uris.rdf_type, type); } -const Raul::Atom& -ObjectModel::set_property(const Raul::URI& key, const Raul::Atom& value, - Resource::Graph ctx) -{ - const Raul::Atom& my_value = ResourceImpl::set_property(key, value, ctx); - _signal_property.emit(key, my_value); - return my_value; -} - void -ObjectModel::add_property(const Raul::URI& key, const Raul::Atom& value, - Resource::Graph ctx) +ObjectModel::on_property(const Raul::URI& uri, const Raul::Atom& value) { - ResourceImpl::add_property(key, value, ctx); - _signal_property.emit(key, value); + _signal_property.emit(uri, value); } const Atom& @@ -78,7 +67,6 @@ ObjectModel::get_property(const Raul::URI& key) const return (i != properties().end()) ? i->second : null_atom; } - bool ObjectModel::polyphonic() const { diff --git a/src/client/PortModel.cpp b/src/client/PortModel.cpp index 55051bf1..2fc649a7 100644 --- a/src/client/PortModel.cpp +++ b/src/client/PortModel.cpp @@ -22,15 +22,12 @@ namespace Ingen { namespace Client { -const Raul::Atom& -PortModel::set_property(const Raul::URI& uri, - const Raul::Atom& value, - Resource::Graph ctx) +void +PortModel::on_property(const Raul::URI& uri, const Raul::Atom& value) { - const Raul::Atom& ret = ObjectModel::set_property(uri, value, ctx); - if (uri == _uris.ingen_value) + if (uri == _uris.ingen_value) { this->value(value); - return ret; + } } bool |