summaryrefslogtreecommitdiffstats
path: root/src/multimedia/recording/qmediarecorder.h
diff options
context:
space:
mode:
authorDoris Verria <doris.verria@qt.io>2021-02-10 16:54:25 +0100
committerLars Knoll <lars.knoll@qt.io>2021-02-17 08:26:08 +0000
commit59b04ded0fe5fe5bbc3e2c29d7cd426a78600e59 (patch)
treee3d6200ab6d289f0676d6ad913abd0f493ad6451 /src/multimedia/recording/qmediarecorder.h
parent03f3201a24514f43e781bf59026ca5039fd9ab21 (diff)
Remove the notifyInterval functionality from QMediaSource
As a step towards removing QMediaSource from the hierarchy, remove its notifyInterval functionality and implement it in the child classes QMediaPlayer and QMediaRecorder instead. Change-Id: I17aa778fc306881f9e08ab4decbc2d2f3928c686 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/multimedia/recording/qmediarecorder.h')
-rw-r--r--src/multimedia/recording/qmediarecorder.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/multimedia/recording/qmediarecorder.h b/src/multimedia/recording/qmediarecorder.h
index 303dd3dea..844abf966 100644
--- a/src/multimedia/recording/qmediarecorder.h
+++ b/src/multimedia/recording/qmediarecorder.h
@@ -72,6 +72,7 @@ class Q_MULTIMEDIA_EXPORT QMediaRecorder : public QObject, public QMediaSink
Q_ENUMS(State)
Q_ENUMS(Status)
Q_ENUMS(Error)
+ Q_PROPERTY(int notifyInterval READ notifyInterval WRITE setNotifyInterval NOTIFY notifyIntervalChanged)
Q_PROPERTY(QMediaRecorder::State state READ state NOTIFY stateChanged)
Q_PROPERTY(QMediaRecorder::Status status READ status NOTIFY statusChanged)
Q_PROPERTY(qint64 duration READ duration NOTIFY durationChanged)
@@ -118,6 +119,11 @@ public:
explicit QMediaRecorder(QMediaSource *mediaSource, QObject *parent = nullptr);
~QMediaRecorder();
+ int notifyInterval() const;
+ void setNotifyInterval(int milliSeconds);
+ void addPropertyWatch(QByteArray const &name);
+ void removePropertyWatch(QByteArray const &name);
+
QMediaSource *mediaSource() const override;
QObject *asObject() override { return this; }
@@ -159,6 +165,7 @@ public Q_SLOTS:
bool setAudioInput(const QAudioDeviceInfo &device);
Q_SIGNALS:
+ void notifyIntervalChanged(int milliSeconds);
void stateChanged(QMediaRecorder::State state);
void statusChanged(QMediaRecorder::Status status);
void durationChanged(qint64 duration);