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
1
vote
1 answer

Exact type of QDBusArgument

Using currentType() I can get the ElementType of a QDBusArgument. That is a very unprecise information that tells me if it is an array, a basic type etc. I could not find a way to dig deeper. E.g. if it is a basic type... which exactly? Short?…
Silicomancer
  • 8,604
  • 10
  • 63
  • 130
1
vote
1 answer

QtDBus Simply Example With PowerManager

I'm trying to use QtDbus to communicate with interface provided by PowerManager in my system. My goal is very simple. I will be writing code which causes my system to hibernate using DBus interface. So, I installed d-feet application to see what…
Mbded
  • 1,754
  • 4
  • 23
  • 43
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 …
1
vote
1 answer

dbus session connections: connecting dbus signals with qt slots, how can it be done?

So, for the life of me, I can't get my object to connect to the session bus. So, I'm trying to connect "wakeup" of "my_obj" to the dBus signal "profileChanged". But, even though I'm sure (via qbusviewer) that this signal is being emitted, "wakeup"…
user2602914
  • 301
  • 3
  • 11
1
vote
0 answers

How to emit Dbus signal in C

I am having a method and signal. From one process which is developed in Qt Creator 5.2.1, has 1 method and 1 signal. The method is called using QDbusConnection and QDbusMessage. The signal is connected with one slot. A remote application which is to…
user3793746
  • 117
  • 1
  • 1
  • 2
1
vote
1 answer

QDBus interface watch - g_bus_watch_name

Does Qt expose a method to watch a DBus interface, similar with g_bus_watch_name? I want to know when an application is started or closed, watching its DBus interface.
1
vote
1 answer

QT-Dbus signals/slots?

How can I hook my QT slot to respond to a D-BUS signals generated by some 3rd party service? Is the following right? QDBusConnection bus = QDBusConnection::systemBus(); bus.connect("com.me.foo", "/", "com.me.foo.bar", "foo", this,…
James Bennet
  • 603
  • 2
  • 10
  • 22
1
vote
1 answer

How to Disconnect a python DBus connection?

I made some kind of answering machine for pidgin client that uses Linuxes DBus to make connection with pidgin. the code is this: class DBus_Answer(): def __init__(self, text = "No text"): self.answer = text bus_loop =…
Shahin
  • 1,415
  • 4
  • 22
  • 33
0
votes
0 answers

Python PyQt6 QtDBus Interface Method Call

I am having trouble calling a method to the D-Bus. Check this code: class DBusAdaptor(QDBusAbstractAdaptor): pyqtClassInfo('D-Bus Interface', 'org.pyqt.LinuxCleaner') pyqtClassInfo('D-Bus Path', '/LinuxCleaner') def __init__(self,…
malonn
  • 59
  • 1
  • 7
0
votes
0 answers

qdbus over TCP on mobile

I have running services (written in c++) communicating with each other by dbus on a linux host, and everything is working great. I was wondering if It's even possible to communicate with those dbus'es over TCP from mobile phones (iOS and Android)…
0
votes
0 answers

Changing the timeout value on QDbusInterface does not seem to do anything

I've got a QDbus communication set up that calls a method on the server side. It works for most requests, but not if the request processing time is higher than the default QDbus timeout of 25 seconds (I have tried with different processing times).…
EmS
  • 1
  • 2
0
votes
1 answer

How to pass a DBus variant to Qt's QDBusInterface::call

I am trying to send the following message to Connman over Qt 5.12's DBus API: dbus-send --system --print-reply --dest=net.connman / net.connman.Manager.SetProperty string:"OfflineMode" variant:boolean:true As seen, the SetProperty method takes a…
Logan
  • 181
  • 1
  • 10
0
votes
1 answer

Not receiving correct D-Bus reply with Qt

I want to get idle time on Gnome. The following command works when typed into a terminal: dbus-send --print-reply --dest=org.gnome.Mutter.IdleMonitor /org/gnome/Mutter/IdleMonitor/Core org.gnome.Mutter.IdleMonitor.GetIdletime I'm new to Qt D-Bus and…
Ricky Kresslein
  • 372
  • 1
  • 13
0
votes
1 answer

how call GetSettings qt qdbus network manager?

I'm calling the ListConnections method to list all the connections already configured on the system. I am trying to use the getSettings method of the network manager to retrieve the id of each connection, then delete a specific connection with the…
0
votes
1 answer

How to get QDBusObjectPath in DBus?

I have a problem in extracting the returned value from a method called on DBus, here is my code: QDBusPendingReply reply = m_sysroot->GetOS(QStringLiteral("fedora")); reply.waitForFinished(); if(!…