Solid

ifaces/camera.h
1 /*
2  SPDX-FileCopyrightText: 2006 Kevin Ottens <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
7 #ifndef SOLID_IFACES_CAMERA_H
8 #define SOLID_IFACES_CAMERA_H
9 
10 #include <solid/devices/ifaces/deviceinterface.h>
11 
12 #include <QStringList>
13 
14 namespace Solid
15 {
16 namespace Ifaces
17 {
28 class Camera : virtual public DeviceInterface
29 {
30 public:
34  virtual ~Camera();
35 
42  virtual QStringList supportedProtocols() const = 0;
43 
51  virtual QStringList supportedDrivers(QString protocol = QString()) const = 0;
52 
61  virtual QVariant driverHandle(const QString &driver) const = 0;
62 };
63 }
64 }
65 
66 Q_DECLARE_INTERFACE(Solid::Ifaces::Camera, "org.kde.Solid.Ifaces.Camera/0.1")
67 
68 #endif
virtual QStringList supportedProtocols() const =0
Retrieves known protocols this device can speak.
virtual ~Camera()
Destroys a Camera object.
virtual QStringList supportedDrivers(QString protocol=QString()) const =0
Retrieves known installed device drivers that claim to handle this device using the requested protoco...
Base interface of all the device interfaces.
virtual QVariant driverHandle(const QString &driver) const =0
Retrieves a driver specific string allowing to access the device.
The single responsibility of this class is to create arguments valid for logind Inhibit call...
This device interface is available on digital camera devices.
Definition: ifaces/camera.h:28
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Sep 22 2020 22:50:17 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.