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
4#ifndef QMediaRecorder_P_H
5#define QMediaRecorder_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qmediarecorder.h"
19#include "qcamera.h"
20#include <QtCore/qurl.h>
21#include <QtCore/qpointer.h>
22#include "private/qplatformmediarecorder_p.h"
23
24QT_BEGIN_NAMESPACE
25
26class QPlatformMediaRecorder;
27class QTimer;
28
29class Q_MULTIMEDIA_EXPORT QMediaRecorderPrivate
30{
31 Q_DECLARE_PUBLIC(QMediaRecorder)
32
33public:
34 QMediaRecorderPrivate();
35
36 static QString msgFailedStartRecording();
37
38 QMediaCaptureSession *captureSession = nullptr;
39 QPlatformMediaRecorder *control = nullptr;
40 QString initErrorMessage;
41
42 bool settingsChanged = false;
43
44 QMediaEncoderSettings encoderSettings;
45
46 QMediaRecorder *q_ptr = nullptr;
47};
48
49#undef Q_DECLARE_NON_CONST_PUBLIC
50
51QT_END_NAMESPACE
52
53#endif
54
55

source code of qtmultimedia/src/multimedia/recording/qmediarecorder_p.h