summaryrefslogtreecommitdiffstats
path: root/src/tools/dbusxml2qt3/main.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-04-30 23:24:46 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-04-30 23:24:46 +0900
commitd3ff70c037825a37a7c40f12955397ad063f91f7 (patch)
tree8ff95e15505cbedc4015e62dc5881c2127842a61 /src/tools/dbusxml2qt3/main.cpp
parent415cca8630022e155ce159696ece272a6661ddc5 (diff)
downloaddbus-1-tqt-d3ff70c037825a37a7c40f12955397ad063f91f7.tar.gz
dbus-1-tqt-d3ff70c037825a37a7c40f12955397ad063f91f7.zip
Fixed problem with interface file name generation and inclusion. This
relates to #5. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/tools/dbusxml2qt3/main.cpp')
-rw-r--r--src/tools/dbusxml2qt3/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/dbusxml2qt3/main.cpp b/src/tools/dbusxml2qt3/main.cpp
index 0f19dc5..763c998 100644
--- a/src/tools/dbusxml2qt3/main.cpp
+++ b/src/tools/dbusxml2qt3/main.cpp
@@ -139,6 +139,7 @@ int main(int argc, char** argv)
// if no specific option is selected, we generate everything
bool generateAll = !(generateProxies || generateInterfaces || generateNode);
+ TQString customInterfaceFilename = TQString::null;
if (checkForOption(options, "classname"))
{
@@ -183,6 +184,7 @@ int main(int argc, char** argv)
TQTextStream sourceStream;
TQString baseName = options["interface"];
+ customInterfaceFilename = baseName;
if (!baseName.isEmpty())
{
if (!ClassGenerator::initStreams(baseName, headerStream, sourceStream))
@@ -376,7 +378,7 @@ int main(int argc, char** argv)
exit(4);
}
- ClassGenerator::generateNode(classData, interfaces,
+ ClassGenerator::generateNode(classData, interfaces, customInterfaceFilename,
headerStream, sourceStream);
ClassGenerator::finishStreams(baseName, headerStream, sourceStream);