KTextAddons

voskextractlanguagejob.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#include <QObject>
11class LIBVOSKSPEECHTOTEXT_TESTS_EXPORT VoskExtractLanguageJob : public QObject
12{
13 Q_OBJECT
14public:
15 explicit VoskExtractLanguageJob(QObject *parent = nullptr);
16 ~VoskExtractLanguageJob() override;
17
18 [[nodiscard]] bool canStart() const;
19 void start();
20
21 [[nodiscard]] QString source() const;
22 void setSource(const QString &newSource);
23
25 void finished();
26 void errorText(const QString &str);
27
28private:
29 QString mSource;
30 void extractRecursive(const KArchiveDirectory *dir, const QString &path);
31};
Q_SCRIPTABLE Q_NOREPLY void start()
Q_SIGNALSQ_SIGNALS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:47:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.