QDBusVirtualObject¶
The QDBusVirtualObject
class is used to handle several DBus paths with one class. More…
Detailed Description¶
- class PySide6.QtDBus.QDBusVirtualObject([parent=None])¶
- Parameters
parent –
PySide6.QtCore.QObject
Constructs a QDBusVirtualObject
with parent
.
- PySide6.QtDBus.QDBusVirtualObject.handleMessage(message, connection)¶
- Parameters
message –
PySide6.QtDBus.QDBusMessage
connection –
PySide6.QtDBus.QDBusConnection
- Return type
bool
This function needs to handle all messages to the path of the virtual object, when the SubPath option is specified. The service, path, interface and methos are all part of the message
. Parameter connection
is the connection handle. Must return true
when the message is handled, otherwise false
(will generate dbus error message).
- PySide6.QtDBus.QDBusVirtualObject.introspect(path)¶
- Parameters
path – str
- Return type
str
This function needs to handle the introspection of the virtual object on path
. It must return xml of the form:
<interface name="org.qtproject.QtDBus.MyObject" > <property access="readwrite" type="i" name="prop1" /> </interface>
If you pass the SubPath option, this introspection has to include all child nodes. Otherwise QDBus handles the introspection of the child nodes.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.