summaryrefslogtreecommitdiffstats
path: root/src/client/ClientStore.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-11-16 16:50:59 +0000
committerDavid Robillard <d@drobilla.net>2008-11-16 16:50:59 +0000
commit422694ebc886882fc8c2f0555a725d052dfc935c (patch)
tree39474e6c6dea95328eeed3963d5dcf0f958397d1 /src/client/ClientStore.cpp
parentf1b0b3495340399bebb93b20ed9a264a3db4e5da (diff)
downloadingen-422694ebc886882fc8c2f0555a725d052dfc935c.tar.gz
ingen-422694ebc886882fc8c2f0555a725d052dfc935c.tar.bz2
ingen-422694ebc886882fc8c2f0555a725d052dfc935c.zip
More HTTP.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1726 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/ClientStore.cpp')
-rw-r--r--src/client/ClientStore.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/client/ClientStore.cpp b/src/client/ClientStore.cpp
index 4c4e452c..cf1109cf 100644
--- a/src/client/ClientStore.cpp
+++ b/src/client/ClientStore.cpp
@@ -44,6 +44,7 @@ ClientStore::ClientStore(SharedPtr<EngineInterface> engine, SharedPtr<SigClientI
emitter->signal_object_destroyed.connect(sigc::mem_fun(this, &ClientStore::destroy));
emitter->signal_object_renamed.connect(sigc::mem_fun(this, &ClientStore::rename));
+ emitter->signal_new_object.connect(sigc::mem_fun(this, &ClientStore::new_object));
emitter->signal_new_plugin.connect(sigc::mem_fun(this, &ClientStore::new_plugin));
emitter->signal_new_patch.connect(sigc::mem_fun(this, &ClientStore::new_patch));
emitter->signal_new_node.connect(sigc::mem_fun(this, &ClientStore::new_node));
@@ -428,7 +429,7 @@ ClientStore::new_plugin(const string& uri, const string& type_uri, const string&
}
-void
+bool
ClientStore::new_object(const Shared::GraphObject* object)
{
using namespace Shared;
@@ -436,20 +437,22 @@ ClientStore::new_object(const Shared::GraphObject* object)
const Patch* patch = dynamic_cast<const Patch*>(object);
if (patch) {
new_patch(patch->path(), patch->internal_polyphony());
- return;
+ return true;
}
const Node* node = dynamic_cast<const Node*>(object);
if (node) {
new_node(node->path(), node->plugin()->uri());
- return;
+ return true;
}
const Port* port = dynamic_cast<const Port*>(object);
if (port) {
new_port(port->path(), port->type().uri(), port->index(), !port->is_input());
- return;
+ return true;
}
+
+ return false;
}