diff options
author | David Robillard <d@drobilla.net> | 2012-04-14 02:58:12 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-14 02:58:12 +0000 |
commit | 99e701a8247c3e26251b045a93d826decd55e831 (patch) | |
tree | dc0806226d606b184f53284712cf25048cdd2e17 /ingen/client | |
parent | f74b7279cf959a3b8f943e89db350af432ae78a8 (diff) | |
download | ingen-99e701a8247c3e26251b045a93d826decd55e831.tar.gz ingen-99e701a8247c3e26251b045a93d826decd55e831.tar.bz2 ingen-99e701a8247c3e26251b045a93d826decd55e831.zip |
Update URIs.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4184 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'ingen/client')
-rw-r--r-- | ingen/client/PortModel.hpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/ingen/client/PortModel.hpp b/ingen/client/PortModel.hpp index b6013d05..2307e5fe 100644 --- a/ingen/client/PortModel.hpp +++ b/ingen/client/PortModel.hpp @@ -23,6 +23,9 @@ #include "raul/SharedPtr.hpp" #include "raul/log.hpp" +#include "lv2/lv2plug.in/ns/ext/port-props/port-props.h" +#include "lv2/lv2plug.in/ns/lv2core/lv2.h" + #include "ingen/Port.hpp" #include "ingen/client/ObjectModel.hpp" @@ -50,12 +53,12 @@ public: bool port_property(const Raul::URI& uri) const; - 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"); } + bool is_logarithmic() const { return port_property(LV2_PORT_PROPS__logarithmic); } + bool is_integer() const { return port_property(LV2_CORE__integer); } + bool is_toggle() const { return port_property(LV2_CORE__toggled); } bool is_numeric() const { - return ObjectModel::is_a("http://lv2plug.in/ns/lv2core#ControlPort") - || ObjectModel::is_a("http://lv2plug.in/ns/ext/cv-port#CVPort"); + return ObjectModel::is_a(LV2_CORE__ControlPort) + || ObjectModel::is_a(LV2_CORE__CVPort); } inline bool operator==(const PortModel& pm) const { return (path() == pm.path()); } |