Solid::Block Class
class Solid::BlockHeader: | #include <Block> |
CMake: | find_package(KF6 REQUIRED COMPONENTS Solid) target_link_libraries(mytarget PRIVATE KF6::Solid) |
Inherits: | Solid::DeviceInterface |
Public Functions
virtual | ~Block() override |
QString | device() const |
int | deviceMajor() const |
int | deviceMinor() const |
Static Public Members
Solid::DeviceInterface::Type | deviceInterfaceType() |
Detailed Description
@class Solid::Block block.h <Solid/Block>
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.
Member Function Documentation
[override virtual noexcept]
Block::~Block()
Destroys a Block object.
QString Block::device() const
Retrieves the absolute path of the special file to interact with the device.
@return the absolute path of the special file to interact with the device
Note: Getter function for property device.
[static]
Solid::DeviceInterface::Type Block::deviceInterfaceType()
Get the Solid::DeviceInterface::Type of the Block device interface.
@return the Block device interface type @see Solid::Ifaces::Enums::DeviceInterface::Type
int Block::deviceMajor() const
Retrieves the major number of the node file to interact with the device.
@return the device major number
Note: Getter function for property major.
int Block::deviceMinor() const
Retrieves the minor number of the node file to interact with the device.
@return the device minor number
Note: Getter function for property minor.