struct Gio::MountOperation::ShowUnmountProgressSignal

Overview

Emitted when an unmount operation has been busy for more than some time (typically 1.5 seconds).

When unmounting or ejecting a volume, the kernel might need to flush pending data in its buffers to the volume stable storage, and this operation can take a considerable amount of time. This signal may be emitted several times as long as the unmount operation is outstanding, and then one last time when the operation is completed, with @bytes_left set to zero.

Implementations of GMountOperation should handle this signal by showing an UI notification, and then dismiss it, or show another notification of completion, when @bytes_left reaches zero.

If the message contains a line break, the first line should be presented as a heading. For example, it may be used as the primary text in a #Gtk::MessageDialog.

Defined in:

lib/gi-crystal/src/auto/gio-2.0/mount_operation.cr

Instance Method Summary

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(String, Int64, Int64, Nil)) : GObject::SignalConnection #

def connect(handler : Proc(String, Int64, Int64, Nil), *, after : Bool = false) : GObject::SignalConnection #

def connect(handler : Proc(Gio::MountOperation, String, Int64, Int64, Nil), *, after : Bool = false) : GObject::SignalConnection #

def emit(message : String, time_left : Int64, bytes_left : Int64) : Nil #

def name : String #
Description copied from struct GObject::Signal

The signal name