Solid

iokitstorage.h
1/*
2 SPDX-FileCopyrightText: 2017 René J.V. Bertin <rjvbertin@gmail.com>
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_IOKIT_IOKITSTORAGE_H
8#define SOLID_BACKENDS_IOKIT_IOKITSTORAGE_H
9
10#include "dadictionary_p.h"
11#include "iokitblock.h"
12
13#include <solid/devices/ifaces/storagedrive.h>
14
15namespace Solid
16{
17namespace Backends
18{
19namespace IOKit
20{
21class IOKitStorage : public Block, virtual public Solid::Ifaces::StorageDrive
22{
25
26public:
27 explicit IOKitStorage(IOKitDevice *device);
28 explicit IOKitStorage(const IOKitDevice *device);
29 ~IOKitStorage();
30
31 QString vendor() const;
32 QString product() const;
33 QString description() const;
34
35public Q_SLOTS:
36 Solid::StorageDrive::Bus bus() const override;
37 Solid::StorageDrive::DriveType driveType() const override;
38
39 bool isRemovable() const override;
40 bool isHotpluggable() const override;
41 qulonglong size() const override;
42
43private:
44 DADictionary *daDict;
45};
46}
47}
48}
49
50#endif // SOLID_BACKENDS_IOKIT_IOKITSTORAGE_H
This device interface is available on storage devices.
DriveType
This enum type defines the type of drive a storage device can be.
Bus
This enum type defines the type of bus a storage device is attached to.
The single responsibility of this class is to create arguments valid for logind Inhibit call.
Definition fakebattery.h:16
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
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.