Solid

frontend/camera.cpp
1/*
2 SPDX-FileCopyrightText: 2006-2007 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#include "camera.h"
8#include "camera_p.h"
9
10#include "soliddefs_p.h"
11#include <solid/devices/ifaces/camera.h>
12
13Solid::Camera::Camera(QObject *backendObject)
14 : DeviceInterface(*new CameraPrivate(), backendObject)
15{
16}
17
21
22QStringList Solid::Camera::supportedProtocols() const
23{
24 Q_D(const Camera);
25 return_SOLID_CALL(Ifaces::Camera *, d->backendObject(), QStringList(), supportedProtocols());
26}
27
28QStringList Solid::Camera::supportedDrivers(QString protocol) const
29{
30 Q_D(const Camera);
31 return_SOLID_CALL(Ifaces::Camera *, d->backendObject(), QStringList(), supportedDrivers(protocol));
32}
33
35{
36 Q_D(const Camera);
37 return_SOLID_CALL(Ifaces::Camera *, d->backendObject(), QVariant(), driverHandle(driver));
38}
39
40#include "moc_camera.cpp"
This device interface is available on digital camera devices.
QVariant driverHandle(const QString &driver) const
Retrieves a driver specific string allowing to access the device.
~Camera() override
Destroys a Camera object.
This device interface is available on digital camera devices.
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 11:56:28 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.