From 72ffe8b96f492805b16df8d2ffa452e67046b974 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 9 Nov 2008 03:45:35 +0000 Subject: Add concept of 'Resource' and make plugins a resource (as well as graph objects). Get rid of crufty imperative Plugin API. Loading of plugin data from engine over HTTP. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1713 a436a847-0d15-0410-975c-d299462d15a1 --- src/client/PatchModel.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/client/PatchModel.cpp') diff --git a/src/client/PatchModel.cpp b/src/client/PatchModel.cpp index d9f62b45..b79c8edd 100644 --- a/src/client/PatchModel.cpp +++ b/src/client/PatchModel.cpp @@ -163,15 +163,14 @@ PatchModel::remove_connection(const string& src_port_path, const string& dst_por bool PatchModel::enabled() const { - Properties::const_iterator i = _properties.find("ingen:enabled"); - return (i != _properties.end() && i->second.type() == Atom::BOOL && i->second.get_bool()); + const Raul::Atom& enabled = get_property("ingen:enabled"); + return (enabled.is_valid() && enabled.get_bool()); } - void -PatchModel::set_property(const string& key, const Atom& value) +PatchModel::set(const string& key, const Atom& value) { - ObjectModel::set_property(key, value); + ResourceImpl::set_property(key, value); if (key == "ingen:polyphony") _poly = value.get_int32(); } -- cgit v1.2.1