The QDBusServer class provides peer-to-peer communication between processes on the same computer. More...
Header: | #include <QDBusServer> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Dbus) target_link_libraries(mytarget PRIVATE Qt6::Dbus) |
qmake: | QT += dbus |
Inherits: | QObject |
QDBusServer(QObject *parent = nullptr) | |
QDBusServer(const QString &address, QObject *parent = nullptr) | |
virtual | ~QDBusServer() |
QString | address() const |
bool | isAnonymousAuthenticationAllowed() const |
bool | isConnected() const |
QDBusError | lastError() const |
void | setAnonymousAuthenticationAllowed(bool value) |
void | newConnection(const QDBusConnection &connection) |
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.
[signal]
void QDBusServer::newConnection(const QDBusConnection
&connection)This signal is emitted when a new client connection connection is established to the server.
[virtual]
QDBusServer::~QDBusServer()Destructs a QDBusServer
Returns the address this server is associated with.
[since 5.3]
bool QDBusServer::isAnonymousAuthenticationAllowed() constReturns true if anonymous authentication is allowed.
This function was introduced in Qt 5.3.
See also setAnonymousAuthenticationAllowed().
Returns true
if this QDBusServer object is connected.
If it isn't connected, you need to call the constructor again.
Returns the last error that happened in this server.
This function is provided for low-level code.
[since 5.3]
void QDBusServer::setAnonymousAuthenticationAllowed(bool
value)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.
This function was introduced in Qt 5.3.
See also isAnonymousAuthenticationAllowed().
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: