KTextAddons
8#include "libvoskspeechtotext_private_export.h"
9#include <QCryptographicHash>
13class LIBVOSKSPEECHTOTEXT_TESTS_EXPORT VoskDownloadLanguageJob :
public QObject
17 struct LIBVOSKSPEECHTOTEXT_TESTS_EXPORT DownloadLanguageInfo {
22 [[nodiscard]]
bool isValid()
const;
24 explicit VoskDownloadLanguageJob(QObject *parent =
nullptr);
25 ~VoskDownloadLanguageJob()
override;
28 [[nodiscard]]
bool canStart()
const;
30 [[nodiscard]] DownloadLanguageInfo info()
const;
31 void setInfo(
const DownloadLanguageInfo &newInfo);
34 void errorText(
const QString &str);
35 void downloadProgress(qint64 bytesReceived, qint64 bytesTotal);
39 void generateInstalledLanguageInfo();
40 void extractLanguage();
41 void slotGenerateInstalledLanguageInfoDone();
42 DownloadLanguageInfo mInfo;
43 QCryptographicHash *mHash =
nullptr;
44 QTemporaryFile *mDestination =
nullptr;
46Q_DECLARE_TYPEINFO(VoskDownloadLanguageJob::DownloadLanguageInfo, Q_MOVABLE_TYPE);
47LIBVOSKSPEECHTOTEXT_EXPORT
QDebug operator<<(
QDebug d,
const VoskDownloadLanguageJob::DownloadLanguageInfo &t);
Q_SCRIPTABLE Q_NOREPLY void start()
bool isValid(QStringView ifopt)
QString name(StandardAction id)
NETWORKMANAGERQT_EXPORT QString version()
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:24 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.