The Qt D-Bus XML compiler is a tool that can be used to parse interface descriptions and produce static code representing those interfaces, which can then be used to make calls to remote objects or implement said interfaces.
Questions tagged [qdbusxml2cpp]
7 questions
7
votes
2 answers
qdbusxml2cpp unknown type
While using the qdbusxml2cpp program to convert the following xml to a Qt Class, I am getting this error:
qdbusxml2cpp -c ObjectManager -a ObjectManager:ObjectManager.cpp xml/object_manager.xml
Got unknown type `a{oa{sa{sv}}}'
You should add…

PhilBot
- 748
- 18
- 85
- 173
6
votes
1 answer
Can we generate abstract Qt D-Bus adaptor classes?
I'm using the qdbusxml2cpp tool to generate a D-Bus adaptor class for my D-Bus server. However, it has the following drawbacks:
Code is generated once, and then you're not supposed to modify it. But what if we have to make changes (see below) and…

Thomas
- 174,939
- 50
- 355
- 478
2
votes
2 answers
convert xml to cpp with qdbusxml2cpp get error unknow type (uu)
I use qbusxml2cpp tool in Qt to convert xml to cpp class. I use the command below to convert a xml file named nm-device.xml (I get this xml file from network manager package v0.9.8.8)
qdbusxml2cpp -v -c Devices -p Devices.h:Devices.cpp nm-device.xml…
user6409029
2
votes
1 answer
D-Bus method not found at object path despite the fact that method exist
I implement an app with this com.example.appname.desktop file as follows:
$ cat /usr/local/share/applications/com.example.appname.desktop
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=appname
Exec=/opt/app/appname…

JamesWebbTelescopeAlien
- 3,547
- 2
- 30
- 51
1
vote
1 answer
How to generate synchronous interface class with qdbusxml2cpp?
Problem summary: qdbusxml2cpp generates a QDBusAbstractInterface sub-class whose methods fetch D-Bus replies asynchronously, but I want it to be synchronous (i.e. it should block until the reply is received).
XML input:

DBedrenko
- 4,871
- 4
- 38
- 73
1
vote
1 answer
Screen-saver inhibit script
I would like to automatize screen-saver inhibit, when using Firefox's "plugin-container" for flash player in KDE4. I did not write the original script myself, but I fixed it a bit.
#!/bin/sh
# Simple script to demonstrate D-Bus usage
…

Georges Norchet
- 13
- 2
1
vote
1 answer
How to add the header in autogenerated bindings code by qdbusxml2cpp?
$qdbusxml2cpp -v -c CustomIf -p customif.h:customif.cpp org.item.custom.xml
org.item.custom.xml

dexterous
- 6,422
- 12
- 51
- 99