1// Copyright (C) 2017 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 QQMLPROFILERTYPEDEVENT_P_H
5#define QQMLPROFILERTYPEDEVENT_P_H
6
7#include "qqmlprofilerevent_p.h"
8#include "qqmlprofilereventtype_p.h"
9
10#include <QtCore/qdatastream.h>
11
12//
13// W A R N I N G
14// -------------
15//
16// This file is not part of the Qt API. It exists purely as an
17// implementation detail. This header file may change from version to
18// version without notice, or even be removed.
19//
20// We mean it.
21//
22
23QT_BEGIN_NAMESPACE
24
25struct QQmlProfilerTypedEvent
26{
27 QQmlProfilerEvent event;
28 QQmlProfilerEventType type;
29 qint64 serverTypeId = 0;
30};
31
32QDataStream &operator>>(QDataStream &stream, QQmlProfilerTypedEvent &event);
33
34Q_DECLARE_TYPEINFO(QQmlProfilerTypedEvent, Q_RELOCATABLE_TYPE);
35
36QT_END_NAMESPACE
37
38Q_DECLARE_METATYPE(QQmlProfilerTypedEvent)
39
40#endif // QQMLPROFILERTYPEDEVENT_P_H
41

source code of qtdeclarative/src/qmldebug/qqmlprofilertypedevent_p.h