summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-05-17 20:26:08 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-05-17 20:26:08 +0900
commit6b319e048259b4ea4962d8b7c2cd514a07898745 (patch)
tree4c217e2c566b78d27d4031a347f8d4e48ad7cf99
parent17b82c03cd5f218203cb99b648fc246457a82d9b (diff)
downloaddbus-1-tqt-6b319e048259b4ea4962d8b7c2cd514a07898745.tar.gz
dbus-1-tqt-6b319e048259b4ea4962d8b7c2cd514a07898745.zip
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>
-rw-r--r--src/tools/dbusxml2qt3/classgen.cpp9
1 files changed, 9 insertions, 0 deletions
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<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;
}
}