File indexing completed on 2024-12-22 04:28:24
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "textspeechtotext_export.h" 0010 #include <QObject> 0011 class QMenu; 0012 namespace TextSpeechToText 0013 { 0014 class TEXTSPEECHTOTEXT_EXPORT SpeechToTextMenu : public QObject 0015 { 0016 Q_OBJECT 0017 public: 0018 explicit SpeechToTextMenu(QObject *parent = nullptr); 0019 ~SpeechToTextMenu() override; 0020 0021 [[nodiscard]] bool isEmpty() const; 0022 [[nodiscard]] QMenu *menu() const; 0023 0024 private: 0025 TEXTSPEECHTOTEXT_NO_EXPORT void updateMenu(); 0026 QMenu *const mMenu; 0027 }; 0028 }