Package ch.bailu.gtk.gio
Class UnixMountPoint
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gio.UnixMountPoint
- All Implemented Interfaces:
PointerInterface
Defines a Unix mount point (e.g. <filename>/dev</filename>).
This corresponds roughly to a fstab entry.
This corresponds roughly to a fstab entry.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compare
(UnixMountPoint mount2) Compares two unix mount points.copy()
Makes a copy of @mount_point.void
free()
Frees a unix mount point.static ClassHandler
Gets the device path for a unix mount point.Gets the file system type for the mount point.static int
Gets the mount path for a unix mount point.Gets the options for the mount point.static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
boolean
Guesses whether a Unix mount point can be ejected.Guesses the icon of a Unix mount point.Guesses the name of a Unix mount point.Guesses the symbolic icon of a Unix mount point.boolean
Checks if a unix mount point is a loopback device.boolean
Checks if a unix mount point is read only.boolean
Checks if a unix mount point is mountable by the user.Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Constructor Details
-
UnixMountPoint
-
-
Method Details
-
getClassHandler
-
compare
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
Makes a copy of @mount_point.- Returns:
- a new #GUnixMountPoint
-
free
public void free()Frees a unix mount point. -
getDevicePath
Gets the device path for a unix mount point.- Returns:
- a string containing the device path.
-
getFsType
Gets the file system type for the mount point.- Returns:
- a string containing the file system type.
-
getMountPath
Gets the mount path for a unix mount point.- Returns:
- a string containing the mount path.
-
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
Guesses the icon of a Unix mount point.- Returns:
- a #GIcon
-
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
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
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-