KTextAddons

libretranslateengineconfigurewidget.h
1/*
2 SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QWidget>
10class QLineEdit;
11class QCheckBox;
12class LibreTranslateEngineConfigureWidget : public QWidget
13{
15public:
16 explicit LibreTranslateEngineConfigureWidget(QWidget *parent = nullptr);
17 ~LibreTranslateEngineConfigureWidget() override;
18
19 [[nodiscard]] QString serverUrl() const;
20 void setServerUrl(const QString &serverUrl);
21
22 [[nodiscard]] QString apiKey() const;
23 void setApiKey(const QString &key);
24
25 [[nodiscard]] bool serverRequiredApiKey() const;
26 void setServerRequiredApiKey(bool state);
27
28private:
29 void updateApiKeyState(bool state);
30 QLineEdit *const mServerUrl;
31 QLineEdit *const mApiKey;
32 QCheckBox *const mRequiredApiKey;
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 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.