Solid

iokitgenericinterface.h
1/*
2 SPDX-FileCopyrightText: 2009 Harald Fernengel <harry@kdevelop.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef SOLID_BACKENDS_IOKIT_GENERICINTERFACE_H
8#define SOLID_BACKENDS_IOKIT_GENERICINTERFACE_H
9
10#include "iokitdeviceinterface.h"
11#include <solid/devices/ifaces/genericinterface.h>
12#include <solid/genericinterface.h>
13
14namespace Solid
15{
16namespace Backends
17{
18namespace IOKit
19{
20class IOKitDevice;
21
22class GenericInterface : public DeviceInterface, virtual public Solid::Ifaces::GenericInterface
23{
26
27public:
28 GenericInterface(IOKitDevice *device);
29 virtual ~GenericInterface();
30
31 virtual QVariant property(const QString &key) const;
32 virtual QMap<QString, QVariant> allProperties() const;
33 virtual bool propertyExists(const QString &key) const;
34
36 void propertyChanged(const QMap<QString, int> &changes);
37 void conditionRaised(const QString &condition, const QString &reason);
38};
39}
40}
41}
42
43#endif // SOLID_BACKENDS_IOKIT_GENERICINTERFACE_H
Generic interface to deal with a device.
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:01:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.