diff options
author | David Robillard <d@drobilla.net> | 2012-03-16 03:15:41 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-03-16 03:15:41 +0000 |
commit | 119468f621a59d86da10bedf75c4427b70f9d370 (patch) | |
tree | f15ea3f345d43b37d492096876c483543fcc1426 /src/client | |
parent | 0b93e39af34d3af361f35d510224fda4fda56071 (diff) | |
download | ingen-119468f621a59d86da10bedf75c4427b70f9d370.tar.gz ingen-119468f621a59d86da10bedf75c4427b70f9d370.tar.bz2 ingen-119468f621a59d86da10bedf75c4427b70f9d370.zip |
Remove activity from interface and use set_property() instead.
Move client registration stuff to Engine and remove corresponding events.
Simply response ID interface.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4066 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/ClientStore.cpp | 10 | ||||
-rw-r--r-- | src/client/PortModel.cpp | 2 |
2 files changed, 2 insertions, 10 deletions
diff --git a/src/client/ClientStore.cpp b/src/client/ClientStore.cpp index 7dbc5b0e..c7d5b9a2 100644 --- a/src/client/ClientStore.cpp +++ b/src/client/ClientStore.cpp @@ -65,7 +65,6 @@ ClientStore::ClientStore(SharedPtr<Shared::URIs> uris, CONNECT(disconnection, disconnect); CONNECT(disconnect_all, disconnect_all); CONNECT(property_change, set_property); - CONNECT(activity, activity); } void @@ -413,15 +412,6 @@ ClientStore::set_property(const URI& subject_uri, const URI& predicate, const At } } -void -ClientStore::activity(const Path& path, const Atom& value) -{ - SharedPtr<PortModel> port = PtrCast<PortModel>(_object(path)); - if (port) { - port->signal_activity().emit(value); - } -} - SharedPtr<PatchModel> ClientStore::connection_patch(const Path& src_port_path, const Path& dst_port_path) { diff --git a/src/client/PortModel.cpp b/src/client/PortModel.cpp index 2fc649a7..afd28816 100644 --- a/src/client/PortModel.cpp +++ b/src/client/PortModel.cpp @@ -27,6 +27,8 @@ PortModel::on_property(const Raul::URI& uri, const Raul::Atom& value) { if (uri == _uris.ingen_value) { this->value(value); + } else if (uri == _uris.ingen_activity) { + signal_activity().emit(value); } } |