Solid

udevblock.h
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#ifndef SOLID_BACKENDS_UDEV_UDEVBLOCK_H
8#define SOLID_BACKENDS_UDEV_UDEVBLOCK_H
9
10#include <solid/devices/ifaces/block.h>
11
12#include "udevdeviceinterface.h"
13
14namespace Solid
15{
16namespace Backends
17{
18namespace UDev
19{
20class Block : public DeviceInterface, virtual public Solid::Ifaces::Block
21{
24
25public:
26 Block(UDevDevice *device);
27 ~Block() override;
28
29 int deviceMajor() const override;
30 int deviceMinor() const override;
31 QString device() const override;
32};
33}
34}
35}
36
37#endif // SOLID_BACKENDS_UDEV_UDEVBLOCK_H
This device interface is available on block devices.
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
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.