11#include "texttranslator_export.h"
13#include <TextTranslator/TranslatorUtil>
14namespace TextTranslator
16class TranslatorEnginePlugin;
17class TEXTTRANSLATOR_EXPORT TranslatorEngineClient :
public QObject
25 explicit TranslatorEngineClient(
QObject *parent =
nullptr);
26 ~TranslatorEngineClient()
override;
33 virtual QString translatedName()
const = 0;
35 virtual TranslatorEnginePlugin *createTranslator() = 0;
39 virtual void updateListLanguages();
41 [[nodiscard]]
virtual bool hasConfigurationDialog()
const;
43 virtual bool showConfigureDialog(
QWidget *parentWidget);
44 virtual void generateToListFromCurrentToLanguage(
const QString &languageCode);
46 [[nodiscard]]
virtual bool hasInvertSupport()
const;
48 [[nodiscard]]
virtual TextTranslator::TranslatorEngineClient::EngineType engineType()
const = 0;
50 [[nodiscard]]
static QString convertEngineType(TextTranslator::TranslatorEngineClient::EngineType type);
53 void configureChanged();
57 [[nodiscard]]
virtual bool isSupported(TextTranslator::TranslatorUtil::Language lang)
const = 0;
61Q_DECLARE_INTERFACE(TextTranslator::TranslatorEngineClient,
"org.kde.translator.Client")
QString name(GameStandardAction id)
QCA_EXPORT bool isSupported(const char *features, const QString &provider=QString())
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:02:03 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.