Added QMediaRecorder::status property
QMediaRecorder::state property represents the user request and changed synchronously during record(), pause() or stop() calls. Recorder status is changed asynchronously and represents the actual status of media recorder. This also makes API more consistent with QMediaPlayer and QCamera. Change-Id: I80b4aaa70bb88e555c492908da8c29d0fc5ed5ea Reviewed-by: Ling Hu <ling.hu@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
af932e8653
commit
b7935a84d7
@@ -117,11 +117,17 @@ QMediaRecorderControl::~QMediaRecorderControl()
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn int QMediaRecorderControl::state() const
|
||||
\fn QMediaRecorder::State QMediaRecorderControl::state() const
|
||||
|
||||
Return the current recording state.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn QMediaRecorder::Status QMediaRecorderControl::status() const
|
||||
|
||||
Return the current recording status.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn qint64 QMediaRecorderControl::duration() const
|
||||
|
||||
@@ -172,6 +178,13 @@ QMediaRecorderControl::~QMediaRecorderControl()
|
||||
Signals that the \a state of a media recorder has changed.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn void QMediaRecorderControl::statusChanged(QMediaRecorder::Status status)
|
||||
|
||||
Signals that the \a status of a media recorder has changed.
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\fn void QMediaRecorderControl::durationChanged(qint64 duration)
|
||||
|
||||
|
||||
@@ -67,6 +67,7 @@ public:
|
||||
virtual bool setOutputLocation(const QUrl &location) = 0;
|
||||
|
||||
virtual QMediaRecorder::State state() const = 0;
|
||||
virtual QMediaRecorder::Status status() const = 0;
|
||||
|
||||
virtual qint64 duration() const = 0;
|
||||
|
||||
@@ -76,6 +77,7 @@ public:
|
||||
|
||||
Q_SIGNALS:
|
||||
void stateChanged(QMediaRecorder::State state);
|
||||
void statusChanged(QMediaRecorder::Status status);
|
||||
void durationChanged(qint64 position);
|
||||
void mutedChanged(bool muted);
|
||||
void actualLocationChanged(const QUrl &location);
|
||||
|
||||
Reference in New Issue
Block a user