Questions tagged [qdbus]

The QDBus namespace, part of the Qt framework, contains miscellaneous identifiers used throughout the QtDBus library.

The QDBus namespace covers the identifiers used in the QtDBus module.

QtDBus is the Qt bindings to the D-Bus inter-process communication system. The QtDBus module provides a native interface to D-Bus using the Qt signals and slots paradigm.

Qt documentation lists the module as being Unix-only but recent versions of D-Bus are supported on Windows and the QtDBus module can be enabled Windows with minimal effort.

64 questions
2
votes
0 answers

dbus screensaver "ActiveChanged" signals not emitted from Ubuntu

I am unable to connect qdbus screensaver ActiveChanged() signal for Ubuntu,but following code works well in Fedora. QDBusConnection sessionConnection=QDBusConnection::sessionBus(); …
Ankur
  • 1,385
  • 11
  • 21
2
votes
0 answers

Bundle additional argument to Qt4 style QDBusConnection::connect() signal/slot connection

I'm working with QtDbus and I need to handle DBus signal. I'm doing this by connecting DBus' signal to Qt slot like this: bool res = QDBusConnection::systemBus().connect(kBusName, adapterPath, kInterfaceName, …
rsht
  • 1,522
  • 12
  • 27
2
votes
1 answer

Extract D-Bus arguments and object path dynamically from net.connman.Manager's GetService method

I am planning to develop an application that will make use of DBus and connman, a wireless manager for embedded devices. From my understanding DBus exposes the methods used by a program, and allows developers to also make use of these methods in…
Alvin Dizon
  • 1,855
  • 14
  • 34
2
votes
0 answers

Stuck with Qt and Bluetooth

I use Qt 5.4 for Windows and I'm trying to write a basic desktop program. I've tried all the examples for bluetooth bundled with Qt. (Scanning, chat, qml scanning...) None of them works. I've researched about that and many says "Compile with Dbus…
user22165
  • 21
  • 1
2
votes
1 answer

QDbus: register multiple objects on same path

If I understand, it is possible to use the registerObject method only once on the same path, even if objects have different interfaces in Q_ClassInfo. Is this correct?
ringo
  • 25
  • 8
2
votes
3 answers

Qt C++ BlueZ 5 QDbus Library

In BlueZ 5 the DBus API has changed substantially. I previously had a working QDbus controller library for BlueZ 4 based on this: https://gitorious.org/qt-bluez-demos/ I've been googling quite a bit and cannot find any existing starting point to…
PhilBot
  • 748
  • 18
  • 85
  • 173
2
votes
1 answer

qdbus - can't connect to dbus signal with struct argument

I'm trying to connect to amarok d-bus signal StatusChange (reference: https://xmms2.org/wiki/MPRIS#StatusChange). Interface and struct is ok because I can connect to simple signal CapsChange(int) in same interface and can get status by GetStatus…
Dibo
  • 1,159
  • 17
  • 34
2
votes
3 answers

Use stderr in lua io.popen to determine faulty function call

I'm making a function that can read the metadata of the current song playing in spotify. This is being programmed in lua since it is an implementation for awesome wm. I got the following line to get all the metadata that I can later use. handle =…
Hoogendijk
  • 100
  • 1
  • 10
2
votes
1 answer

qdbus and marshalling of custom types

I'd like to send a custom c++ class through the Qt DBUS API. I've created the class from the .proto file using the protoc compiler and added them to my project in QtCreator. Now I want to verify that I can send the custom class as a QVariant through…
PhilBot
  • 748
  • 18
  • 85
  • 173
1
vote
0 answers

Connecting to gnome.mediakeys dbus signal

i have this c++ code that tries to connect to the org.gnome.SettingsDaemon.MediaKeys dbus service and listen to its MediaPlayerKeyPressed signal to get notified when a media key is pressed using qt and qdbus. My code complies and runs but i don't…
1
vote
1 answer

How do I convert data from QDBusMessage in a Qt DBus call to a QString c++

In the code below I am getting info about my cell modem. The result is the data that I expect. Now I need to convert "result" to a QString so I can process the data and get the object path or just extract the Object Path directly. I have tried…
Freecat
  • 29
  • 5
1
vote
1 answer

How to properly connect the "PropertiesChanged" Signal of "org.freedesktop.DBus.Properties" to a slot in QT with "QDbusConnection"?

I am implementing an interface to an embedded device which exposes its hardware configuration via a dbus API. At the moment I work out the access to the hardware I/O-pins of the device. While configuring and reading/writing those pins works already…
darkmattercoder
  • 325
  • 6
  • 26
1
vote
1 answer

QDBus Works with my Server as Client but not GDbus

I wrote a simple DBus server in Linux using Qt's QDBus. It is a very small amount of code and the core of it is here: InterfaceDescription::InterfaceDescription() { new ifadapter(this); // Cleans itself up qDebug() << "Creating"; …
PhilBot
  • 748
  • 18
  • 85
  • 173
1
vote
1 answer

Change wallpaper programmatically in KDE

I'd like to write a program in F# to change the wallpaper on Linux. It seems like I need to use dbus and JS to do that in KDE and I'm a bit confused about it. I found this, and tried running qdbus org.kde.plasmashell /PlasmaShell…
ohmree
  • 375
  • 3
  • 15
1
vote
1 answer

communication between server client in qt dbus

I'm new to QT programming. I'm trying to communicate between two qt applications using DBUS, I've been able to create a interface adapter and communicate as follows, Registering service on the server application. connecting to the interface object…
fawfg
  • 11
  • 2