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 <QDialog> 0010 class DeeplEngineConfigureWidget; 0011 class DeeplEngineConfigureDialog : public QDialog 0012 { 0013 Q_OBJECT 0014 public: 0015 explicit DeeplEngineConfigureDialog(QWidget *parent = nullptr); 0016 ~DeeplEngineConfigureDialog() override; 0017 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 DeeplEngineConfigureWidget *const mConfigureWidget; 0026 };