RB.RemovableMediaManager¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
Whether a scan has been performed |
||
r/w/co |
|
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted when a new device is detected to allow plugins to create a corresponding |
|
Emitted when a new mount is added to allow plugins to create a corresponding |
|
Emitted when a new volume is added to allow plugins to create a corresponding |
|
Emitted when a new source is added for a removable medium. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class RB.RemovableMediaManager(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(shell)¶
- Parameters:
- Returns:
- Return type:
Creates the
RB.RemovableMediaManager
instance.
- device_is_android(device)¶
- Parameters:
device (
GObject.Object
) – the #GUdevDevice to query- Returns:
True
if the device appears to be Android-based- Return type:
Determines whether the specified device looks like an Android device.
- get_gudev_device(volume)¶
- Parameters:
volume (
Gio.Volume
) – theGio.Volume
- Returns:
the #GUDevDevice instance, if any
- Return type:
Finds the #GUdevDevice for the volume.
Signal Details¶
- RB.RemovableMediaManager.signals.create_source_device(removable_media_manager, device)¶
- Signal Name:
create-source-device
- Flags:
- Parameters:
removable_media_manager (
RB.RemovableMediaManager
) – The object which received the signaldevice (
GObject.Object
) – the device (actually a #GUdevDevice)
- Returns:
a source for the device, or
None
- Return type:
Emitted when a new device is detected to allow plugins to create a corresponding
RB.Source
. The first signal handler that returns a source wins. Plugins should only use this signal if there will be noGio.Volume
orGio.Mount
created for the device.
- RB.RemovableMediaManager.signals.create_source_mount(removable_media_manager, device_info, mount)¶
- Signal Name:
create-source-mount
- Flags:
- Parameters:
removable_media_manager (
RB.RemovableMediaManager
) – The object which received the signaldevice_info (
Gio.Mount
) – aMPID.Device
containing information on the devicemount (
MPID.Device
) – theGio.Mount
- Returns:
a source for the mount, or
None
- Return type:
Emitted when a new mount is added to allow plugins to create a corresponding
RB.Source
. The first signal handler that returns a source wins. If a source was created for theGio.Volume
for a mount, then this signal will not be emitted.
- RB.RemovableMediaManager.signals.create_source_volume(removable_media_manager, volume)¶
- Signal Name:
create-source-volume
- Flags:
- Parameters:
removable_media_manager (
RB.RemovableMediaManager
) – The object which received the signalvolume (
Gio.Volume
) – theGio.Volume
- Returns:
a source for the volume, or
None
- Return type:
Emitted when a new volume is added to allow plugins to create a corresponding
RB.Source
. The first signal handler that returns a source wins. A plugin should only use this signal if it doesn’t require the volume to be mounted. If the volume must be mounted to be useful, use the create-source-mount signal instead.
- RB.RemovableMediaManager.signals.medium_added(removable_media_manager, source)¶
- Signal Name:
medium-added
- Flags:
- Parameters:
removable_media_manager (
RB.RemovableMediaManager
) – The object which received the signalsource (
GObject.Object
) – the newly addedRB.Source
Emitted when a new source is added for a removable medium.