Solid

fakedeviceinterface.h
1/*
2 SPDX-FileCopyrightText: 2006 Michaƫl Larouche <michael.larouche@kdemail.net>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6#ifndef SOLID_BACKENDS_FAKEHW_FAKEDEVICEINTERFACE_H
7#define SOLID_BACKENDS_FAKEHW_FAKEDEVICEINTERFACE_H
8
9#include <QObject>
10#include <solid/devices/ifaces/deviceinterface.h>
11
12#include "fakedevice.h"
13
14namespace Solid
15{
16namespace Backends
17{
18namespace Fake
19{
20class FakeDeviceInterface : public QObject, virtual public Solid::Ifaces::DeviceInterface
21{
24public:
25 explicit FakeDeviceInterface(FakeDevice *device);
26 ~FakeDeviceInterface() override;
27
28protected:
29 FakeDevice *fakeDevice() const
30 {
31 return m_device;
32 }
33 FakeDevice *fakeDevice()
34 {
35 return m_device;
36 }
37
38private:
39 FakeDevice *m_device;
40};
41}
42}
43}
44
45#endif // SOLID_BACKENDS_FAKEHW_FAKEDEVICEINTERFACE_H
Base interface of all the device interfaces.
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:47:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.