KTextAddons

bergamotengineplugin.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 "bergamotengineutils.h"
10
11#include <TextTranslator/TranslatorEnginePlugin>
12#include <TextTranslator/TranslatorUtil>
13class BergamotMarianInterface;
14class BergamotEnginePlugin : public TextTranslator::TranslatorEnginePlugin
15{
17public:
18 explicit BergamotEnginePlugin(QObject *parent = nullptr);
19 ~BergamotEnginePlugin() override;
20
21 void translate() override;
22
23 void slotConfigureChanged();
24
25private:
26 void loadSettings();
27 void slotLanguagesChanged();
28 void updateBergamotModel();
29 BergamotMarianInterface *const mBergamotInterface;
31 BergamotEngineUtils::SettingsInfo mSettingInfo;
32 QString mModelLanguageName;
33};
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.