summaryrefslogtreecommitdiffstats
path: root/tools/dbusxml2qt3/methodgen.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-05-17 22:14:30 -0500
committerSlávek Banko <slavek.banko@axis.cz>2015-12-17 21:45:00 +0100
commit0b05ba48f5e8fdeafc44c182e36a8a66e7ae0244 (patch)
tree39ed77a47b4246d6839b8131c8576714f356b718 /tools/dbusxml2qt3/methodgen.cpp
parentb3511a6ec42b315dd6b784cf45d836cec0214cbb (diff)
downloaddbus-1-tqt-0b05ba48f5e8fdeafc44c182e36a8a66e7ae0244.tar.gz
dbus-1-tqt-0b05ba48f5e8fdeafc44c182e36a8a66e7ae0244.zip
Add ability to obtain error messages from async calls
(cherry picked from commit 6d564efb42ba51ff8e3d6512aa8edb964b6f2306)
Diffstat (limited to 'tools/dbusxml2qt3/methodgen.cpp')
-rw-r--r--tools/dbusxml2qt3/methodgen.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/dbusxml2qt3/methodgen.cpp b/tools/dbusxml2qt3/methodgen.cpp
index 3ec5d87..0707942 100644
--- a/tools/dbusxml2qt3/methodgen.cpp
+++ b/tools/dbusxml2qt3/methodgen.cpp
@@ -1576,7 +1576,11 @@ void MethodGenerator::writeProxyAsyncReplyHandler(const Class& classData,
// FIXME tricking writeVariables and writeSignalEmit into writing
// the reply emit code by manipulating arguments and name
- stream << " int _asyncCallId = asyncCallId;" << endl;
+ stream << " int _asyncCallId = asyncCallId;" << endl << endl;
+
+ stream << " if (message.type() == TQT_DBusMessage::ErrorMessage) {" << endl;
+ stream << " emit AsyncErrorResponseDetected(_asyncCallId, message.error());" << endl;
+ stream << " }" << endl << endl;
Method signal = *it;
signal.arguments.pop_front();