1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only
3
4#ifndef QTEXTTOSPEECHPLUGIN_MOCK_H
5#define QTEXTTOSPEECHPLUGIN_MOCK_H
6
7#include "qtexttospeechplugin.h"
8#include "qtexttospeechengine.h"
9
10#include <QtCore/QObject>
11#include <QtCore/QLoggingCategory>
12
13QT_BEGIN_NAMESPACE
14
15class QTextToSpeechMockPlugin : public QObject, public QTextToSpeechPlugin
16{
17 Q_OBJECT
18 Q_INTERFACES(QTextToSpeechPlugin)
19 Q_PLUGIN_METADATA(IID "org.qt-project.qt.speech.tts.plugin/6.0"
20 FILE "mock_plugin.json")
21
22public:
23 QTextToSpeechEngine *createTextToSpeechEngine(
24 const QVariantMap &parameters,
25 QObject *parent,
26 QString *errorString) const override;
27};
28
29QT_END_NAMESPACE
30
31#endif
32

source code of qtspeech/src/plugins/tts/mock/qtexttospeech_mock_plugin.h