From 3c5931bb13b5f88edcebb375fa6964dde8b85563 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 26 Jul 2012 15:27:03 +0000 Subject: Report subject with errors to client for more meaningful error messages. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4556 a436a847-0d15-0410-975c-d299462d15a1 --- ingen/client/ClientStore.hpp | 2 +- ingen/client/SigClientInterface.hpp | 6 +++--- ingen/client/ThreadedSigClientInterface.hpp | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'ingen/client') diff --git a/ingen/client/ClientStore.hpp b/ingen/client/ClientStore.hpp index 1512b941..b5a51a83 100644 --- a/ingen/client/ClientStore.hpp +++ b/ingen/client/ClientStore.hpp @@ -102,7 +102,7 @@ public: void set_response_id(int32_t id) {} void get(const Raul::URI& uri) {} - void response(int32_t id, Status status) {} + void response(int32_t id, Status status, const std::string& subject) {} void error(const std::string& msg) {} INGEN_SIGNAL(new_object, void, SharedPtr); diff --git a/ingen/client/SigClientInterface.hpp b/ingen/client/SigClientInterface.hpp index 8b43bca0..4aef5a40 100644 --- a/ingen/client/SigClientInterface.hpp +++ b/ingen/client/SigClientInterface.hpp @@ -47,7 +47,7 @@ public: Raul::URI uri() const { return "http://drobilla.net/ns/ingen#internal"; } - INGEN_SIGNAL(response, void, int32_t, Status) + INGEN_SIGNAL(response, void, int32_t, Status, std::string) INGEN_SIGNAL(bundle_begin, void) INGEN_SIGNAL(bundle_end, void) INGEN_SIGNAL(error, void, std::string) @@ -75,8 +75,8 @@ protected: void bundle_end() { EMIT(bundle_end); } - void response(int32_t id, Status status) - { EMIT(response, id, status); } + void response(int32_t id, Status status, const std::string& subject) + { EMIT(response, id, status, subject); } void error(const std::string& msg) { EMIT(error, msg); } diff --git a/ingen/client/ThreadedSigClientInterface.hpp b/ingen/client/ThreadedSigClientInterface.hpp index 71e1b2ee..c321f438 100644 --- a/ingen/client/ThreadedSigClientInterface.hpp +++ b/ingen/client/ThreadedSigClientInterface.hpp @@ -73,8 +73,8 @@ public: void bundle_end() { push_sig(bundle_end_slot); } - void response(int32_t id, Status status) - { push_sig(sigc::bind(response_slot, id, status)); } + void response(int32_t id, Status status, const std::string& subject) + { push_sig(sigc::bind(response_slot, id, status, subject)); } void error(const std::string& msg) { push_sig(sigc::bind(error_slot, msg)); } @@ -149,7 +149,7 @@ private: sigc::slot bundle_begin_slot; sigc::slot bundle_end_slot; - sigc::slot response_slot; + sigc::slot response_slot; sigc::slot error_slot; sigc::slot new_plugin_slot; sigc::slot