forked from dept2/qtmultimedia-gphoto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgphotocameracontrol.h
35 lines (24 loc) · 999 Bytes
/
gphotocameracontrol.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef GPHOTOCAMERACONTROL_H
#define GPHOTOCAMERACONTROL_H
#include <QCameraControl>
class GPhotoCameraSession;
class GPhotoCameraControl final : public QCameraControl
{
Q_OBJECT
public:
explicit GPhotoCameraControl(GPhotoCameraSession *session, QObject *parent = nullptr);
~GPhotoCameraControl() = default;
GPhotoCameraControl(GPhotoCameraControl&&) = delete;
GPhotoCameraControl& operator=(GPhotoCameraControl&&) = delete;
QCamera::State state() const final;
void setState(QCamera::State state) final;
QCamera::Status status() const final;
bool isCaptureModeSupported(QCamera::CaptureModes mode) const final;
QCamera::CaptureModes captureMode() const final;
void setCaptureMode(QCamera::CaptureModes captureMode) final;
bool canChangeProperty(PropertyChangeType changeType, QCamera::Status status) const final;
private:
Q_DISABLE_COPY(GPhotoCameraControl)
GPhotoCameraSession *const m_session;
};
#endif // GPHOTOCAMERACONTROL_H