summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmanoil Kotsev <deloptes@gmail.com>2025-04-18 10:38:04 +0000
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-28 21:09:00 +0900
commit4f3444b1e1ec7dc2884d25d9e249e6e95c8c9da6 (patch)
treeb22842b5e96a04351256c6d19d7be20d16c56076
parent4cf7fc3e96054079a729339f6f844adceb46c2d1 (diff)
downloaddbus-1-tqt-r14.1.x.tar.gz
dbus-1-tqt-r14.1.x.zip
add a static interface method to the class generatorr14.1.x
Signed-off-by: Emanoil Kotsev <deloptes@gmail.com> (cherry picked from commit 8bc7bd5e9e885fc26ff398602970b189e8c490c3)
-rw-r--r--src/tools/dbusxml2qt3/classgen.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/dbusxml2qt3/classgen.cpp b/src/tools/dbusxml2qt3/classgen.cpp
index 10f982d..96967b8 100644
--- a/src/tools/dbusxml2qt3/classgen.cpp
+++ b/src/tools/dbusxml2qt3/classgen.cpp
@@ -411,6 +411,8 @@ static void openClassDeclaration(const Class& classData,
stream << " virtual ~" << classData.name << "() {}" << endl;
stream << endl;
stream << " static void buildIntrospectionData(TQDomElement& interfaceElement);" << endl;
+ stream << endl;
+ stream << " static const TQCString interface() { return TQCString(\"" << classData.dbusName << "\"); }" <<endl;
break;
case Class::Proxy: