KTextAddons

deeplengineconfigurewidget.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 QCheckBox;
11class QLineEdit;
12class DeeplEngineConfigureWidget : public QWidget
13{
15public:
16 explicit DeeplEngineConfigureWidget(QWidget *parent = nullptr);
17 ~DeeplEngineConfigureWidget() override;
18 void setUseFreeLicenceKey(bool b);
19 [[nodiscard]] bool useFreeLicenceKey() const;
20
21 [[nodiscard]] QString apiKey() const;
22 void setApiKey(const QString &key);
23
24private:
25 QCheckBox *const mUseFreeLicense;
26 QLineEdit *const mApiKey;
27};
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.