DBusConnection.emitSignal
bool emitSignal(string destinationBusName, string objectPath, string interfaceName, string signalName, glib.variant.Variant parameters = null)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 ([gio.types.IOErrorEnum.InvalidArgument]), or if connection has been closed ([gio.types.IOErrorEnum.Closed]).
Parameters
destinationBusName | the unique bus name for the destination for the signal or null to emit to all listeners |
objectPath | path of remote object |
interfaceName | D-Bus interface to emit a signal on |
signalName | the name of the signal to emit |
parameters | a #GVariant tuple with parameters for the signal or null if not passing parameters |
Returns
true unless error is set
Throws
[ErrorWrap]