7#include "bingengineclient.h"
8#include "bingengineplugin.h"
9#include "translator/misc/translatorutil.h"
10#include <KLocalizedString>
12BingEngineClient::BingEngineClient(
QObject *parent)
13 : TextTranslator::TranslatorEngineClient{parent}
17BingEngineClient::~BingEngineClient() =
default;
19QString BingEngineClient::name()
const
21 return QStringLiteral(
"bing");
24QString BingEngineClient::translatedName()
const
29TextTranslator::TranslatorEnginePlugin *BingEngineClient::createTranslator()
31 return new BingEnginePlugin();
37 mFromLanguages = fillLanguages();
39 return mFromLanguages;
44 return supportedFromLanguages();
47TextTranslator::TranslatorEngineClient::EngineType BingEngineClient::engineType()
const
49 return TextTranslator::TranslatorEngineClient::Network;
52bool BingEngineClient::isSupported(TextTranslator::TranslatorUtil::Language lang)
const
55 case TextTranslator::TranslatorUtil::sq:
56 case TextTranslator::TranslatorUtil::hy:
57 case TextTranslator::TranslatorUtil::az:
58 case TextTranslator::TranslatorUtil::eu:
59 case TextTranslator::TranslatorUtil::be:
60 case TextTranslator::TranslatorUtil::gl:
61 case TextTranslator::TranslatorUtil::ka:
62 case TextTranslator::TranslatorUtil::ga:
63 case TextTranslator::TranslatorUtil::mk:
64 case TextTranslator::TranslatorUtil::yi:
72#include "moc_bingengineclient.cpp"
QString i18n(const char *text, const TYPE &arg...)
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:49:44 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.