Package ch.bailu.gtk.gio
Klasse UnixMountEntry
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gio.UnixMountEntry
- Alle implementierten Schnittstellen:
PointerInterface
Defines a Unix mount entry (e.g. `/media/cdrom`).
This corresponds roughly to a mtab entry.
This corresponds roughly to a mtab entry.
-
Feldübersicht
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
compare
(UnixMountEntry mount2) Compares two Unix mounts.copy()
Makes a copy of @mount_entry.void
free()
Frees a Unix mount.static ClassHandler
Gets the device path for a Unix mount.Gets the filesystem type for the Unix mount.static int
Gets the mount path for a Unix mount.Gets a comma separated list of mount options for the Unix mount.static long
static TypeSystem.TypeSize
Gets the root of the mount within the filesystem.static long
static TypeSystem.TypeSize
boolean
Guesses whether a Unix mount entry can be ejected.Guesses the icon of a Unix mount entry.Guesses the name of a Unix mount entry.boolean
Guesses whether a Unix mount entry should be displayed in the UI.Guesses the symbolic icon of a Unix mount entry.boolean
Checks if a Unix mount is mounted read only.boolean
Checks if a Unix mount is a system mount.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
UnixMountEntry
-
-
Methodendetails
-
getClassHandler
-
compare
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
Makes a copy of @mount_entry.- Gibt zurück:
- a new [struct@GioUnix.MountEntry]
-
free
public void free()Frees a Unix mount. -
getDevicePath
Gets the device path for a Unix mount.- Gibt zurück:
- a string containing the device path
-
getFsType
Gets the filesystem type for the Unix mount.- Gibt zurück:
- a string containing the file system type
-
getMountPath
Gets the mount path for a Unix mount.- Gibt zurück:
- the mount path for @mount_entry
-
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
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
Guesses the icon of a Unix mount entry.- Gibt zurück:
- a [iface@Gio.Icon]
-
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
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
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-