summaryrefslogtreecommitdiffstats
path: root/src/tools/dbusxml2qt3/classgen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/dbusxml2qt3/classgen.cpp')
-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;
}
}