/*
   SPDX-FileCopyrightText: 2020-2026 Laurent Montel <montel@kde.org>

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

#pragma once

#include "libruqolawidgets_export.h"

#include <QDialog>
class ReportMessageWidget;
class LIBRUQOLAWIDGETS_EXPORT ReportMessageDialog : public QDialog
{
    Q_OBJECT
public:
    explicit ReportMessageDialog(QWidget *parent = nullptr);
    ~ReportMessageDialog() override;
    [[nodiscard]] QString message() const;
    void setPreviewMessage(const QString &msg);

private:
    LIBRUQOLAWIDGETS_NO_EXPORT void readConfig();
    LIBRUQOLAWIDGETS_NO_EXPORT void writeConfig();
    ReportMessageWidget *const mReportMessageWidget;
};
