PySide6.QtDBus.QDBusAbstractAdaptor¶
- class QDBusAbstractAdaptor¶
The
QDBusAbstractAdaptorclass is the base class of D-Bus adaptor classes. More…Synopsis¶
Methods¶
def
__init__()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
The
QDBusAbstractAdaptorclass is the starting point for all objects intending to provide interfaces to the external world using D-Bus. This is accomplished by attaching a one or more classes derived fromQDBusAbstractAdaptorto a normal QObject and then registering that QObject withregisterObject.QDBusAbstractAdaptorobjects are intended to be light-weight wrappers, mostly just relaying calls into the real object (its parent) and the signals from it.Each
QDBusAbstractAdaptor-derived class should define the D-Bus interface it is implementing using the Q_CLASSINFO macro in the class definition. Note that only one interface can be exposed in this way.QDBusAbstractAdaptoruses the standard QObject mechanism of signals, slots and properties to determine what signals, methods and properties to export to the bus. Any signal emitted byQDBusAbstractAdaptor-derived classes will be automatically be relayed through any D-Bus connections the object is registered on.Classes derived from
QDBusAbstractAdaptormust be created on the heap using thenewoperator and must not be deleted by the user (they will be deleted automatically when the object they are connected to is also deleted).See also
Constructs a
QDBusAbstractAdaptorwithobjas the parent object.- autoRelaySignals()¶
- Return type:
bool
Returns
trueif automatic signal relaying from the real object (see object()) is enabled, otherwiser returnsfalse.See also
- setAutoRelaySignals(enable)¶
- Parameters:
enable – bool
Toggles automatic signal relaying from the real object (see object()).
Automatic signal relaying consists of signal-to-signal connection of the signals on the parent that have the exact same method signature in both classes.
If
enableis set to true, connect the signals; if set to false, disconnect all signals.See also