---
name: "Gnome2::VFS::Drive"
section: "3pm"
platform: "linux"
package: "libgnome2-vfs-perl"
version: "1.082-1+b3"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/Gnome2::VFS::Drive"
---

# Gnome2::VFS::Drive(3pm)

Container around Gnome2::VFS::Volume

## NAME

Gnome2::VFS::Drive - Container around Gnome2::VFS::Volume

## HIERARCHY

```
  Glib::Object
  +----Gnome2::VFS::Drive
```

## METHODS

### string = $drive-\>get\_activation\_uri

### integer = $a-\>compare ($b)

- •

  `$b` (Gnome2::VFS::Drive)

### string = $drive-\>get\_device\_path

### devicetype = $drive-\>get\_device\_type

### string = $drive-\>get\_display\_name

### $drive-\>eject ($func, $data=undef)

- •

  `$func` (scalar)

- •

  `$data` (scalar)

### string = $drive-\>get\_hal\_udi

Since: vfs 2.8

### string = $drive-\>get\_icon

### unsigned = $drive-\>get\_id

### boolean = $drive-\>is\_connected

### boolean = $drive-\>is\_mounted

### boolean = $drive-\>is\_user\_visible

### $drive-\>mount ($func, $data=undef)

- •

  `$func` (scalar)

- •

  `$data` (scalar)

### list = $drive-\>get\_mounted\_volumes

Since: vfs 2.8

### boolean = $drive-\>needs\_eject

Since: vfs 2.16

### $drive-\>unmount ($func, $data=undef)

- •

  `$func` (scalar)

- •

  `$data` (scalar)

## SIGNALS

- **volume-mounted** (Gnome2::VFS::Drive, Gnome2::VFS::Volume)

  - **volume-pre-unmount** (Gnome2::VFS::Drive, Gnome2::VFS::Volume)

  - **volume-unmounted** (Gnome2::VFS::Drive, Gnome2::VFS::Volume)

  ## ENUMS AND FLAGS

### enum Gnome2::VFS::DeviceType

- •

  'unknown' / 'GNOME\_VFS\_DEVICE\_TYPE\_UNKNOWN'

- •

  'audio-cd' / 'GNOME\_VFS\_DEVICE\_TYPE\_AUDIO\_CD'

- •

  'video-dvd' / 'GNOME\_VFS\_DEVICE\_TYPE\_VIDEO\_DVD'

- •

  'harddrive' / 'GNOME\_VFS\_DEVICE\_TYPE\_HARDDRIVE'

- •

  'cdrom' / 'GNOME\_VFS\_DEVICE\_TYPE\_CDROM'

- •

  'floppy' / 'GNOME\_VFS\_DEVICE\_TYPE\_FLOPPY'

- •

  'zip' / 'GNOME\_VFS\_DEVICE\_TYPE\_ZIP'

- •

  'jaz' / 'GNOME\_VFS\_DEVICE\_TYPE\_JAZ'

- •

  'nfs' / 'GNOME\_VFS\_DEVICE\_TYPE\_NFS'

- •

  'autofs' / 'GNOME\_VFS\_DEVICE\_TYPE\_AUTOFS'

- •

  'camera' / 'GNOME\_VFS\_DEVICE\_TYPE\_CAMERA'

- •

  'memory-stick' / 'GNOME\_VFS\_DEVICE\_TYPE\_MEMORY\_STICK'

- •

  'smb' / 'GNOME\_VFS\_DEVICE\_TYPE\_SMB'

- •

  'apple' / 'GNOME\_VFS\_DEVICE\_TYPE\_APPLE'

- •

  'music-player' / 'GNOME\_VFS\_DEVICE\_TYPE\_MUSIC\_PLAYER'

- •

  'windows' / 'GNOME\_VFS\_DEVICE\_TYPE\_WINDOWS'

- •

  'loopback' / 'GNOME\_VFS\_DEVICE\_TYPE\_LOOPBACK'

- •

  'network' / 'GNOME\_VFS\_DEVICE\_TYPE\_NETWORK'

## SEE ALSO

Gnome2::VFS, Glib::Object

## COPYRIGHT

Copyright (C) 2003-2007, 2013 by the gtk2-perl team.

This software is licensed under the LGPL.  See Gnome2::VFS for a full notice.
