Skip to content

Commit 66a7804

Browse files
author
Allen Winter
committed
Merge branch 'master' into kdsoap-1.7
2 parents 6ef4454 + 630948a commit 66a7804

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

kdwsdl2cpp/src/converter_clientstub.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -731,14 +731,16 @@ void Converter::convertClientOutputMessage(const Operation &operation,
731731
const Binding &binding, KODE::Class &newClass)
732732
{
733733
// result signal
734-
QString operationName = lowerlize(operation.name());
735-
KODE::Function doneSignal(operationName + QLatin1String("Done"), QLatin1String("void"), KODE::Function::Signal);
736-
doneSignal.setDocs(QLatin1String("This signal is emitted whenever the call to ") + operationName + QLatin1String("() succeeded."));
734+
const QString operationName = lowerlize(operation.name());
735+
const QString signalBase = operationName;
736+
const QString callName = QLatin1String("async") + upperlize(operation.name());
737+
KODE::Function doneSignal(signalBase + QLatin1String("Done"), QLatin1String("void"), KODE::Function::Signal);
738+
doneSignal.setDocs(QLatin1String("This signal is emitted whenever the asynchronous call ") + callName + QLatin1String("() has succeeded."));
737739

738740
// error signal
739-
KODE::Function errorSignal(operationName + QLatin1String("Error"), QLatin1String("void"), KODE::Function::Signal);
741+
KODE::Function errorSignal(signalBase + QLatin1String("Error"), QLatin1String("void"), KODE::Function::Signal);
740742
errorSignal.addArgument(QLatin1String("const KDSoapMessage& fault"));
741-
errorSignal.setDocs(QLatin1String("This signal is emitted whenever the call to ") + operationName + QLatin1String("() failed."));
743+
errorSignal.setDocs(QLatin1String("This signal is emitted whenever the asynchronous call ") + callName + QLatin1String("() has failed."));
742744

743745
// finished slot
744746
const QString finishedSlotName = QLatin1String("_kd_slot") + upperlize(operationName) + QLatin1String("Finished");

0 commit comments

Comments
 (0)