Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qplatformmediarecorder.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
5#include <QObject>
6
8
10 : q(parent)
11{
12}
13
15{
16 error(QMediaRecorder::FormatError, QMediaRecorder::tr("Pause not supported"));
17}
18
20{
21 error(QMediaRecorder::FormatError, QMediaRecorder::tr("Resume not supported"));
22}
23
25{
26 if (m_state == state)
27 return;
28 m_state = state;
29 emit q->recorderStateChanged(state);
30}
31
33{
34 if (m_duration == duration)
35 return;
36 m_duration = duration;
37 emit q->durationChanged(duration);
38}
39
41{
42 if (m_actualLocation == location)
43 return;
44 m_actualLocation = location;
45 emit q->actualLocationChanged(location);
46}
47
49{
50 if (error == m_error && errorString == m_errorString)
51 return;
52 m_error = error;
53 m_errorString = errorString;
55 emit q->errorOccurred(error, errorString);
56 emit q->errorChanged();
57}
58
60{
61 emit q->metaDataChanged();
62}
63
\inmodule QtMultimedia
RecorderState
\qmlproperty enumeration QtMultimedia::MediaRecorder::recorderState
Error
\qmlproperty enumeration QtMultimedia::MediaRecorder::error
void actualLocationChanged(const QUrl &location)
void stateChanged(QMediaRecorder::RecorderState state)
QMediaRecorder::Error error() const
void durationChanged(qint64 position)
virtual qint64 duration() const
QPlatformMediaRecorder(QMediaRecorder *parent)
virtual QMediaRecorder::RecorderState state() const
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
\inmodule QtCore
Definition qurl.h:94
else opt state
[0]
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
GLint location
GLdouble GLdouble GLdouble GLdouble q
Definition qopenglext.h:259
#define emit
long long qint64
Definition qtypes.h:55
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent