QDBusServer Class
La classe QDBusServer consente la comunicazione peer-to-peer tra processi presenti sullo stesso computer. Per saperne di più...
| Intestazione: | #include <QDBusServer> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS DBus) target_link_libraries(mytarget PRIVATE Qt6::DBus) |
| qmake: | QT += dbus |
| Eredita da: | QObject |
Funzioni pubbliche
| 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) |
Segnali
| void | newConnection(const QDBusConnection &connection) |
Documentazione delle funzioni membro
[explicit] QDBusServer::QDBusServer(QObject *parent = nullptr)
Crea un oggetto QDBusServer con l'parent specificato. Il server ascolterà le connessioni su /tmp (sui sistemi Unix) oppure su una porta TCP associata a localhost (altrove).
[explicit] QDBusServer::QDBusServer(const QString &address, QObject *parent = nullptr)
Crea un oggetto QDBusServer con l'address specificato e l'parent specificato.
[virtual noexcept] QDBusServer::~QDBusServer()
Distrugge un QDBusServer
QString QDBusServer::address() const
Restituisce l'indirizzo associato a questo server.
bool QDBusServer::isAnonymousAuthenticationAllowed() const
Restituisce true se è consentita l'autenticazione anonima.
Vedi anche setAnonymousAuthenticationAllowed().
bool QDBusServer::isConnected() const
Restituisce ` true ` se l'oggetto ` QDBusServer ` è connesso.
Se non è connesso, è necessario richiamare nuovamente il costruttore.
QDBusError QDBusServer::lastError() const
Restituisce l'ultimo errore verificatosi su questo server.
Questa funzione è prevista per il codice di basso livello.
[signal] void QDBusServer::newConnection(const QDBusConnection &connection)
Questo segnale viene emesso quando viene stabilita una nuova connessione client connection al server.
void QDBusServer::setAnonymousAuthenticationAllowed(bool value)
Se l'opzione ` value ` è impostata su `true`, una connessione in entrata può procedere anche se il client che si connette non è autenticato come utente.
Per impostazione predefinita, questo valore è "false".
Vedi anche 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.