KTextAddons

voskenginelanguagewidget.h
1/*
2 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6#pragma once
7#include "libvoskspeechtotext_private_export.h"
8#include "managermodelvoskspeechtotext.h"
9#include "voskdownloadlanguagejob.h"
10#include <QWidget>
11class QTreeView;
12class VoskSpeechToTextModel;
13class QLineEdit;
14class VoskSpeechToTextProxyModel;
15class QProgressBar;
16class QLabel;
17class LIBVOSKSPEECHTOTEXT_TESTS_EXPORT VoskEngineLanguageWidget : public QWidget
18{
19 Q_OBJECT
20public:
21 explicit VoskEngineLanguageWidget(QWidget *parent = nullptr);
22 ~VoskEngineLanguageWidget() override;
23
24private:
25 void slotTextChanged(const QString &str);
26 void slotDownLoad(const VoskDownloadLanguageJob::DownloadLanguageInfo &info);
27 void slotDelete(const QString &identifier);
28 void slotUpdateListLanguage();
29 void slotError(const QString &str);
30 void updateListModel();
31 void slotProgressInfo(const ManagerModelVoskSpeechToText::ProgressInfo &info);
32 QTreeView *const mTreeView;
33 QLineEdit *const mSearchLineEdit;
34 VoskSpeechToTextModel *const mVoskSpeechToTextModel;
35 VoskSpeechToTextProxyModel *const mVoskSpeechToTextProxyModel;
36 QProgressBar *const mProgressBar;
37 QLabel *const mProgressBarLabel;
38 QWidget *const mProgressBarWidget;
39};
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:51:28 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.