| 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 | |
| 24 | QT_BEGIN_NAMESPACE |
| 25 | |
| 26 | class QPlatformMediaRecorder; |
| 27 | class QTimer; |
| 28 | |
| 29 | class Q_MULTIMEDIA_EXPORT QMediaRecorderPrivate |
| 30 | { |
| 31 | Q_DECLARE_PUBLIC(QMediaRecorder) |
| 32 | |
| 33 | public: |
| 34 | QMediaRecorderPrivate(); |
| 35 | |
| 36 | static QString msgFailedStartRecording(); |
| 37 | |
| 38 | QMediaCaptureSession *captureSession = nullptr; |
| 39 | QPlatformMediaRecorder *control = nullptr; |
| 40 | QString initErrorMessage; |
| 41 | bool autoStop = false; |
| 42 | |
| 43 | bool settingsChanged = false; |
| 44 | |
| 45 | QMediaEncoderSettings encoderSettings; |
| 46 | |
| 47 | QMediaRecorder *q_ptr = nullptr; |
| 48 | }; |
| 49 | |
| 50 | #undef Q_DECLARE_NON_CONST_PUBLIC |
| 51 | |
| 52 | QT_END_NAMESPACE |
| 53 | |
| 54 | #endif |
| 55 | |
| 56 | |