Skip to content

Commit

Permalink
[kdwsdl2cpp]Generate includes for the type of the call arguments to t…
Browse files Browse the repository at this point in the history
…he (#228)

client codes even if only async job based implementation is generated.

Fixes #227
  • Loading branch information
martonmiklos authored Jul 28, 2020
1 parent 42faf46 commit c9ea9ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kdwsdl2cpp/src/converter_clientstub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,13 +387,15 @@ bool Converter::convertClientService()
Q_FOREACH (const Part &part, selectedParts(binding, message, operation, true /*input*/)) {
const QString partName = part.name();
ctor.addInitializer(KODE::MemberVariable::memberVariableName(partName) + "()");
jobClass.addHeaderIncludes(mTypeMap.headerIncludes(part.type()));
}

const Message outputMsg = mWSDL.findMessage(operation.output().message());

Q_FOREACH (const Part &part, selectedParts(binding, outputMsg, operation, false /*output*/)) {
const QString varName = mNameMapper.escape(QLatin1String("result") + upperlize(part.name()));
ctor.addInitializer(KODE::MemberVariable::memberVariableName(varName) + "()");
jobClass.addHeaderIncludes(mTypeMap.headerIncludes(part.type()));
}

jobClass.addFunction(ctor);
Expand Down

0 comments on commit c9ea9ad

Please sign in to comment.