Solid
7#include "upowergenericinterface.h"
9#include "upowerdevice.h"
11using namespace Solid::Backends::UPower;
13GenericInterface::GenericInterface(UPowerDevice *device)
14 : DeviceInterface(device)
16 connect(device, &UPowerDevice::propertyChanged,
17 this, &GenericInterface::propertyChanged);
19 connect(device, &UPowerDevice::conditionRaised,
20 this, &UPowerDevice::conditionRaised);
24GenericInterface::~GenericInterface()
28QVariant GenericInterface::property(
const QString &key)
const
30 return m_device.data()->prop(key);
33QMap<QString, QVariant> GenericInterface::allProperties()
const
35 return m_device.data()->allProperties();
38bool GenericInterface::propertyExists(
const QString &key)
const
40 return m_device.data()->propertyExists(key);
43#include "moc_upowergenericinterface.cpp"
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:55:36 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.