KTextAddons

textautogeneratetextclient.cpp
1/*
2 SPDX-FileCopyrightText: 2025 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#include "textautogeneratetextclient.h"
8#include <KLocalizedString>
9using namespace TextAutogenerateText;
10TextAutogenerateTextClient::TextAutogenerateTextClient(QObject *parent)
11 : QObject{parent}
12{
13}
14
15TextAutogenerateTextClient::~TextAutogenerateTextClient() = default;
16
17bool TextAutogenerateTextClient::hasConfigurationDialog() const
18{
19 return false;
20}
21
22bool TextAutogenerateTextClient::showConfigureDialog(QWidget *parentWidget)
23{
24 Q_UNUSED(parentWidget);
25 // Nothing by default
26 return false;
27}
28
29QString TextAutogenerateTextClient::convertEngineType(TextAutogenerateText::TextAutogenerateTextClient::EngineType type)
30{
31 switch (type) {
32 case TextAutogenerateText::TextAutogenerateTextClient::EngineType::Local:
33 return i18n("Local");
34 case TextAutogenerateText::TextAutogenerateTextClient::EngineType::Network:
35 return i18n("Network");
36 }
37 Q_UNREACHABLE();
38 return {};
39}
40
41#include "moc_textautogeneratetextclient.cpp"
QString i18n(const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 4 2025 11:55:34 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.