Solid::Ifaces::Block

Solid::Ifaces::Block Class Referenceabstract

#include <block.h>

Inheritance diagram for Solid::Ifaces::Block:

Public Member Functions

virtual ~Block ()
 
virtual QString device () const =0
 
virtual int deviceMajor () const =0
 
virtual int deviceMinor () const =0
 
- Public Member Functions inherited from Solid::Ifaces::DeviceInterface
virtual ~DeviceInterface ()
 

Detailed Description

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.

Definition at line 23 of file ifaces/block.h.

Constructor & Destructor Documentation

Solid::Ifaces::Block::~Block ( )
virtual

Destroys a Block object.

Definition at line 9 of file ifaces/block.cpp.

Member Function Documentation

virtual QString Solid::Ifaces::Block::device ( ) const
pure virtual

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
virtual int Solid::Ifaces::Block::deviceMajor ( ) const
pure virtual

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

Returns
the device major number
virtual int Solid::Ifaces::Block::deviceMinor ( ) const
pure virtual

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

Returns
the device minor number

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Aug 5 2020 22:48:00 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.