From 0c1576d21588ece4e226da04523f36adac3a14c3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 27 May 2009 18:22:56 +0000 Subject: Rename 'destroy' 'delete' ('del' in code) (WebDAV DELETE). Rename 'rename' 'move' (WebDAV MOVE). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2012 a436a847-0d15-0410-975c-d299462d15a1 --- src/client/ClientStore.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/client/ClientStore.cpp') diff --git a/src/client/ClientStore.cpp b/src/client/ClientStore.cpp index c28bdca0..3a1acc21 100644 --- a/src/client/ClientStore.cpp +++ b/src/client/ClientStore.cpp @@ -43,8 +43,8 @@ ClientStore::ClientStore(SharedPtr engine, SharedPtrsignal_object_destroyed.connect(sigc::mem_fun(this, &ClientStore::destroy)); - emitter->signal_object_renamed.connect(sigc::mem_fun(this, &ClientStore::rename)); + emitter->signal_object_destroyed.connect(sigc::mem_fun(this, &ClientStore::del)); + emitter->signal_object_moved.connect(sigc::mem_fun(this, &ClientStore::move)); emitter->signal_new_plugin.connect(sigc::mem_fun(this, &ClientStore::new_plugin)); emitter->signal_put.connect(sigc::mem_fun(this, &ClientStore::put)); emitter->signal_clear_patch.connect(sigc::mem_fun(this, &ClientStore::clear_patch)); @@ -205,7 +205,7 @@ ClientStore::add_plugin(SharedPtr pm) void -ClientStore::destroy(const Path& path) +ClientStore::del(const Path& path) { SharedPtr removed = remove_object(path); removed.reset(); @@ -213,14 +213,14 @@ ClientStore::destroy(const Path& path) } void -ClientStore::rename(const Path& old_path_str, const Path& new_path_str) +ClientStore::move(const Path& old_path_str, const Path& new_path_str) { Path old_path(old_path_str); Path new_path(new_path_str); iterator parent = find(old_path); if (parent == end()) { - cerr << "[Store] Failed to find object " << old_path << " to rename." << endl; + cerr << "[Store] Failed to find object " << old_path << " to move." << endl; return; } -- cgit v1.2.1