W Wrapl, The Programming Language

Libraries:Gtk:Gio:GVolumeMonitor

Types

T

Inherits from:

T is for listing the user interesting devices and volumes on the computer. In other words, what a file selector or file manager would show in a sidebar.

T is not thread-default-context aware, and so should not be used other than from the main thread, with no thread-default-context active.



Constants

Nil : T

Functions

AdoptOrphanMount(mount @ Gtk.Gio.GMount.T) : Gtk.Gio.GVolume.T

Warning

AdoptOrphanMount has been deprecated since version 2.20 and should not be used in newly-written code. Instead of using this function, T implementations should instead create shadow mounts with the URI of the mount they intend to adopt. See the proxy volume monitor in gvfs for an example of this. Also see Gtk.Gio.GMount.IsShadowed, Gtk.Gio.GMount.Shadow and Gtk.Gio.GMount.Unshadow functions.



Get() : Gtk.Gio.GVolumeMonitor.T

Gets the volume monitor used by gio.

Returns a reference to the T used by gio. Call g_object_unref() when done with it. [transfer full]


GetType() : Gtk.GObject.Type.T



Methods

:GetConnectedDrives(self @ T) : Std.Object.T

Gets a list of drives connected to the system.

The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().

volume_monitor a T.
Returns a GList of connected Gtk.Gio.GDrive.T objects. [element-type GDrive][transfer full]


:GetMountForUuid(self @ T, uuid @ Std.String.T) : Gtk.Gio.GMount.T

Finds a Gtk.Gio.GMount.T object by its UUID (see Gtk.Gio.GMount.GetUuid)

volume_monitor a T.
uuid the UUID to look for
Returns a Gtk.Gio.GMount.T or NULL if no such mount is available. Free the returned object with g_object_unref(). [transfer full]


:GetMounts(self @ T) : Std.Object.T

Gets a list of the mounts on the system.

The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().

volume_monitor a T.
Returns a GList of Gtk.Gio.GMount.T objects. [element-type GMount][transfer full]


:GetVolumeForUuid(self @ T, uuid @ Std.String.T) : Gtk.Gio.GVolume.T

Finds a Gtk.Gio.GVolume.T object by its UUID (see Gtk.Gio.GVolume.GetUuid)

volume_monitor a T.
uuid the UUID to look for
Returns a Gtk.Gio.GVolume.T or NULL if no such volume is available. Free the returned object with g_object_unref(). [transfer full]


:GetVolumes(self @ T) : Std.Object.T

Gets a list of the volumes on the system.

The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().

volume_monitor a T.
Returns a GList of Gtk.Gio.GVolume.T objects. [element-type GVolume][transfer full]


:Priv(self @ T) : Std.Address.T

:setPriv(self @ T, value @ Std.Address.T) : Std.Address.T