QDBusServer Class
La clase QDBusServer proporciona comunicación peer-to-peer entre procesos en el mismo ordenador. Más...
| Cabecera: | #include <QDBusServer> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS DBus)target_link_libraries(mytarget PRIVATE Qt6::DBus) |
| qmake: | QT += dbus |
| Hereda: | QObject |
Funciones Públicas
| 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) |
Señales
| void | newConnection(const QDBusConnection &connection) |
Documentación de las funciones de los miembros
[explicit] QDBusServer::QDBusServer(QObject *parent = nullptr)
Construye un QDBusServer con la dirección parent. El servidor escuchará conexiones en /tmp (en sistemas Unix) o en un puerto TCP vinculado a localhost (en cualquier otro sistema).
[explicit] QDBusServer::QDBusServer(const QString &address, QObject *parent = nullptr)
Construye un QDBusServer con la dirección address y la dirección parent.
[virtual noexcept] QDBusServer::~QDBusServer()
Destruye un QDBusServer
QString QDBusServer::address() const
Devuelve la dirección a la que está asociado este servidor.
bool QDBusServer::isAnonymousAuthenticationAllowed() const
Devuelve true si se permite la autenticación anónima.
Véase también setAnonymousAuthenticationAllowed().
bool QDBusServer::isConnected() const
Devuelve true si este objeto QDBusServer está conectado.
Si no está conectado, es necesario volver a llamar al constructor.
QDBusError QDBusServer::lastError() const
Devuelve el último error ocurrido en este servidor.
Esta función se proporciona para código de bajo nivel.
[signal] void QDBusServer::newConnection(const QDBusConnection &connection)
Esta señal se emite cuando se establece una nueva conexión de cliente connection con el servidor.
void QDBusServer::setAnonymousAuthenticationAllowed(bool value)
Si value está establecido en true, una conexión entrante puede proceder incluso si el cliente que se conecta no está autenticado como usuario.
Por defecto, este valor es false.
Véase también isAnonymousAuthenticationAllowed().
© 2026 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.