PySide6.QtDBus.QDBusVirtualObject¶
- class QDBusVirtualObject¶
- The - QDBusVirtualObjectclass is used to handle several DBus paths with one class. More…- Synopsis¶- Methods¶- def - __init__()
 - Virtual methods¶- def - handleMessage()
- def - introspect()
 - 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¶- Constructs a - QDBusVirtualObjectwith- parent.- abstract handleMessage(message, connection)¶
- Parameters:
- message – - QDBusMessage
- connection – - 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 methods are all part of the - message. Parameter- connectionis the connection handle. Must return- truewhen the message is handled, otherwise- false(will generate dbus error message).- abstract 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.