Solid

udisksblock.h
1/*
2 SPDX-FileCopyrightText: 2012 Lukáš Tinkl <ltinkl@redhat.com>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef UDISKSBLOCK_H
8#define UDISKSBLOCK_H
9
10#include "udisksdeviceinterface.h"
11#include <solid/devices/ifaces/block.h>
12
13#include <sys/types.h> // dev_t
14
15namespace Solid
16{
17namespace Backends
18{
19namespace UDisks2
20{
21class Block : public DeviceInterface, virtual public Solid::Ifaces::Block
22{
25
26public:
27 Block(Device *dev);
28 ~Block() override;
29
30 QString device() const override;
31 int deviceMinor() const override;
32 int deviceMajor() const override;
33
34private:
35 dev_t m_devNum;
36 QString m_devFile;
37};
38
39}
40}
41}
42
43#endif // UDISKSBLOCK_H
This device interface is available on block devices.
The single responsibility of this class is to create arguments valid for logind Inhibit call.
Definition fakebattery.h:16
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 11:56:28 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.