Solid

fakegenericinterface.cpp
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#include "fakegenericinterface.h"
8
9using namespace Solid::Backends::Fake;
10
11FakeGenericInterface::FakeGenericInterface(FakeDevice *device)
12 : FakeDeviceInterface(device)
13{
14 connect(device, SIGNAL(propertyChanged(QMap<QString, int>)), this, SIGNAL(propertyChanged(QMap<QString, int>)));
15 connect(device, SIGNAL(conditionRaised(QString, QString)), this, SIGNAL(conditionRaised(QString, QString)));
16}
17
18FakeGenericInterface::~FakeGenericInterface()
19{
20}
21
22QVariant FakeGenericInterface::property(const QString &key) const
23{
24 return fakeDevice()->property(key);
25}
26
27QMap<QString, QVariant> FakeGenericInterface::allProperties() const
28{
29 return fakeDevice()->allProperties();
30}
31
32bool FakeGenericInterface::propertyExists(const QString &key) const
33{
34 return fakeDevice()->propertyExists(key);
35}
36
37#include "moc_fakegenericinterface.cpp"
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 11:56:28 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.