KTextAddons

generateinstalledlanguageinfojob.h
1/*
2 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8#include "libvoskspeechtotext_private_export.h"
9
10#include "voskengineutils.h"
11#include <QObject>
12
13class LIBVOSKSPEECHTOTEXT_TESTS_EXPORT GenerateInstalledLanguageInfoJob : public QObject
14{
15 Q_OBJECT
16public:
17 struct LIBVOSKSPEECHTOTEXT_TESTS_EXPORT LanguageInfo {
18 VoskEngineUtils::LanguageInstalled info;
19 QString pathToStore;
20 [[nodiscard]] bool isValid() const;
21 };
22 explicit GenerateInstalledLanguageInfoJob(QObject *parent = nullptr);
23 ~GenerateInstalledLanguageInfoJob() override;
24
25 void start();
26 [[nodiscard]] bool canStart() const;
27
28 [[nodiscard]] GenerateInstalledLanguageInfoJob::LanguageInfo info() const;
29 void setInfo(const GenerateInstalledLanguageInfoJob::LanguageInfo &newInfo);
30
32 void generatedDone();
33 void errorText(const QString &str);
34
35private:
36 GenerateInstalledLanguageInfoJob::LanguageInfo mInfo;
37};
38LIBVOSKSPEECHTOTEXT_EXPORT QDebug operator<<(QDebug d, const GenerateInstalledLanguageInfoJob::LanguageInfo &t);
Q_SCRIPTABLE Q_NOREPLY void start()
QDebug operator<<(QDebug dbg, const DcrawInfoContainer &c)
bool isValid(QStringView ifopt)
Q_SIGNALSQ_SIGNALS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.