| 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 | |
| 9 | using namespace Solid::Backends::Fake; |
| 10 | |
| 11 | FakeGenericInterface::FakeGenericInterface(FakeDevice *device) |
| 12 | : FakeDeviceInterface(device) |
| 13 | { |
| 14 | connect(sender: device, SIGNAL(propertyChanged(QMap<QString, int>)), receiver: this, SIGNAL(propertyChanged(QMap<QString, int>))); |
| 15 | connect(sender: device, SIGNAL(conditionRaised(QString, QString)), receiver: this, SIGNAL(conditionRaised(QString, QString))); |
| 16 | } |
| 17 | |
| 18 | FakeGenericInterface::~FakeGenericInterface() |
| 19 | { |
| 20 | } |
| 21 | |
| 22 | QVariant FakeGenericInterface::property(const QString &key) const |
| 23 | { |
| 24 | return fakeDevice()->property(key); |
| 25 | } |
| 26 | |
| 27 | QMap<QString, QVariant> FakeGenericInterface::allProperties() const |
| 28 | { |
| 29 | return fakeDevice()->allProperties(); |
| 30 | } |
| 31 | |
| 32 | bool FakeGenericInterface::propertyExists(const QString &key) const |
| 33 | { |
| 34 | return fakeDevice()->propertyExists(key); |
| 35 | } |
| 36 | |
| 37 | #include "moc_fakegenericinterface.cpp" |
| 38 | |