Fixed generation of Introspectable interface file. This resolves #17.

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

@ -383,8 +383,6 @@ static void writeInterfaceIncludes(const TQValueList<Class> interfaces,
}
}
stream << "#include \"introspectableInterface.h\"" << endl;
stream << endl;
}

@ -116,8 +116,9 @@ int main(int argc, char** argv)
if (ClassGenerator::extractClass(element, classData))
{
if (classData.dbusName == "org.freedesktop.DBus.Introspectable")
{
hasIntrospectable = true;
else
}
interfaces << classData;
}
}
@ -253,6 +254,11 @@ int main(int argc, char** argv)
TQValueList<Class>::const_iterator endIt = interfaces.end();
for (; it != endIt; ++it)
{
if ((*it).dbusName == "org.freedesktop.DBus.Introspectable")
{
continue;
}
TQString streamName = (*it).name.lower() + "Proxy";
if (baseName.isEmpty())
{

@ -519,6 +519,11 @@ static void writeNodeInitialization(const Class& classData,
TQValueList<Class>::const_iterator endIt = interfaces.end();
for (; it != endIt; ++it)
{
if ((*it).dbusName == "org.freedesktop.DBus.Introspectable")
{
continue;
}
stream << endl;
stream << " name = \"" << (*it).dbusName << "\";" << endl;
stream << " interface = createInterface(name);" << endl;

Loading…
Cancel
Save