| 1 | /* |
|---|---|
| 2 | SPDX-FileCopyrightText: 2009 Pino Toscano <pino@kde.org> |
| 3 | SPDX-FileCopyrightText: 2012 Lukáš Tinkl <ltinkl@redhat.com> |
| 4 | |
| 5 | SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
| 6 | */ |
| 7 | |
| 8 | #include "udisksgenericinterface.h" |
| 9 | |
| 10 | #include "udisksdevice.h" |
| 11 | |
| 12 | using namespace Solid::Backends::UDisks2; |
| 13 | |
| 14 | GenericInterface::GenericInterface(Device *device) |
| 15 | : DeviceInterface(device) |
| 16 | { |
| 17 | connect(sender: device, signal: &Device::propertyChanged, context: this, slot: &GenericInterface::propertyChanged); |
| 18 | } |
| 19 | |
| 20 | GenericInterface::~GenericInterface() |
| 21 | { |
| 22 | } |
| 23 | |
| 24 | QVariant GenericInterface::property(const QString &key) const |
| 25 | { |
| 26 | return m_device->prop(key); |
| 27 | } |
| 28 | |
| 29 | QVariantMap GenericInterface::allProperties() const |
| 30 | { |
| 31 | return m_device->allProperties(); |
| 32 | } |
| 33 | |
| 34 | bool GenericInterface::propertyExists(const QString &key) const |
| 35 | { |
| 36 | return m_device->propertyExists(key); |
| 37 | } |
| 38 | |
| 39 | #include "moc_udisksgenericinterface.cpp" |
| 40 |
