/*
   SPDX-FileCopyrightText: 2024-2025 Laurent Montel <montel@kde.org>

   SPDX-License-Identifier: LGPL-2.0-or-later
*/

#pragma once
#include "libruqolawidgets_private_export.h"
#include <QWidget>
class KTextEdit;
class QLabel;
class LIBRUQOLAWIDGETS_TESTS_EXPORT ApplicationsSettingsAskApplicationWidget : public QWidget
{
    Q_OBJECT
public:
    explicit ApplicationsSettingsAskApplicationWidget(QWidget *parent = nullptr);
    ~ApplicationsSettingsAskApplicationWidget() override;

    [[nodiscard]] QString message() const;

    void setApplicationName(const QString &appName);

Q_SIGNALS:
    void updateOkButton(bool state);

private:
    LIBRUQOLAWIDGETS_NO_EXPORT void slotUpdateOkButton();
    QLabel *const mTextAppLabel;
    KTextEdit *const mMessage;
};
