summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-02-03 06:43:53 +0000
committerDavid Robillard <d@drobilla.net>2010-02-03 06:43:53 +0000
commitf186268d94b6435614c58d369f157fa203b04850 (patch)
tree2cf0abb36526533aa3219940c99eac5aa8edc689 /src/client
parent44859a84f0bad75cb358dc1d91e5cfcdeda10ba7 (diff)
downloadingen-f186268d94b6435614c58d369f157fa203b04850.tar.gz
ingen-f186268d94b6435614c58d369f157fa203b04850.tar.bz2
ingen-f186268d94b6435614c58d369f157fa203b04850.zip
Properly detect lv2:portProperty.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2411 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client')
-rw-r--r--src/client/PortModel.cpp4
-rw-r--r--src/client/PortModel.hpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/client/PortModel.cpp b/src/client/PortModel.cpp
index a818b04f..80b97e61 100644
--- a/src/client/PortModel.cpp
+++ b/src/client/PortModel.cpp
@@ -35,9 +35,9 @@ PortModel::set_property(const Raul::URI& uri,
bool
-PortModel::has_hint(const std::string& qname) const
+PortModel::port_property(const std::string& uri) const
{
- return has_property(Shared::LV2URIMap::instance().lv2_portProperty, qname);
+ return has_property(Shared::LV2URIMap::instance().lv2_portProperty, Raul::URI(uri));
}
diff --git a/src/client/PortModel.hpp b/src/client/PortModel.hpp
index b199d05b..6021ed19 100644
--- a/src/client/PortModel.hpp
+++ b/src/client/PortModel.hpp
@@ -48,11 +48,11 @@ public:
inline bool is_input() const { return (_direction == INPUT); }
inline bool is_output() const { return (_direction == OUTPUT); }
- bool has_hint(const std::string& qname) const;
+ bool port_property(const std::string& uri) const;
- bool is_logarithmic() const { return has_hint("http://drobilla.net/ns/ingen#logarithmic"); }
- bool is_integer() const { return has_hint("http://lv2plug.in/ns/lv2core#integer"); }
- bool is_toggle() const { return has_hint("http://lv2plug.in/ns/lv2core#toggled"); }
+ bool is_logarithmic() const { return port_property("http://drobilla.net/ns/ingen#logarithmic"); }
+ bool is_integer() const { return port_property("http://lv2plug.in/ns/lv2core#integer"); }
+ bool is_toggle() const { return port_property("http://lv2plug.in/ns/lv2core#toggled"); }
inline bool operator==(const PortModel& pm) const { return (path() == pm.path()); }