IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QDBusServer Class

The QDBusServer class provides peer-to-peer communication between processes on the same computer.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QDBusServer Class

  • Header: QDBusServer

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Dbus)

    target_link_libraries(mytarget PRIVATE Qt6::Dbus)

  • qmake: QT += dbus

  • Inherits: QObject

Detailed Description

 

Member Function Documentation

 

[explicit] QDBusServer::QDBusServer(const QString &address, QObject *parent = nullptr)

Constructs a QDBusServer with the given address, and the given parent.

[explicit] QDBusServer::QDBusServer(QObject *parent = nullptr)

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).

[virtual] QDBusServer::~QDBusServer()

Destructs a QDBusServer

QString QDBusServer::address() const

Returns the address this server is associated with.

[since 5.3] bool QDBusServer::isAnonymousAuthenticationAllowed() const

Returns true if anonymous authentication is allowed.

This function was introduced in Qt 5.3.

See Also

bool QDBusServer::isConnected() const

Returns true if this QDBusServer object is connected.

If it isn't connected, you need to call the constructor again.

QDBusError QDBusServer::lastError() const

Returns the last error that happened in this server.

This function is provided for low-level code.

void QDBusServer::newConnection(const QDBusConnection &connection)

This signal is emitted when a new client connection connection is established to the server.

[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

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+