Solid

fakecamera.cpp
1/*
2 SPDX-FileCopyrightText: 2006 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 "fakecamera.h"
8#include <QVariant>
9
10using namespace Solid::Backends::Fake;
11
12FakeCamera::FakeCamera(FakeDevice *device)
13 : FakeDeviceInterface(device)
14{
15}
16
17FakeCamera::~FakeCamera()
18{
19}
20
21QStringList FakeCamera::supportedProtocols() const
22{
23 QStringList res;
24 QString method = fakeDevice()->property("accessMethod").toString();
25
26 res << method;
27
28 return res;
29}
30
31QStringList FakeCamera::supportedDrivers(QString /*protocol*/) const
32{
33 QStringList res;
34
35 if (fakeDevice()->property("gphotoSupport").toBool()) {
36 res << "gphoto";
37 }
38
39 return res;
40}
41
42QVariant Solid::Backends::Fake::FakeCamera::driverHandle(const QString &driver) const
43{
44 Q_UNUSED(driver);
45 return QVariant();
46}
47
48#include "moc_fakecamera.cpp"
QVariant property(const char *name) const const
QString toString() const const
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.