Klasse UnixMountEntry

Alle implementierten Schnittstellen:
PointerInterface

public class UnixMountEntry extends Record
Defines a Unix mount entry (e.g. `/media/cdrom`).
This corresponds roughly to a mtab entry.

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

  • Konstruktordetails

  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • compare

      public int compare(@Nonnull UnixMountEntry mount2)
      Compares two Unix mounts.
      Parameter:
      mount2 - second [struct@GioUnix.MountEntry] to compare
      Gibt zurück:
      `1`, `0` or `-1` if @mount1 is greater than, equal to, or less than @mount2, respectively
    • copy

      public UnixMountEntry copy()
      Makes a copy of @mount_entry.
      Gibt zurück:
      a new [struct@GioUnix.MountEntry]
    • free

      public void free()
      Frees a Unix mount.
    • getDevicePath

      public Str getDevicePath()
      Gets the device path for a Unix mount.
      Gibt zurück:
      a string containing the device path
    • getFsType

      public Str getFsType()
      Gets the filesystem type for the Unix mount.
      Gibt zurück:
      a string containing the file system type
    • getMountPath

      public Str getMountPath()
      Gets the mount path for a Unix mount.
      Gibt zurück:
      the mount path for @mount_entry
    • getOptions

      public Str getOptions()
      Gets a comma separated list of mount options for the Unix mount.

      For example: `rw,relatime,seclabel,data=ordered`.

      This is similar to [func@GioUnix.MountPoint.get_options], but it takes
      a [struct@GioUnix.MountEntry] as an argument.
      Gibt zurück:
      a string containing the options, or `NULL` if not available.
    • getRootPath

      public Str getRootPath()
      Gets the root of the mount within the filesystem. This is useful e.g. for
      mounts created by bind operation, or btrfs subvolumes.

      For example, the root path is equal to `/` for a mount created by
      `mount /dev/sda1 /mnt/foo` and `/bar` for
      `mount --bind /mnt/foo/bar /mnt/bar`.
      Gibt zurück:
      a string containing the root, or `NULL` if not supported
    • guessCanEject

      public boolean guessCanEject()
      Guesses whether a Unix mount entry can be ejected.
      Gibt zurück:
      true if @mount_entry is deemed to be ejectable; false otherwise
    • guessIcon

      public Icon guessIcon()
      Guesses the icon of a Unix mount entry.
      Gibt zurück:
      a [iface@Gio.Icon]
    • guessName

      public Str guessName()
      Guesses the name of a Unix mount entry.

      The result is a translated string.
      Gibt zurück:
      a newly allocated translated string
    • guessShouldDisplay

      public boolean guessShouldDisplay()
      Guesses whether a Unix mount entry should be displayed in the UI.
      Gibt zurück:
      true if @mount_entry is deemed to be displayable; false otherwise
    • guessSymbolicIcon

      public Icon guessSymbolicIcon()
      Guesses the symbolic icon of a Unix mount entry.
      Gibt zurück:
      a [iface@Gio.Icon]
    • isReadonly

      public boolean isReadonly()
      Checks if a Unix mount is mounted read only.
      Gibt zurück:
      true if @mount_entry is read only; false otherwise
    • isSystemInternal

      public boolean isSystemInternal()
      Checks if a Unix mount is a system mount.

      This is the Boolean OR of
      [func@GioUnix.is_system_fs_type], [func@GioUnix.is_system_device_path] and
      [func@GioUnix.is_mount_path_system_internal] on @mount_entry’s properties.

      The definition of what a ‘system’ mount entry is may change over time as new
      file system types and device paths are ignored.
      Gibt zurück:
      true if the Unix mount is for a system path; false otherwise
    • 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()