File indexing completed on 2024-11-24 04:16:56
0001 /* 0002 SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QWidget> 0010 class QCheckBox; 0011 class QLineEdit; 0012 class DeeplEngineConfigureWidget : public QWidget 0013 { 0014 Q_OBJECT 0015 public: 0016 explicit DeeplEngineConfigureWidget(QWidget *parent = nullptr); 0017 ~DeeplEngineConfigureWidget() override; 0018 void setUseFreeLicenceKey(bool b); 0019 [[nodiscard]] bool useFreeLicenceKey() const; 0020 0021 [[nodiscard]] QString apiKey() const; 0022 void setApiKey(const QString &key); 0023 0024 private: 0025 QCheckBox *const mUseFreeLicense; 0026 QLineEdit *const mApiKey; 0027 };