Solid

frontend/camera.h
1 /*
2  SPDX-FileCopyrightText: 2006-2007 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_CAMERA_H
8 #define SOLID_CAMERA_H
9 
10 #include <solid/solid_export.h>
11 
12 #include <solid/deviceinterface.h>
13 
14 #include <QStringList>
15 #include <QVariant>
16 
17 namespace Solid
18 {
19 class CameraPrivate;
20 class Device;
21 
32 class SOLID_EXPORT Camera : public DeviceInterface
33 {
34  Q_OBJECT
35  Q_PROPERTY(QStringList supportedProtocols READ supportedProtocols)
36  Q_PROPERTY(QStringList supportedDrivers READ supportedDrivers)
37  Q_DECLARE_PRIVATE(Camera)
38  friend class Device;
39 
40 private:
49  explicit Camera(QObject *backendObject);
50 
51 public:
55  virtual ~Camera();
56 
64  {
65  return DeviceInterface::Camera;
66  }
67 
74  QStringList supportedProtocols() const;
75 
84  QStringList supportedDrivers(QString protocol = QString()) const;
85 
94  QVariant driverHandle(const QString &driver) const;
95 };
96 }
97 
98 #endif
This class allows applications to deal with devices available in the underlying system.
This device interface is available on digital camera devices.
Base class of all the device interfaces.
Type
This enum type defines the type of device interface that a Device can have.
static Type deviceInterfaceType()
Get the Solid::DeviceInterface::Type of the Camera device interface.
The single responsibility of this class is to create arguments valid for logind Inhibit call...
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Sep 23 2020 22:50:19 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.