f9b96f871b
The fourth and final #error stub in udisksstoragedrive.cpp was in the bus() function's ATA SATA-vs-IDE detection block. On non-Linux platforms without udev, this fell through to #error. Fix: add Q_OS_REDOX guard returning Solid::StorageDrive::Sata. Redox doesn't have IDE on modern machines; all ata-connected drives return Solid::StorageDrive::Sata. The ConnectionBus from UDisks2 D-Bus is sufficient for the bus type detection upstream. All 4 KF6Solid #error stubs are now resolved: - isHotpluggable() → Q_OS_REDOX: returns isRemovable() - bus() udevBus → Q_OS_REDOX: uses ConnectionBus from device - bus() ATA → Q_OS_REDOX: defaults to Sata - isAppendable() → Q_OS_REDOX: returns false (no optical)
Solid
Desktop hardware abstraction
Introduction
Solid is a device integration framework. It provides a way of querying and interacting with hardware independently of the underlying operating system.
It provides the following features for application developers:
- Hardware Discovery
- Power Management
- Network Management
Usage
If you are using CMake, you need to have
find_package(KF6Solid NO_MODULE)
(or similar) in your CMakeLists.txt file, and you need to link to KF6::Solid.
See the documentation for the Solid namespace, and the tutorials on TechBase.
There is also a [Solid song](@ref song).