Klasse UnixMountMonitor

Alle implementierten Schnittstellen:
PointerInterface

public class UnixMountMonitor extends PropertyHolder
Watches for changes to the set of mount entries and mount points in the
system.

Connect to the [signal@GioUnix.MountMonitor::mounts-changed] signal to be
notified of changes to the [struct@GioUnix.MountEntry] list.

Connect to the [signal@GioUnix.MountMonitor::mountpoints-changed] signal to
be notified of changes to the [struct@GioUnix.MountPoint] list.

https://docs.gtk.org/gio/class.UnixMountMonitor.html

  • Felddetails

  • Konstruktordetails

    • UnixMountMonitor

      public UnixMountMonitor(PointerContainer pointer)
    • UnixMountMonitor

      @Deprecated public UnixMountMonitor()
      Veraltet.
      Deprecated alias for [func@GioUnix.MountMonitor.get].

      This function was never a true constructor, which is why it was
      renamed.
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • setRateLimit

      @Deprecated public void setRateLimit(int limit_msec)
      Veraltet.
      This function does nothing.

      Before 2.44, this was a partially-effective way of controlling the
      rate at which events would be reported under some uncommon
      circumstances. Since @mount_monitor is a singleton, it also meant
      that calling this function would have side effects for other users of
      the monitor.
      Parameter:
      limit_msec - a integer with the limit (in milliseconds) to poll for changes
    • onMountpointsChanged

      public SignalHandler onMountpointsChanged(UnixMountMonitor.OnMountpointsChanged signal)
      Connect to signal "mountpoints-changed".
      See UnixMountMonitor.OnMountpointsChanged.onMountpointsChanged() for signal description.
      Field SIGNAL_ON_MOUNTPOINTS_CHANGED contains original signal name and can be used as resource reference.
      Parameter:
      signal - callback function (lambda).
      Gibt zurück:
      SignalHandler. Can be used to disconnect signal and to release callback function.
    • onMountsChanged

      public SignalHandler onMountsChanged(UnixMountMonitor.OnMountsChanged signal)
      Connect to signal "mounts-changed".
      See UnixMountMonitor.OnMountsChanged.onMountsChanged() for signal description.
      Field SIGNAL_ON_MOUNTS_CHANGED contains original signal name and can be used as resource reference.
      Parameter:
      signal - callback function (lambda).
      Gibt zurück:
      SignalHandler. Can be used to disconnect signal and to release callback function.
    • get

      public static UnixMountMonitor get()
      Gets the [class@GioUnix.MountMonitor] for the current thread-default main
      context.

      The mount monitor can be used to monitor for changes to the list of
      mounted filesystems as well as the list of mount points (ie: fstab
      entries).

      You must only call [method@GObject.Object.unref] on the return value from
      under the same main context as you called this function.
      Gibt zurück:
      the [class@GioUnix.MountMonitor]
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()