summaryrefslogtreecommitdiffstats
path: root/src/plugins/gstreamer/camerabin/camerabinrecorder.h
diff options
context:
space:
mode:
authorDmytro Poplavskiy <dmytro.poplavskiy@nokia.com>2012-07-16 10:55:20 +1000
committerQt by Nokia <qt-info@nokia.com>2012-07-16 07:18:12 +0200
commitb6a8c713bcc0b0cc032fdbf909143f3ba8ca15a6 (patch)
tree8538a615fa11b5119199fdd77e31296fcf466b25 /src/plugins/gstreamer/camerabin/camerabinrecorder.h
parentfdc197d61402837b23ce5c1cfe3a56cf0fa9aafe (diff)
Updated the camerabin2 based camera with QtMultimedia changes
Moved it to the separate plugin as the rest of gstreamer based services; Updated with libqgsttools_p changes; Implemented QMediaRecorder::status property; Made gst_photography dependency optional, it's not always available on desktop; Added video recording case to auto integration test; Moved backend implementation into qt namespace Task-number: QTBUG-26046 Change-Id: Iacfc1a6e263a4c0201d5eb28d04c960b87a230c0 Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Diffstat (limited to 'src/plugins/gstreamer/camerabin/camerabinrecorder.h')
-rw-r--r--src/plugins/gstreamer/camerabin/camerabinrecorder.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/plugins/gstreamer/camerabin/camerabinrecorder.h b/src/plugins/gstreamer/camerabin/camerabinrecorder.h
index 239dcf707..8d890bae1 100644
--- a/src/plugins/gstreamer/camerabin/camerabinrecorder.h
+++ b/src/plugins/gstreamer/camerabin/camerabinrecorder.h
@@ -45,7 +45,9 @@
#include <qmediarecordercontrol.h>
#include "camerabinsession.h"
-QT_USE_NAMESPACE
+#include <gst/pbutils/encoding-profile.h>
+
+QT_BEGIN_NAMESPACE
class CameraBinRecorder : public QMediaRecorderControl
{
@@ -59,25 +61,28 @@ public:
bool setOutputLocation(const QUrl &sink);
QMediaRecorder::State state() const;
+ QMediaRecorder::Status status() const;
qint64 duration() const;
bool isMuted() const;
void applySettings();
+ GstEncodingContainerProfile *videoProfile();
public slots:
- void record();
- void pause();
- void stop();
+ void setState(QMediaRecorder::State state);
void setMuted(bool);
private slots:
- void updateState();
+ void updateStatus();
private:
CameraBinSession *m_session;
QMediaRecorder::State m_state;
+ QMediaRecorder::Status m_status;
};
+QT_END_NAMESPACE
+
#endif // CAMERABINCAPTURECORNTROL_H