struct Gio::DebugControllerDBus::AuthorizeSignal
- Gio::DebugControllerDBus::AuthorizeSignal
- GObject::Signal
- Struct
- Value
- Object
Overview
Emitted when a D-Bus peer is trying to change the debug settings and used to determine if that is authorized.
This signal is emitted in a dedicated worker thread, so handlers are
allowed to perform blocking I/O. This means that, for example, it is
appropriate to call polkit_authority_check_authorization_sync()
to check
authorization using polkit.
If false
is returned then no further handlers are run and the request to
change the debug settings is rejected.
Otherwise, if true
is returned, signal emission continues. If no handlers
return false
, then the debug settings are allowed to be changed.
Signal handlers must not modify @invocation, or cause it to return a value.
The default class handler just returns true
.
Defined in:
lib/gi-crystal/src/auto/gio-2.0/debug_controller_d_bus.crInstance Method Summary
- #connect(*, after : Bool = false, &block : Proc(Gio::DBusMethodInvocation, Bool)) : GObject::SignalConnection
- #connect(handler : Proc(Gio::DBusMethodInvocation, Bool), *, after : Bool = false) : GObject::SignalConnection
- #connect(handler : Proc(Gio::DebugControllerDBus, Gio::DBusMethodInvocation, Bool), *, after : Bool = false) : GObject::SignalConnection
- #emit(invocation : Gio::DBusMethodInvocation) : Nil
-
#name : String
The signal name
Instance methods inherited from struct GObject::Signal
[](detail : String) : self
[],
name : String
name
Constructor methods inherited from struct GObject::Signal
new(source : GObject::Object, detail : String? = nil)
new
Instance Method Detail
def connect(*, after : Bool = false, &block : Proc(Gio::DBusMethodInvocation, Bool)) : GObject::SignalConnection
#
def connect(handler : Proc(Gio::DBusMethodInvocation, Bool), *, after : Bool = false) : GObject::SignalConnection
#
def connect(handler : Proc(Gio::DebugControllerDBus, Gio::DBusMethodInvocation, Bool), *, after : Bool = false) : GObject::SignalConnection
#