KTextAddons

speechtotextmenu.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
9#include "textspeechtotext_export.h"
10#include <QObject>
11class QMenu;
12namespace TextSpeechToText
13{
14class TEXTSPEECHTOTEXT_EXPORT SpeechToTextMenu : public QObject
15{
16 Q_OBJECT
17public:
18 explicit SpeechToTextMenu(QObject *parent = nullptr);
19 ~SpeechToTextMenu() override;
20
21 [[nodiscard]] bool isEmpty() const;
22 [[nodiscard]] QMenu *menu() const;
23
24private:
25 TEXTSPEECHTOTEXT_NO_EXPORT void updateMenu();
26 QMenu *const mMenu;
27};
28}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.