KTextAddons
9#include "texttranslator_export.h"
11#include <TextTranslator/TranslatorUtil>
13namespace TextTranslator
15class TranslatorEngineLoaderPrivate;
16class TranslatorEngineClient;
17class TEXTTRANSLATOR_EXPORT TranslatorEngineLoader :
public QObject
21 static TranslatorEngineLoader *self();
23 explicit TranslatorEngineLoader(QObject *parent =
nullptr);
24 ~TranslatorEngineLoader()
override;
26 [[nodiscard]] TextTranslator::TranslatorEngineClient *createTranslatorClient(
const QString &clientName);
29 [[nodiscard]] QMap<QString, QString> translatorEngineInfos()
const;
31 [[nodiscard]] QString currentPluginName(
const QString &key)
const;
33 [[nodiscard]] QMap<TextTranslator::TranslatorUtil::Language, QString> supportedFromLanguages(
const QString &clientName)
const;
34 [[nodiscard]] QMap<TextTranslator::TranslatorUtil::Language, QString> supportedToLanguages(
const QString &clientName)
const;
36 [[nodiscard]]
bool hasConfigurationDialog(
const QString &clientName)
const;
38 [[nodiscard]] QString fallbackFirstEngine()
const;
40 [[nodiscard]]
bool showConfigureDialog(
const QString &clientName, QWidget *parentWidget);
43 void loadingTranslatorFailed();
46 TEXTTRANSLATOR_NO_EXPORT
void loadPlugins();
47 TEXTTRANSLATOR_NO_EXPORT
void loadPlugin(
const QString &pluginPath);
48 std::unique_ptr<TranslatorEngineLoaderPrivate>
const d;
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:24 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.