Top | ![]() |
![]() |
![]() |
![]() |
ThunarVfsVolumeKind | thunar_vfs_volume_get_kind () |
const gchar * | thunar_vfs_volume_get_name () |
ThunarVfsVolumeStatus | thunar_vfs_volume_get_status () |
ThunarVfsPath * | thunar_vfs_volume_get_mount_point () |
gboolean | thunar_vfs_volume_is_mounted () |
gboolean | thunar_vfs_volume_is_present () |
gboolean | thunar_vfs_volume_is_ejectable () |
gboolean | thunar_vfs_volume_is_removable () |
const gchar * | thunar_vfs_volume_lookup_icon_name () |
gboolean | thunar_vfs_volume_eject () |
gboolean | thunar_vfs_volume_mount () |
gboolean | thunar_vfs_volume_unmount () |
void | changed | Run Last |
void | mounted | Run Last |
void | pre-unmount | Run Last |
void | unmounted | Run Last |
ThunarVfsVolumeKind
thunar_vfs_volume_get_kind (ThunarVfsVolume *volume
);
Returns the kind of drive/device representd by volume
.
ThunarVfsVolumeStatus
thunar_vfs_volume_get_status (ThunarVfsVolume *volume
);
Determines the current status of the volume
, e.g. whether
or not the volume
is currently mounted, or whether a
medium is present.
ThunarVfsPath *
thunar_vfs_volume_get_mount_point (ThunarVfsVolume *volume
);
Determines the current mount point for volume
. If volume
is mounted this will be the location at which it is currently
mounted. Else it will be the location where volume
is most
probably being mounted. Note that this location may change
during a call to thunar_vfs_volume_mount()
, so be sure to
check the mount point after the call to thunar_vfs_volume_mount()
.
gboolean
thunar_vfs_volume_is_mounted (ThunarVfsVolume *volume
);
Determines whether volume
is currently mounted into the
filesystem hierarchy.
gboolean
thunar_vfs_volume_is_present (ThunarVfsVolume *volume
);
Determines whether a medium is currently inserted for
volume
, e.g. for a CD-ROM drive, this will be TRUE
only if a disc is present in the slot.
gboolean
thunar_vfs_volume_is_ejectable (ThunarVfsVolume *volume
);
Determines whether the current user is allowed to eject the medium
for volume
. This method should return TRUE
only if a medium is
present and the volume
is removable. Still, there's no warranty
that a call to thunar_vfs_volume_eject()
will succeed.
gboolean
thunar_vfs_volume_is_removable (ThunarVfsVolume *volume
);
Determines whether volume
is a removable device, for example
a CD-ROM, an USB stick or a floppy drive.
const gchar * thunar_vfs_volume_lookup_icon_name (ThunarVfsVolume *volume
,GtkIconTheme *icon_theme
);
Tries to find a suitable icon for volume
in the given icon_theme
and
returns its name. If no suitable icon is found in icon_theme
, then
a fallback icon name will be returned. This way you can always count
on this method to return a valid string.
gboolean thunar_vfs_volume_eject (ThunarVfsVolume *volume
,GtkWidget *window
,GError **error
);
Tries to eject the medium present for volume
(or atleast to
unmount the volume
).
If ejecting volume
requires some complex user interaction
(basicly everything else than displaying an error dialog), it
should popup a modal dialog on window
(or on the default
GdkScreen if window
is NULL
). But be aware, that if an
implementation of ThunarVfsVolume performs user interaction
during a call to this method, it must implement this method
in a reentrant fashion!
volume |
a ThunarVfsVolume instance. |
|
window |
a GtkWindow or |
|
error |
return location for errors or |
gboolean thunar_vfs_volume_mount (ThunarVfsVolume *volume
,GtkWidget *window
,GError **error
);
Tries to mount volume
. Will return TRUE
if either volume
was already mounted previously to this method invokation or
volume
was successfully mounted now.
If mounting volume
requires some complex user interaction
(basicly everything else than displaying an error dialog), it
should popup a modal dialog on window
(or on the default
GdkScreen if window
is NULL
). But be aware, that if an
implementation of ThunarVfsVolume performs user interaction
during a call to this method, it must implement this method
in a reentrant fashion!
volume |
a ThunarVfsVolume instance. |
|
window |
a GtkWindow or |
|
error |
return location for errors or |
gboolean thunar_vfs_volume_unmount (ThunarVfsVolume *volume
,GtkWidget *window
,GError **error
);
Tries to unmount volume
. Will return TRUE
if either volume
was already unmounted previously to this method invokation or
volume
was successfully unmounted now.
If unmounting volume
requires some complex user interaction
(basicly everything else than displaying an error dialog), it
should popup a modal dialog on window
(or on the default
GdkScreen if window
is NULL
). But be aware, that if an
implementation of ThunarVfsVolume performs user interaction
during a call to this method, it must implement this method
in a reentrant fashion!
volume |
a ThunarVfsVolume instance. |
|
window |
a GtkWindow or |
|
error |
return location for errors or |
Describes the type of a VFS volume.
“changed”
signalvoid user_function (ThunarVfsVolume *volume, gpointer user_data)
Emitted whenever the state of volume
changed.
volume |
the ThunarVfsVolume instance. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“mounted”
signalvoid user_function (ThunarVfsVolume *volume, gpointer user_data)
Emitted by volume
after a successfull mount
operation.
volume |
the ThunarVfsVolume instance. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“pre-unmount”
signalvoid user_function (ThunarVfsVolume *volume, gpointer user_data)
Emitted by volume
right before an attempt
is made to unmount the volume
.
volume |
the ThunarVfsVolume instance. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“unmounted”
signalvoid user_function (ThunarVfsVolume *volume, gpointer user_data)
Emitted by volume
right after the volume
was successfully unmounted.
volume |
the ThunarVfsVolume instance. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last