Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qgstreamermessage_p.h
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
4#ifndef QGSTREAMERMESSAGE_P_H
5#define QGSTREAMERMESSAGE_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 <private/qtmultimediaglobal_p.h>
19#include <common/qgst_p.h>
20
22
23// Required for QDoc workaround
24class QString;
25
26template <>
28{
29 static void ref(GstMessage *arg) noexcept { gst_message_ref(arg); }
30 static void unref(GstMessage *arg) noexcept { gst_message_unref(arg); }
31};
32
34{
36
37public:
38 using BaseClass::BaseClass;
40 QGstreamerMessage(QGstreamerMessage &&) noexcept = default;
41 QGstreamerMessage &operator=(const QGstreamerMessage &) = default;
42 QGstreamerMessage &operator=(QGstreamerMessage &&) noexcept = default;
43
44 GstMessageType type() const { return GST_MESSAGE_TYPE(get()); }
45 QGstObject source() const { return QGstObject(GST_MESSAGE_SRC(get()), QGstObject::NeedsRef); }
46 QGstStructure structure() const { return QGstStructure(gst_message_get_structure(get())); }
47
48 GstMessage *message() const { return get(); }
49};
50
52
54
55#endif
QGstStructure structure() const
QGstreamerMessage(QGstreamerMessage &&) noexcept=default
QGstObject source() const
QGstreamerMessage(const QGstreamerMessage &)=default
GstMessage * message() const
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
#define Q_DECLARE_METATYPE(TYPE)
Definition qmetatype.h:1525
GLenum type
SSL_CTX int void * arg