# class StorageAccess

###

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

This device interface is available on volume devices.

A volume is anything that can contain data (partition, optical disc, memory card). It's a particular kind of block device.

### methods

- StorageAccess (backendObject)

  returns ctor
  Not implemented
  KDE 4.1.0 and later only

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

  Creates a new StorageAccess 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()

- StorageAccess (dd, backendObject)

  returns ctor
  Not implemented

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

  Internal

- StorageAccess (a0)

  returns ctor
  Not implemented
  before KDE 4.1.0 only

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

- accessibilityChanged (accessible, udi)

  returns Nothing
  SIGNAL ("accessibilityChanged (bool, const QString&)")

  Argument | Type | Default
  --- | --- | ---
  accessible | bool |
  udi | QString |

  This signal is emitted when the accessiblity of this device has changed.

  accessible - true if the volume is accessible, false otherwise

  udi - the UDI of the volume

- deviceInterfaceType ( )

  returns Solid::DeviceInterface.Type
  static

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

  Returns the StorageVolume device interface type

  See also Solid.Ifaces.Enums.DeviceInterface.Type

- filePath ( )

  returns QString

  Retrieves the absolute path of this volume mountpoint.

  Returns the absolute path to the mount point if the volume is mounted, QString() otherwise

- isAccessible ( )

  returns bool

  Indicates if this volume is mounted.

  Returns true if the volume is mounted

- setup ( )

  returns bool

  Mounts the volume.

  Returns false if the operation is not supported, true if the operation is attempted

- setupDone (error, errorData, udi)

  returns Nothing
  SIGNAL ("setupDone (ErrorType, QVariant, const QString&)")

  Argument | Type | Default
  --- | --- | ---
  error | Solid.ErrorType |
  errorData | QVariant |
  udi | QString |

  This signal is emitted when the attempted setting up of this device is completed.

  error - type of error that occurred, if any

  errorData - more information about the error, if any

  udi - the UDI of the volume

- teardown ( )

  returns bool

  Unmounts the volume.

  Returns false if the operation is not supported, true if the operation is attempted

- teardownDone (error, errorData, udi)

  returns Nothing
  SIGNAL ("teardownDone (ErrorType, QVariant, const QString&)")

  Argument | Type | Default
  --- | --- | ---
  error | Solid.ErrorType |
  errorData | QVariant |
  udi | QString |

  This signal is emitted when the attempted tearing down of this device is completed.

  error - type of error that occurred, if any

  errorData - more information about the error, if any

  udi - the UDI of the volume