File indexing completed on 2024-06-16 03:54:30

0001 /*
0002     SPDX-FileCopyrightText: 2017 René J.V. Bertin <rjvbertin@gmail.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #ifndef SOLID_BACKENDS_IOKIT_BLOCK_H
0008 #define SOLID_BACKENDS_IOKIT_BLOCK_H
0009 
0010 #include "iokitdeviceinterface.h"
0011 #include <solid/devices/ifaces/block.h>
0012 
0013 namespace Solid
0014 {
0015 namespace Backends
0016 {
0017 namespace IOKit
0018 {
0019 class Block : public DeviceInterface, virtual public Solid::Ifaces::Block
0020 {
0021     Q_OBJECT
0022     Q_INTERFACES(Solid::Ifaces::Block)
0023 
0024 public:
0025     Block(IOKitDevice *device);
0026     Block(const IOKitDevice *device);
0027     virtual ~Block();
0028 
0029     int deviceMajor() const override;
0030     int deviceMinor() const override;
0031     QString device() const override;
0032 };
0033 }
0034 }
0035 }
0036 
0037 #endif // SOLID_BACKENDS_IOKIT_BLOCK_H