| 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 | #ifndef SOLID_BACKENDS_UDEV_DEVICEINTERFACE_H |
| 8 | #define SOLID_BACKENDS_UDEV_DEVICEINTERFACE_H |
| 9 | |
| 10 | #include "udevdevice.h" |
| 11 | #include <solid/devices/ifaces/deviceinterface.h> |
| 12 | |
| 13 | #include <QObject> |
| 14 | |
| 15 | namespace Solid |
| 16 | { |
| 17 | namespace Backends |
| 18 | { |
| 19 | namespace UDev |
| 20 | { |
| 21 | class DeviceInterface : public QObject, virtual public Solid::Ifaces::DeviceInterface |
| 22 | { |
| 23 | Q_OBJECT |
| 24 | Q_INTERFACES(Solid::Ifaces::DeviceInterface) |
| 25 | public: |
| 26 | DeviceInterface(UDevDevice *device); |
| 27 | ~DeviceInterface() override; |
| 28 | |
| 29 | protected: |
| 30 | UDevDevice *m_device; |
| 31 | }; |
| 32 | } |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | #endif |
| 37 | |