Solid::Ifaces::Block

Search for usage in LXR

Solid::Ifaces::Block Class Referenceabstract

#include <block.h>

Inheritance diagram for Solid::Ifaces::Block:

Public Member Functions

 ~Block () override
 
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 addressable 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

◆ ~Block()

Solid::Ifaces::Block::~Block ( )
override

Destroys a Block object.

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

Member Function Documentation

◆ device()

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

◆ deviceMajor()

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

◆ deviceMinor()

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-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.