Solid

iokitstorageaccess.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_STORAGEACCESS_H
8#define SOLID_BACKENDS_IOKIT_STORAGEACCESS_H
9
10#include "dadictionary_p.h"
11#include "iokitdeviceinterface.h"
12#include <solid/devices/ifaces/storageaccess.h>
13
14namespace Solid
15{
16namespace Backends
17{
18namespace IOKit
19{
20class IOKitStorageAccess : public DeviceInterface, virtual public Solid::Ifaces::StorageAccess
21{
24
25public:
26 IOKitStorageAccess(IOKitDevice *device);
27 IOKitStorageAccess(const IOKitDevice *device);
28 virtual ~IOKitStorageAccess();
29
30 bool isAccessible() const override;
31 QString filePath() const override;
32 bool isIgnored() const override;
33 bool isEncrypted() const override;
34public Q_SLOTS:
35 bool setup() override;
36 bool teardown() override;
37
39 void accessibilityChanged(bool accessible, const QString &udi) override;
40 void setupDone(Solid::ErrorType error, QVariant errorData, const QString &udi) override;
41 void teardownDone(Solid::ErrorType error, QVariant errorData, const QString &udi) override;
42 void setupRequested(const QString &udi) override;
43 void teardownRequested(const QString &udi) override;
44
45private Q_SLOTS:
46 void onPropertyChanged(const QMap<QString, int> &changes);
47
48private:
49 DADictionary *daDict;
50};
51}
52}
53}
54
55#endif // SOLID_BACKENDS_IOKIT_STORAGEACCESS_H
This device interface is available on volume 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
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:12 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.