Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: VolumeMonitorMountpreunmountCallback

[995:7] extends: object

Generated low-level callback wrapper for GIR callback mount-pre-unmount.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • VolumeMonitorMountpreunmountCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, mount, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.

class: VolumeMonitorDrivedisconnectedCallback

[640:7] extends: object

Generated low-level callback wrapper for GIR callback drive-disconnected.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • VolumeMonitorDrivedisconnectedCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, drive, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.

class: VolumeMonitorDriveconnectedCallback

[569:7] extends: object

Generated low-level callback wrapper for GIR callback drive-connected.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • VolumeMonitorDriveconnectedCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, drive, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.

class: VolumeMonitorVolumeaddedCallback

[1137:7] extends: object

Generated low-level callback wrapper for GIR callback volume-added.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • VolumeMonitorVolumeaddedCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, volume, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.

class: VolumeMonitorMountaddedCallback

[853:7] extends: object

Generated low-level callback wrapper for GIR callback mount-added.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • VolumeMonitorMountaddedCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, mount, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.

class: VolumeMonitor

[18:7] extends: object

GVolumeMonitor 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. GVolumeMonitor is not thread-default-context aware (see [method@GLib.MainContext.push_thread_default]), and so should not be used other than from the main thread, with no thread-default-context active. In order to receive updates about volumes and mounts monitored through GVFS, a main loop must be running.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • VolumeMonitor (Handle = null)

    Creates a new VolumeMonitor by wrapping a native handle or another wrapper.

    • @p Handle is the native handle or another wrapper whose handle to adopt.
  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asObject ()

    Wraps this handle as Object.

    • @r A Object object.
  • connectSignal (string Name, CallbackObj)

    Connects one generated callback wrapper to a named signal.

    • @p Name is the signal name.
    • @p CallbackObj is the generated callback wrapper to connect.
    • @r The connected handler id.
  • disconnectSignalHandler (int HandlerId)

    Disconnects one retained signal handler id.

    • @p HandlerId is the signal handler id to disconnect.
    • @r None.
  • setOnDrivechanged (callback Fn, UserData = null)

    Emitted when a drive changes.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (VolumeMonitor Self, Drive Drive).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • setOnDriveconnected (callback Fn, UserData = null)

    Emitted when a drive is connected to the system.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (VolumeMonitor Self, Drive Drive).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • setOnDrivedisconnected (callback Fn, UserData = null)

    Emitted when a drive is disconnected from the system.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (VolumeMonitor Self, Drive Drive).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • setOnDriveejectbutton (callback Fn, UserData = null)

    Emitted when the eject button is pressed on @drive.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (VolumeMonitor Self, Drive Drive).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • setOnDrivestopbutton (callback Fn, UserData = null)

    Emitted when the stop button is pressed on @drive.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (VolumeMonitor Self, Drive Drive).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • setOnMountadded (callback Fn, UserData = null)

    Emitted when a mount is added.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (VolumeMonitor Self, Mount Mount).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • setOnMountchanged (callback Fn, UserData = null)

    Emitted when a mount changes.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (VolumeMonitor Self, Mount Mount).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • setOnMountpreunmount (callback Fn, UserData = null)

    May be emitted when a mount is about to be removed. This signal depends on the backend and is only emitted if GIO was used to unmount.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (VolumeMonitor Self, Mount Mount).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • setOnMountremoved (callback Fn, UserData = null)

    Emitted when a mount is removed.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (VolumeMonitor Self, Mount Mount).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • setOnVolumeadded (callback Fn, UserData = null)

    Emitted when a mountable volume is added to the system.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (VolumeMonitor Self, Volume Volume).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • setOnVolumechanged (callback Fn, UserData = null)

    Emitted when mountable volume is changed.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (VolumeMonitor Self, Volume Volume).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • setOnVolumeremoved (callback Fn, UserData = null)

    Emitted when a mountable volume is removed from the system.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (VolumeMonitor Self, Volume Volume).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • get_connected_drives ()

    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().

    • @r a #GList of connected #GDrive objects..
  • get_mount_for_uuid (string uuid)

    Finds a #GMount object by its UUID (see g_mount_get_uuid())

    • @p uuid is the UUID to look for.
    • @r a #GMount or %NULL if no such mount is available. Free the returned object with g_object_unref()..
  • get_mounts ()

    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().

    • @r a #GList of #GMount objects..
  • get_volume_for_uuid (string uuid)

    Finds a #GVolume object by its UUID (see g_volume_get_uuid())

    • @p uuid is the UUID to look for.
    • @r a #GVolume or %NULL if no such volume is available. Free the returned object with g_object_unref()..
  • get_volumes ()

    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().

    • @r a #GList of #GVolume objects..
  • connected_drives ()

    Returns get_connected_drives as an Aussom list of wrapper objects. This companion method materializes the full collection up front; use get_connected_drives() when lazy or change-notify access is required.

    • @r An Aussom list of elements.
  • mounts ()

    Returns get_mounts as an Aussom list of wrapper objects. This companion method materializes the full collection up front; use get_mounts() when lazy or change-notify access is required.

    • @r An Aussom list of elements.
  • volumes ()

    Returns get_volumes as an Aussom list of wrapper objects. This companion method materializes the full collection up front; use get_volumes() when lazy or change-notify access is required.

    • @r An Aussom list of elements.

class: VolumeMonitorVolumeremovedCallback

[1279:7] extends: object

Generated low-level callback wrapper for GIR callback volume-removed.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • VolumeMonitorVolumeremovedCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, volume, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.

class: VolumeMonitorDriveejectbuttonCallback

[711:7] extends: object

Generated low-level callback wrapper for GIR callback drive-eject-button.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • VolumeMonitorDriveejectbuttonCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, drive, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.

class: VolumeMonitorMountremovedCallback

[1066:7] extends: object

Generated low-level callback wrapper for GIR callback mount-removed.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • VolumeMonitorMountremovedCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, mount, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.

class: VolumeMonitorMeta

[1350:14] static extends: object

Generated metadata helpers for VolumeMonitor class surfaces.

Methods

  • signals ()

    Returns signal metadata for VolumeMonitor.

    • @r A list.

class: VolumeMonitorDrivestopbuttonCallback

[782:7] extends: object

Generated low-level callback wrapper for GIR callback drive-stop-button.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • VolumeMonitorDrivestopbuttonCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, drive, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.

class: VolumeMonitorMountchangedCallback

[924:7] extends: object

Generated low-level callback wrapper for GIR callback mount-changed.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • VolumeMonitorMountchangedCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, mount, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.

class: VolumeMonitorVolumechangedCallback

[1208:7] extends: object

Generated low-level callback wrapper for GIR callback volume-changed.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • VolumeMonitorVolumechangedCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, volume, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.

class: VolumeMonitorDrivechangedCallback

[498:7] extends: object

Generated low-level callback wrapper for GIR callback drive-changed.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • VolumeMonitorDrivechangedCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, drive, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.