3 #ifndef QT_CAM_VIDEO_MODE_H
4 #define QT_CAM_VIDEO_MODE_H
7 #include <gst/pbutils/encoding-profile.h>
9 class QtCamDevicePrivate;
10 class QtCamVideoModePrivate;
11 class QtCamVideoSettings;
13 class QtCamVideoMode : public QtCamMode {
16 Q_PROPERTY(bool recording READ isRecording NOTIFY recordingStateChanged);
19 QtCamVideoMode(QtCamDevicePrivate *d, QObject *parent = 0);
22 virtual bool canCapture();
23 virtual void applySettings();
26 Q_INVOKABLE bool startRecording(const QString& fileName);
28 bool setSettings(const QtCamVideoSettings& settings);
30 void setProfile(GstEncodingProfile *profile);
36 void recordingStateChanged();
43 Q_PRIVATE_SLOT(d_ptr, void _d_idleStateChanged(bool));
45 QtCamVideoModePrivate *d_ptr;
48 #endif /* QT_CAM_VIDEO_MODE_H */