Logo Search packages:      
Sourcecode: kdbus version File versions  Download package

void QDBusProxy::handleDBusSignal ( const QDBusMessage message  )  [protected, virtual, slot]

Handles DBus signals received on the proxy's connection.

The base implementation checks each non-empty property, i.e. service name, object path and interface, with the respective field of the signal's DBus message.

If all available matches succeed, the message is emitted by dbusSignal(), otherwise it is discarded.

Parameters:
message the DBus signal message as received
See also:
QDBusMessage::SignalMessage

Definition at line 185 of file qdbusproxy.cpp.

References dbusSignal(), QDBusMessage::interface(), QDBusMessage::path(), and QDBusMessage::sender().

Referenced by setConnection().

{
    if (!d->path.isEmpty() && d->path != message.path())
        return;

    if (!d->service.isEmpty() && d->service != message.sender())
        return;

    if (!d->interface.isEmpty() && d->interface != message.interface())
        return;

    emit dbusSignal(message);
}


Generated by  Doxygen 1.6.0   Back to index