Solid

fakestorageaccess.h
1/*
2 SPDX-FileCopyrightText: 2007 Kevin Ottens <ervin@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_FAKEHW_FAKESTORAGEACCESS_H
8#define SOLID_BACKENDS_FAKEHW_FAKESTORAGEACCESS_H
9
10#include "fakedeviceinterface.h"
11#include <solid/devices/ifaces/storageaccess.h>
12
13namespace Solid
14{
15namespace Backends
16{
17namespace Fake
18{
19class FakeStorageAccess : public FakeDeviceInterface, virtual public Solid::Ifaces::StorageAccess
20{
23
24public:
25 FakeStorageAccess(FakeDevice *device);
26 ~FakeStorageAccess() override;
27
28 bool isAccessible() const override;
29 QString filePath() const override;
30 bool isIgnored() const override;
31 bool isEncrypted() const override;
32public Q_SLOTS:
33 bool setup() override;
34 bool teardown() override;
35
37 void accessibilityChanged(bool accessible, const QString &udi) override;
38 void setupDone(Solid::ErrorType error, QVariant errorData, const QString &udi) override;
39 void teardownDone(Solid::ErrorType error, QVariant errorData, const QString &udi) override;
40 void setupRequested(const QString &udi) override;
41 void teardownRequested(const QString &udi) override;
42
43private Q_SLOTS:
44 void onPropertyChanged(const QMap<QString, int> &changes);
45};
46}
47}
48}
49
50#endif // SOLID_BACKENDS_FAKEHW_FAKESTORAGEACCESS_H
This device interface is available on volume devices.
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 Mon Nov 18 2024 12:14:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.