Next: , Previous: GnomeVFSDrive, Up: Top


12 GnomeVFSVolumeMonitor

Monitors volume mounts and unmounts

12.1 Overview

12.2 Usage

— Class: <gnome-vfs-volume-monitor>

Derives from <gobject>.

This class defines no direct slots.

— Signal on <gnome-vfs-volume-monitor>: volume-mounted (arg0 <gnome-vfs-volume>)

This signal is emitted after the <gnome-vfs-volume>volume has been mounted.

When the volume is mounted, it is present in the volume-monitor's list of mounted volumes, which can be queried using gnome-vfs-volume-monitor-get-mounted-volumes.

If the volume has an associated <gnome-vfs-drive>, it also appears in the drive's list of mounted volumes, which can be queried using gnome-vfs-drive-get-mounted-volumes.

— Signal on <gnome-vfs-volume-monitor>: volume-pre-unmount (arg0 <gnome-vfs-volume>)

This signal is emitted when the <gnome-vfs-volume>volume is about to be unmounted.

When the volume is unmounted, it is removed from the volume-monitor's list of mounted volumes, which can be queried using gnome-vfs-volume-monitor-get-mounted-volumes.

If the volume has an associated <gnome-vfs-drive>, it is also removed from in the drive's list of mounted volumes, which can be queried using gnome-vfs-drive-get-mounted-volumes.

When a client application receives this signal, it must free all resources associated with the volume, for instance cancel all pending file operations on the volume, and cancel all pending file monitors using gnome-vfs-monitor-cancel.

— Signal on <gnome-vfs-volume-monitor>: volume-unmounted (arg0 <gnome-vfs-volume>)

This signal is emitted after the <gnome-vfs-volume>volume has been unmounted.

When the volume is unmounted, it is removed from the volume-monitor's list of mounted volumes, which can be queried using gnome-vfs-volume-monitor-get-mounted-volumes.

If the volume has an associated <gnome-vfs-drive>, it is also removed from in the drive's list of mounted volumes, which can be queried using gnome-vfs-drive-get-mounted-volumes.

— Signal on <gnome-vfs-volume-monitor>: drive-connected (arg0 <gnome-vfs-drive>)

This signal is emitted when the <gnome-vfs-drive>drive has been connected.

When the drive is connected, it is present in the volume-monitor's list of connected drives, which can be queried using gnome-vfs-volume-monitor-get-connected-drives.

— Signal on <gnome-vfs-volume-monitor>: drive-disconnected (arg0 <gnome-vfs-drive>)

This signal is emitted after the <gnome-vfs-drive>drive has been disconnected.

When the drive is disconnected, it is removed from the volume-monitor's list of connected drives, which can be queried using gnome-vfs-volume-monitor-get-connected-drives.

— Function: gnome-vfs-get-volume-monitor ⇒  (ret <gnome-vfs-volume-monitor>)

Returns a pointer to the <gnome-vfs-volume-monitor> singleton. <gnome-vfs-volume-monitor> is a singleton, this means it is guaranteed to exist and be valid until gnome-vfs-shutdown is called. Consequently, it doesn't need to be refcounted since gnome-vfs will hold a reference to it until it is shut down.

ret
a pointer to the <gnome-vfs-volume-monitor> singleton.

Since 2.6