Solid
9#include "iokitdevice.h"
11using namespace Solid::Backends::IOKit;
13Block::Block(IOKitDevice *device)
14 : DeviceInterface(device)
18Block::Block(
const IOKitDevice *device)
19 : DeviceInterface(device)
27int Block::deviceMajor()
const
29 return m_device->property(QLatin1String(
"BSD Major")).toInt();
32int Block::deviceMinor()
const
34 return m_device->property(QLatin1String(
"BSD Minor")).toInt();
37QString Block::device()
const
39 if (m_device->iOKitPropertyExists(QStringLiteral(
"BSD Name"))) {
40 return QStringLiteral(
"/dev/") + m_device->property(QLatin1String(
"BSD Name")).toString();
45#include "moc_iokitblock.cpp"
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:47:11 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.