Solid

fakestorage.h
1/*
2 SPDX-FileCopyrightText: 2006 Davide Bettio <davide.bettio@kdemail.net>
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_FAKESTORAGE_H
8#define SOLID_BACKENDS_FAKEHW_FAKESTORAGE_H
9
10#include "fakeblock.h"
11#include <solid/devices/ifaces/storagedrive.h>
12
13namespace Solid
14{
15namespace Backends
16{
17namespace Fake
18{
19class FakeStorage : public FakeBlock, virtual public Solid::Ifaces::StorageDrive
20{
23
24public:
25 explicit FakeStorage(FakeDevice *device);
26 ~FakeStorage() override;
27
28public Q_SLOTS:
29 Solid::StorageDrive::Bus bus() const override;
30 Solid::StorageDrive::DriveType driveType() const override;
31
32 bool isRemovable() const override;
33 bool isHotpluggable() const override;
34 qulonglong size() const override;
35
36 QDateTime timeDetected() const override;
37 QDateTime timeMediaDetected() const override;
38};
39}
40}
41}
42
43#endif // SOLID_BACKENDS_FAKEHW_FAKESTORAGE_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.
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 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.