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 QQMLDEBUGMESSAGECLIENT_P_H |
5 | #define QQMLDEBUGMESSAGECLIENT_P_H |
6 | |
7 | #include "qqmldebugclient_p.h" |
8 | |
9 | // |
10 | // W A R N I N G |
11 | // ------------- |
12 | // |
13 | // This file is not part of the Qt API. It exists purely as an |
14 | // implementation detail. This header file may change from version to |
15 | // version without notice, or even be removed. |
16 | // |
17 | // We mean it. |
18 | // |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | struct QQmlDebugContextInfo |
23 | { |
24 | int line; |
25 | QString file; |
26 | QString function; |
27 | QString category; |
28 | qint64 timestamp; |
29 | }; |
30 | |
31 | class QQmlDebugMessageClient : public QQmlDebugClient |
32 | { |
33 | Q_OBJECT |
34 | |
35 | public: |
36 | explicit QQmlDebugMessageClient(QQmlDebugConnection *client); |
37 | |
38 | virtual void messageReceived(const QByteArray &) override; |
39 | |
40 | Q_SIGNALS: |
41 | void message(QtMsgType, const QString &, const QQmlDebugContextInfo &); |
42 | }; |
43 | |
44 | QT_END_NAMESPACE |
45 | |
46 | #endif // QQMLDEBUGMESSAGECLIENT_P_H |
47 | |