UDisksDrive class
A drive on this system.
Constructors
- UDisksDrive(_UDisksObject _object)
Properties
- canPowerOff → bool
-
Whether the drive can be safely removed / powered off.
no setter
-
configuration
→ Map<
String, DBusValue> -
A set of configuration directives that are applied to the drive when it is connected.
Use setConfiguration to change these.
no setter
- connectionBus → String
-
The physical connection bus used for the drive as seen by the user.
no setter
- ejectable → bool
-
True if media can be ejected from the drive.
Use eject to perform this.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
A unique and persistent identifier for the device or blank if no such identifier is available.
no setter
- media → String
-
The kind of media currently in the drive or blank if unknown.
no setter
- mediaAvailable → bool
-
True if there is media in the drive.
This is always true if mediaChangeDetected is false.
no setter
- mediaChangeDetected → bool
-
True if media changes are detected.
The state of the media is reported in mediaAvailable.
no setter
-
mediaCompatibility
→ List<
String> -
The physical kind of media the drive uses or the type of the drive or blank if unknown.
no setter
- mediaRemovable → bool
-
Whether the media can be removed from the drive.
no setter
- model → String
-
A name for the model of the drive or blank if unknown.
no setter
- optical → bool
-
True if the drive uses an optical disc.
no setter
- opticalBlank → bool
-
no setter
- opticalNumAudioTracks → int
-
no setter
- opticalNumDataTracks → int
-
no setter
- opticalNumSessions → int
-
no setter
- opticalNumTracks → int
-
no setter
- removable → bool
-
A hint whether the drive and/or its media is considered removable by the user.
no setter
- revision → String
-
Firmware Revision or blank if unknown.
no setter
- rotationRate → int
-
The rotational rate of the drive in rpm.
Set to -1 for rotating media but rotation rate isn't known and 0 for non-rotating media.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seat → String
-
The id of the seat the drive is plugged into, if any.
no setter
- serial → String
-
Serial number of the drive or blank if unknown.
no setter
- siblingId → String
-
An opaque token that, if non-blank, is used to group drives that are part of the same physical device.
no setter
- size → int
-
The size of the drive in bytes.
no setter
- sortKey → String
-
no setter
- timeDetected → int
-
no setter
- timeMediaDetected → int
-
no setter
- vendor → String
-
A name for the vendor of the drive or blank if unknown.
no setter
- wwn → String
-
no setter
Methods
-
eject(
) → Future< void> - Ejects media from this drive.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
powerOff(
) → Future< void> - Arranges for the drive to be safely removed and powered off.
-
setConfiguration(
Map< String, DBusValue> values) → Future<void> - Sets the configuration for the drive.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited