Solid

udisksgenericinterface.cpp
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
12using namespace Solid::Backends::UDisks2;
13
14GenericInterface::GenericInterface(Device *device)
15 : DeviceInterface(device)
16{
17 connect(device, SIGNAL(propertyChanged(QMap<QString, int>)), this, SIGNAL(propertyChanged(QMap<QString, int>)));
18}
19
20GenericInterface::~GenericInterface()
21{
22}
23
24QVariant GenericInterface::property(const QString &key) const
25{
26 return m_device->prop(key);
27}
28
29QVariantMap GenericInterface::allProperties() const
30{
31 return m_device->allProperties();
32}
33
34bool GenericInterface::propertyExists(const QString &key) const
35{
36 return m_device->propertyExists(key);
37}
38
39#include "moc_udisksgenericinterface.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 Mon Nov 18 2024 12:14:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.