Solid

iokitdeviceinterface.h
1/*
2 SPDX-FileCopyrightText: 2009 Harald Fernengel <harry@kdevelop.org>
3 SPDX-FileCopyrightText: 2017 René J.V. Bertin <rjvbertin@gmail.com>
4
5 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6*/
7
8#ifndef SOLID_BACKENDS_IOKIT_DEVICEINTERFACE_H
9#define SOLID_BACKENDS_IOKIT_DEVICEINTERFACE_H
10
11#include "iokitdevice.h"
12#include <solid/devices/ifaces/deviceinterface.h>
13
14#include <QObject>
15
16namespace Solid
17{
18namespace Backends
19{
20namespace IOKit
21{
22class DeviceInterface : public QObject, virtual public Solid::Ifaces::DeviceInterface
23{
26public:
27 DeviceInterface(IOKitDevice *device);
28 // the ctor taking a const device* argument makes a deep
29 // copy of the IOKitDevice; any property changes made via
30 // the resulting instance will not affect the original device.
31 DeviceInterface(const IOKitDevice *device);
32 virtual ~DeviceInterface();
33
34protected:
35 IOKitDevice *m_device;
36 IOKitDevice *m_deviceCopy;
37};
38}
39}
40}
41
42#endif // SOLID_BACKENDS_IOKIT_DEVICEINTERFACE_H
Base interface of all the device interfaces.
The single responsibility of this class is to create arguments valid for logind Inhibit call.
Definition fakebattery.h:16
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:12 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.