summaryrefslogtreecommitdiffstats
path: root/src/engine/events/CreateNodeEvent.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-12 22:08:35 +0000
committerDavid Robillard <d@drobilla.net>2009-05-12 22:08:35 +0000
commit96f839e64de70a23210847e322d24690299287fe (patch)
tree08657ed88c8a96f7261a912df1fcfa38cf83851a /src/engine/events/CreateNodeEvent.cpp
parented1032ca54a55c48d2f7c9709b77a4f4da935e99 (diff)
downloadingen-96f839e64de70a23210847e322d24690299287fe.tar.gz
ingen-96f839e64de70a23210847e322d24690299287fe.tar.bz2
ingen-96f839e64de70a23210847e322d24690299287fe.zip
Remove deprecated new_node interface in favour of URI hackery.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1991 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/events/CreateNodeEvent.cpp')
-rw-r--r--src/engine/events/CreateNodeEvent.cpp29
1 files changed, 9 insertions, 20 deletions
diff --git a/src/engine/events/CreateNodeEvent.cpp b/src/engine/events/CreateNodeEvent.cpp
index d88afb89..41470d45 100644
--- a/src/engine/events/CreateNodeEvent.cpp
+++ b/src/engine/events/CreateNodeEvent.cpp
@@ -47,26 +47,15 @@ CreateNodeEvent::CreateNodeEvent(Engine& engine, SharedPtr<Responder> responder,
, _compiled_patch(NULL)
, _node_already_exists(false)
{
-}
-
-
-/** DEPRECATED: Construct from type, library name, and plugin label.
- *
- * Do not use.
- */
-CreateNodeEvent::CreateNodeEvent(Engine& engine, SharedPtr<Responder> responder, SampleCount timestamp, const string& path,
- const string& plugin_type, const string& plugin_lib, const string& plugin_label, bool polyphonic)
-: QueuedEvent(engine, responder, timestamp),
- _path(path),
- _plugin_type(plugin_type),
- _plugin_lib(plugin_lib),
- _plugin_label(plugin_label),
- _polyphonic(polyphonic),
- _patch(NULL),
- _node(NULL),
- _compiled_patch(NULL),
- _node_already_exists(false)
-{
+ if (_plugin_uri.substr(0, 3) == "om:") {
+ size_t colon = 2;
+ _plugin_uri = _plugin_uri.substr(colon + 1);
+ if ((colon = _plugin_uri.find(":")) == string::npos)
+ return;
+ _plugin_type = _plugin_uri.substr(0, colon + 1);
+ _plugin_label = _plugin_uri.substr(colon + 1);
+ _plugin_uri = "";
+ }
}