Solid

udevgenericinterface.cpp
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
11using namespace Solid::Backends::UDev;
12
13GenericInterface::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
24GenericInterface::~GenericInterface()
25{
26}
27
28QVariant GenericInterface::property(const QString &key) const
29{
30 return m_device->property(key);
31}
32
33QMap<QString, QVariant> GenericInterface::allProperties() const
34{
35 return m_device->allProperties();
36}
37
38bool GenericInterface::propertyExists(const QString &key) const
39{
40 return m_device->propertyExists(key);
41}
42
43#include "moc_udevgenericinterface.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 Sat Dec 21 2024 17:03:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.