1 | /* |
2 | SPDX-FileCopyrightText: 2010 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 "udevgenericinterface.h" |
8 | |
9 | #include "udevdevice.h" |
10 | |
11 | using namespace Solid::Backends::UDev; |
12 | |
13 | GenericInterface::GenericInterface(UDevDevice *device) |
14 | : DeviceInterface(device) |
15 | { |
16 | #if 0 |
17 | connect(device, SIGNAL(propertyChanged(QMap<QString,int>)), |
18 | this, SIGNAL(propertyChanged(QMap<QString,int>))); |
19 | connect(device, SIGNAL(conditionRaised(QString,QString)), |
20 | this, SIGNAL(conditionRaised(QString,QString))); |
21 | #endif |
22 | } |
23 | |
24 | GenericInterface::~GenericInterface() |
25 | { |
26 | } |
27 | |
28 | QVariant GenericInterface::property(const QString &key) const |
29 | { |
30 | return m_device->property(key); |
31 | } |
32 | |
33 | QMap<QString, QVariant> GenericInterface::allProperties() const |
34 | { |
35 | return m_device->allProperties(); |
36 | } |
37 | |
38 | bool GenericInterface::propertyExists(const QString &key) const |
39 | { |
40 | return m_device->propertyExists(key); |
41 | } |
42 | |
43 | #include "moc_udevgenericinterface.cpp" |
44 | |