Replaced QMediaRecorderControl::play/stop/pause with setState

This allows to introduce new states without breaking BC.

Change-Id: I03c064cec92d6745b251a51cfb301e7f01f4b765
Reviewed-by: Ling Hu <ling.hu@nokia.com>
This commit is contained in:
Dmytro Poplavskiy
2012-05-02 11:15:44 +10:00
committed by Qt by Nokia
parent b7935a84d7
commit b36e2f5209
8 changed files with 62 additions and 51 deletions

View File

@@ -841,7 +841,7 @@ void QMediaRecorder::record()
d->errorString = QString();
if (d->control)
d->control->record();
d->control->setState(RecordingState);
}
/*!
@@ -857,7 +857,7 @@ void QMediaRecorder::pause()
{
Q_D(QMediaRecorder);
if (d->control)
d->control->pause();
d->control->setState(PausedState);
}
/*!
@@ -870,7 +870,7 @@ void QMediaRecorder::stop()
{
Q_D(QMediaRecorder);
if (d->control)
d->control->stop();
d->control->setState(StoppedState);
}
/*!