QDBusServer¶
The QDBusServer
class provides peer-to-peer communication between processes on the same computer. More…
Synopsis¶
Functions¶
def
address
()def
isConnected
()def
lastError
()def
setAnonymousAuthenticationAllowed
(value)
Signals¶
def
newConnection
(connection)
Detailed Description¶
- class PySide6.QtDBus.QDBusServer([parent=None])¶
PySide6.QtDBus.QDBusServer(address[, parent=None])
- Parameters
address – str
parent –
PySide6.QtCore.QObject
Constructs a QDBusServer
with the given parent
. The server will listen for connections in /tmp
(on Unix systems) or on a TCP port bound to localhost (elsewhere).
Constructs a QDBusServer
with the given address
, and the given parent
.
- PySide6.QtDBus.QDBusServer.address()¶
- Return type
str
Returns the address this server is associated with.
- PySide6.QtDBus.QDBusServer.isAnonymousAuthenticationAllowed()¶
- Return type
bool
Returns true if anonymous authentication is allowed.
See also
- PySide6.QtDBus.QDBusServer.isConnected()¶
- Return type
bool
Returns true
if this QDBusServer
object is connected.
If it isn’t connected, you need to call the constructor again.
- PySide6.QtDBus.QDBusServer.lastError()¶
- Return type
Returns the last error that happened in this server.
This function is provided for low-level code.
- PySide6.QtDBus.QDBusServer.newConnection(connection)¶
- Parameters
connection –
PySide6.QtDBus.QDBusConnection
- PySide6.QtDBus.QDBusServer.setAnonymousAuthenticationAllowed(value)¶
- Parameters
value – bool
If value
is set to true, an incoming connection can proceed even if the connecting client is not authenticated as a user.
By default, this value is false.
See also
© 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.