Skip to content

Commit

Permalink
Merge branch 'master' into kdsoap-1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Winter committed Mar 2, 2018
2 parents 6ef4454 + 630948a commit 66a7804
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions kdwsdl2cpp/src/converter_clientstub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -731,14 +731,16 @@ void Converter::convertClientOutputMessage(const Operation &operation,
const Binding &binding, KODE::Class &newClass)
{
// result signal
QString operationName = lowerlize(operation.name());
KODE::Function doneSignal(operationName + QLatin1String("Done"), QLatin1String("void"), KODE::Function::Signal);
doneSignal.setDocs(QLatin1String("This signal is emitted whenever the call to ") + operationName + QLatin1String("() succeeded."));
const QString operationName = lowerlize(operation.name());
const QString signalBase = operationName;
const QString callName = QLatin1String("async") + upperlize(operation.name());
KODE::Function doneSignal(signalBase + QLatin1String("Done"), QLatin1String("void"), KODE::Function::Signal);
doneSignal.setDocs(QLatin1String("This signal is emitted whenever the asynchronous call ") + callName + QLatin1String("() has succeeded."));

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

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

0 comments on commit 66a7804

Please sign in to comment.