File indexing completed on 2024-05-26 04:05:35

0001 /*
0002     SPDX-FileCopyrightText: 2010 Kevin Ottens <ervin@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #include "udevgenericinterface.h"
0008 
0009 #include "udevdevice.h"
0010 
0011 using namespace Solid::Backends::UDev;
0012 
0013 GenericInterface::GenericInterface(UDevDevice *device)
0014     : DeviceInterface(device)
0015 {
0016 #if 0
0017     connect(device, SIGNAL(propertyChanged(QMap<QString,int>)),
0018             this, SIGNAL(propertyChanged(QMap<QString,int>)));
0019     connect(device, SIGNAL(conditionRaised(QString,QString)),
0020             this, SIGNAL(conditionRaised(QString,QString)));
0021 #endif
0022 }
0023 
0024 GenericInterface::~GenericInterface()
0025 {
0026 }
0027 
0028 QVariant GenericInterface::property(const QString &key) const
0029 {
0030     return m_device->property(key);
0031 }
0032 
0033 QMap<QString, QVariant> GenericInterface::allProperties() const
0034 {
0035     return m_device->allProperties();
0036 }
0037 
0038 bool GenericInterface::propertyExists(const QString &key) const
0039 {
0040     return m_device->propertyExists(key);
0041 }
0042 
0043 #include "moc_udevgenericinterface.cpp"