Solid

fakegenericinterface.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_FAKEGENERICINTERFACE_H
8#define SOLID_BACKENDS_FAKEHW_FAKEGENERICINTERFACE_H
9
10#include "fakedeviceinterface.h"
11#include <solid/devices/ifaces/genericinterface.h>
12
13namespace Solid
14{
15namespace Backends
16{
17namespace Fake
18{
19class FakeGenericInterface : public FakeDeviceInterface, public Solid::Ifaces::GenericInterface
20{
23
24public:
25 explicit FakeGenericInterface(FakeDevice *device);
26 ~FakeGenericInterface() override;
27
28 QVariant property(const QString &key) const override;
29 QMap<QString, QVariant> allProperties() const override;
30 bool propertyExists(const QString &key) const override;
31
33 void propertyChanged(const QMap<QString, int> &changes) override;
34 void conditionRaised(const QString &condition, const QString &reason) override;
35};
36}
37}
38}
39
40#endif // SOLID_BACKENDS_FAKEHW_FAKEGENERICINTERFACE_H
Generic interface to deal with a device.
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:08:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.