2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2020 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2020-05-28 12:35:25 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "qmlpreview_global.h"
|
|
|
|
|
#include <qmldebug/qmldebugclient.h>
|
|
|
|
|
|
|
|
|
|
namespace QmlPreview {
|
|
|
|
|
|
|
|
|
|
class QMLPREVIEW_EXPORT QmlDebugTranslationClient : public QmlDebug::QmlDebugClient
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
explicit QmlDebugTranslationClient(QmlDebug::QmlDebugConnection *connection);
|
|
|
|
|
|
2020-09-28 08:20:23 +02:00
|
|
|
void changeLanguage(const QUrl &url, const QString &localeIsoCode);
|
2020-05-28 12:35:25 +02:00
|
|
|
void stateChanged(State state) override;
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
void debugServiceUnavailable();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace QmlPreview
|