# class StorageDrive

###

Module | solid
Namespace | Solid
Class | StorageDrive
Inherits | Solid::DeviceInterface

This device interface is available on storage devices.

A storage is anything that can contain a set of volumes (card reader, hard disk, cdrom drive...). It's a particular kind of block device.

### enums

- Bus { Ide, Usb, Ieee1394, Scsi, Sata, Platform }
- DriveType { HardDisk, CdromDrive, Floppy, Tape, CompactFlash, MemoryStick, SmartMedia, SdMmc, Xd }

enum details

### methods

- StorageDrive (backendObject)

  returns ctor
  Not implemented
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  backendObject | QObject |

  Creates a new StorageDrive object. You generally won't need this. It's created when necessary using Device.as().

  backendObject - the device interface object provided by the backend

  See also Solid.Device.as()

- StorageDrive (dd, backendObject)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  dd | StorageDrivePrivate |
  backendObject | QObject |

  Internal

- StorageDrive (a0)

  returns ctor
  Not implemented
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QObject |

- bus ( )

  returns Solid::StorageDrive.Bus

  Retrieves the type of physical interface this storage device is connected to.

  Returns the bus type

  See also Solid.Ifaces.Enums.StorageDrive.Bus

- deviceInterfaceType ( )

  returns Solid::DeviceInterface.Type
  static

  Get the Solid.DeviceInterface.Type of the StorageDrive device interface.

  Returns the StorageDrive device interface type

  See also Solid.Ifaces.Enums.DeviceInterface.Type

- driveType ( )

  returns Solid::StorageDrive.DriveType

  Retrieves the type of this storage drive.

  Returns the drive type

  See also Solid.Ifaces.Enums.StorageDrive.DriveType

- isHotpluggable ( )

  returns bool

  Indicates if this storage device can be plugged or unplugged while the computer is running.

  Returns true if this storage supports hotplug, false otherwise

- isRemovable ( )

  returns bool

  Indicates if the media contained by this drive can be removed.

  For example memory card can be removed from the drive by the user, while partitions can't be removed from hard disks.

  Returns true if media can be removed, false otherwise.

### enums - detail

- Bus { Ide, Usb, Ieee1394, Scsi, Sata, Platform }

  This enum type defines the type of bus a storage device is attached to.

  - Ide : An Integrated Drive Electronics (IDE) bus, also known as ATA - Usb : An Universal Serial Bus (USB) - Ieee1394 : An Ieee1394 bus, also known as Firewire - Scsi : A Small Computer System Interface bus - Sata : A Serial Advanced Technology Attachment (SATA) bus - Platform : A legacy bus that is part of the underlying platform

  | Ide | - | - |
  | Usb | - | - |
  | Ieee1394 | - | - |
  | Scsi | - | - |
  | Sata | - | - |
  | Platform | - | - |

- DriveType { HardDisk, CdromDrive, Floppy, Tape, CompactFlash, MemoryStick, SmartMedia, SdMmc, Xd }

  This enum type defines the type of drive a storage device can be.

  - HardDisk : A hard disk - CdromDrive : An optical drive - Floppy : A floppy disk drive - Tape : A tape drive - CompactFlash : A Compact Flash card reader - MemoryStick : A Memory Stick card reader - SmartMedia : A Smart Media card reader - SdMmc : A SecureDigital/MultiMediaCard card reader - Xd : A xD card reader

  | HardDisk | - | - |
  | CdromDrive | - | - |
  | Floppy | - | - |
  | Tape | - | - |
  | CompactFlash | - | - |
  | MemoryStick | - | - |
  | SmartMedia | - | - |
  | SdMmc | - | - |
  | Xd | - | - |