Solid::Ifaces::Camera Class
class Solid::Ifaces::CameraHeader: | #include <Camera> |
CMake: | find_package(KF6 REQUIRED COMPONENTS Solid) target_link_libraries(mytarget PRIVATE KF6::Solid) |
Inherits: | Solid::Ifaces::DeviceInterface |
Public Functions
virtual | ~Camera() override |
virtual QVariant | driverHandle(const QString &driver) const = 0 |
virtual QStringList | supportedDrivers(QString protocol = QString()) const = 0 |
virtual QStringList | supportedProtocols() const = 0 |
Detailed Description
This device interface is available on digital camera devices.
A digital camera is a device used to transform images into data. Nowaday most digital cameras are multifunctional and able to take photographs, video or sound. On the system side they are a particular type of device holding data, the access method can be different from the typical storage device, hence why it's a separate device interface.
Member Function Documentation
[override virtual noexcept]
Camera::~Camera()
Destroys a Camera object.
[pure virtual]
QVariant Camera::driverHandle(const QString &driver) const
Retrieves a driver specific string allowing to access the device.
For example for the "gphoto" driver it will return a list of the form '("usb", vendor_id, product_id)'.
@return the driver specific data
[pure virtual]
QStringList Camera::supportedDrivers(QString protocol = QString()) const
Retrieves known installed device drivers that claim to handle this device using the requested protocol.
@param protocol The protocol to get drivers for. @return a list of known device drivers that can handle this device
[pure virtual]
QStringList Camera::supportedProtocols() const
Retrieves known protocols this device can speak. This list may be dependent on installed device driver libraries.
@return a list of known protocols this device can speak