Solid

udevblock.cpp
1/*
2 SPDX-FileCopyrightText: 2010 Pino Toscano <pino@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#include "udevblock.h"
8
9using namespace Solid::Backends::UDev;
10
11Block::Block(UDevDevice *device)
12 : DeviceInterface(device)
13{
14}
15
16Block::~Block()
17{
18}
19
20int Block::deviceMajor() const
21{
22 return m_device->property(QStringLiteral("MAJOR")).toInt();
23}
24
25int Block::deviceMinor() const
26{
27 return m_device->property(QStringLiteral("MINOR")).toInt();
28}
29
30QString Block::device() const
31{
32 return m_device->property(QStringLiteral("DEVNAME")).toString();
33}
34
35#include "moc_udevblock.cpp"
int toInt(bool *ok) const const
QString toString() const const
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.