DBusConnection.emitSignal

Emits a signal.

If the parameters GVariant is floating, it is consumed.

This can only fail if @parameters is not compatible with the D-Bus protocol (%G_IO_ERROR_INVALID_ARGUMENT), or if @connection has been closed (%G_IO_ERROR_CLOSED).

class DBusConnection
bool
emitSignal

Parameters

destinationBusName string

the unique bus name for the destination for the signal or %NULL to emit to all listeners

objectPath string

path of remote object

interfaceName string

D-Bus interface to emit a signal on

signalName string

the name of the signal to emit

parameters Variant

a #GVariant tuple with parameters for the signal or %NULL if not passing parameters

Return Value

Type: bool

%TRUE unless @error is set

Throws

GException on failure.

Meta

Since

2.26