Class UnixMountPoint

All Implemented Interfaces:
PointerInterface

public class UnixMountPoint extends Record
Defines a Unix mount point (e.g. <filename>/dev</filename>).
This corresponds roughly to a fstab entry.

https://docs.gtk.org/gio/struct.UnixMountPoint.html

  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • compare

      public int compare(@Nonnull UnixMountPoint mount2)
      Compares two unix mount points.
      Parameters:
      mount2 - a #GUnixMount.
      Returns:
      1, 0 or -1 if @mount1 is greater than, equal to, or less than @mount2, respectively.
    • copy

      public UnixMountPoint copy()
      Makes a copy of @mount_point.
      Returns:
      a new #GUnixMountPoint
    • free

      public void free()
      Frees a unix mount point.
    • getDevicePath

      public Str getDevicePath()
      Gets the device path for a unix mount point.
      Returns:
      a string containing the device path.
    • getFsType

      public Str getFsType()
      Gets the file system type for the mount point.
      Returns:
      a string containing the file system type.
    • getMountPath

      public Str getMountPath()
      Gets the mount path for a unix mount point.
      Returns:
      a string containing the mount path.
    • getOptions

      public Str getOptions()
      Gets the options for the mount point.
      Returns:
      a string containing the options.
    • guessCanEject

      public boolean guessCanEject()
      Guesses whether a Unix mount point can be ejected.
      Returns:
      %TRUE if @mount_point is deemed to be ejectable.
    • guessIcon

      public Icon guessIcon()
      Guesses the icon of a Unix mount point.
      Returns:
      a #GIcon
    • guessName

      public Str guessName()
      Guesses the name of a Unix mount point.
      The result is a translated string.
      Returns:
      A newly allocated string that must be freed with g_free()
    • guessSymbolicIcon

      public Icon guessSymbolicIcon()
      Guesses the symbolic icon of a Unix mount point.
      Returns:
      a #GIcon
    • isLoopback

      public boolean isLoopback()
      Checks if a unix mount point is a loopback device.
      Returns:
      %TRUE if the mount point is a loopback. %FALSE otherwise.
    • isReadonly

      public boolean isReadonly()
      Checks if a unix mount point is read only.
      Returns:
      %TRUE if a mount point is read only.
    • isUserMountable

      public boolean isUserMountable()
      Checks if a unix mount point is mountable by the user.
      Returns:
      %TRUE if the mount point is user mountable.
    • 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()