1// Copyright (C) 2023 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 QCAPTURABLEWINDOW_P_H
5#define QCAPTURABLEWINDOW_P_H
6
7#include <QtGui/qwindowdefs.h>
8#include <QtCore/QSharedData>
9#include <QtMultimedia/qcapturablewindow.h>
10
11//
12// W A R N I N G
13// -------------
14//
15// This file is not part of the Qt API. It exists purely as an
16// implementation detail. This header file may change from version to
17// version without notice, or even be removed.
18//
19// We mean it.
20//
21
22QT_BEGIN_NAMESPACE
23
24class QCapturableWindowPrivate : public QSharedData {
25public:
26 using Id = size_t;
27
28 QString description;
29 Id id = 0;
30
31 static const QCapturableWindowPrivate *handle(const QCapturableWindow &window)
32 {
33 return window.d.get();
34 }
35
36 QCapturableWindow create() { return QCapturableWindow(this); }
37};
38
39QT_END_NAMESPACE
40
41#endif // QCAPTURABLEWINDOW_P_H
42

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