| 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_CAMERA_H |
| 8 | #define SOLID_BACKENDS_UDEV_CAMERA_H |
| 9 | |
| 10 | #include "udevdeviceinterface.h" |
| 11 | #include <solid/devices/ifaces/camera.h> |
| 12 | |
| 13 | namespace Solid |
| 14 | { |
| 15 | namespace Backends |
| 16 | { |
| 17 | namespace UDev |
| 18 | { |
| 19 | class Camera : public DeviceInterface, virtual public Solid::Ifaces::Camera |
| 20 | { |
| 21 | Q_OBJECT |
| 22 | Q_INTERFACES(Solid::Ifaces::Camera) |
| 23 | |
| 24 | public: |
| 25 | Camera(UDevDevice *device); |
| 26 | ~Camera() override; |
| 27 | |
| 28 | QStringList supportedProtocols() const override; |
| 29 | QStringList supportedDrivers(QString protocol = QString()) const override; |
| 30 | QVariant driverHandle(const QString &driver) const override; |
| 31 | }; |
| 32 | } |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | #endif |
| 37 | |