matevfs.Drive
Prev | The matevfs class reference | Next

## matevfs.Drive

matevfs.Drive — Object representing a device which can mount a volume

## Synopsis

    class matevfs.Drive(gobject.GObject):
        def get_id()
        def get_device_type()
        def get_mounted_volumes()
        def get_device_path()
        def get_activation_uri()
        def get_display_name()
        def get_icon()
        def get_hal_udi()
        def is_user_visible()
        def is_connected()
        def is_mounted()
        def mount(callback, user_data=None)
        def unmount(callback, user_data=None)
        def eject(callback, user_data=None)

## Ancestry

    +-- gobject.GObject
      +-- matevfs.Drive

## Signal Prototypes

"volume-mounted" | `def callback(`drive`, `volume`, `user_param1`, `...`)`
"volume-pre-umount" | `def callback(`drive`, `volume`, `user_param1`, `...`)`
"volume-unmounted" | `def callback(`drive`, `volume`, `user_param1`, `...`)`

## Methods

### matevfs.Drive.get_id

                def get_id()

Returns: | An identifier for this drive.

### matevfs.Drive.get_device_type

                def get_device_type()

Returns: | The device type.

### matevfs.Drive.get_mounted_volumes

                def get_mounted_volumes()

Returns: | A list of matevfs.Volume objects.

### matevfs.Drive.get_device_path

                def get_device_path()

Returns: | The path of this device.

### matevfs.Drive.get_activation_uri

                def get_activation_uri()

Returns: |

### matevfs.Drive.get_display_name

                def get_display_name()

Returns: |

### matevfs.Drive.get_icon

                def get_icon()

Returns: |

### matevfs.Drive.get_hal_udi

                def get_hal_udi()

Returns: |

### matevfs.Drive.is_user_visible

                def is_user_visible()

Returns: |

### matevfs.Drive.is_connected

                def is_connected()

Returns: |

### matevfs.Drive.is_mounted

                def is_mounted()

Returns: |

### matevfs.Drive.mount

                def mount(callback, user_data=None)

Returns: |

### matevfs.Drive.unmount

                def unmount(callback, user_data=None)

Returns: |

### matevfs.Drive.eject

                def eject(callback, user_data=None)

Returns: |

Prev | Up | Next
matevfs.DirectoryHandle | Home | matevfs.FileInfo