Fixed problem with missing include of introspectableInterface.h file in

generated node file. This refers to issue #17.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/18/head
Michele Calgaro 5 years ago
parent 17b82c03cd
commit 6b319e0482
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -375,11 +375,20 @@ static void writeInterfaceIncludes(const TQValueList<Class> interfaces,
}
else
{
bool hasIntrospectable = false;
TQValueList<Class>::const_iterator it = interfaces.begin();
TQValueList<Class>::const_iterator endIt = interfaces.end();
for (; it != endIt; ++it)
{
stream << "#include \"" << (*it).name.lower() << "Interface.h\"" << endl;
if ((*it).dbusName == "org.freedesktop.DBus.Introspectable")
{
hasIntrospectable = true;
}
}
if (!hasIntrospectable)
{
stream << "#include \"introspectableInterface.h\"" << endl;
}
}

Loading…
Cancel
Save