1// Copyright (C) 2020 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#ifndef QQMLDEBUGTRANSLATIONCLIENT_P_H
4#define QQMLDEBUGTRANSLATIONCLIENT_P_H
5
6#include "qqmldebugclient_p.h"
7
8#include <QtCore/qvector.h>
9#include <private/qqmldebugtranslationprotocol_p.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 QQmlDebugTranslationClient : public QQmlDebugClient
25{
26 Q_OBJECT
27
28public:
29 explicit QQmlDebugTranslationClient(QQmlDebugConnection *client);
30 ~QQmlDebugTranslationClient() = default;
31
32 virtual void messageReceived(const QByteArray &message) override;
33 bool languageChanged = false;
34 QVector<QQmlDebugTranslation::TranslationIssue> translationIssues;
35 QVector<QQmlDebugTranslation::QmlElement> qmlElements;
36 QVector<QQmlDebugTranslation::QmlState> qmlStates;
37};
38
39QT_END_NAMESPACE
40
41#endif // QQMLDEBUGTRANSLATIONCLIENT_P_H
42

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