From 6b319e048259b4ea4962d8b7c2cd514a07898745 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 17 May 2019 20:26:08 +0900 Subject: Fixed problem with missing include of introspectableInterface.h file in generated node file. This refers to issue #17. Signed-off-by: Michele Calgaro --- src/tools/dbusxml2qt3/classgen.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/tools/dbusxml2qt3/classgen.cpp') diff --git a/src/tools/dbusxml2qt3/classgen.cpp b/src/tools/dbusxml2qt3/classgen.cpp index 41bb576..9eacdf4 100644 --- a/src/tools/dbusxml2qt3/classgen.cpp +++ b/src/tools/dbusxml2qt3/classgen.cpp @@ -375,11 +375,20 @@ static void writeInterfaceIncludes(const TQValueList interfaces, } else { + bool hasIntrospectable = false; TQValueList::const_iterator it = interfaces.begin(); TQValueList::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; } } -- cgit v1.2.1