# class Block

###

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

This device interface is available on block devices.

A block device is an adressable device such as drive or partition. It is possible to interact with such a device using a special file in the system.

### methods

- Block (backendObject)

  returns ctor
  Not implemented
  KDE 4.1.0 and later only

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

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

- Block (a0)

  returns ctor
  Not implemented
  before KDE 4.1.0 only

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

- device ( )

  returns QString

  Retrieves the absolute path of the special file to interact with the device.

  Returns the absolute path of the special file to interact with the device

- deviceInterfaceType ( )

  returns Solid::DeviceInterface.Type
  static

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

  Returns the Block device interface type

  See also Solid.Ifaces.Enums.DeviceInterface.Type

- deviceMajor ( )

  returns int

  Retrieves the major number of the node file to interact with the device.

  Returns the device major number

- deviceMinor ( )

  returns int

  Retrieves the minor number of the node file to interact with the device.

  Returns the device minor number