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

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

#pragma once

#include "libruqolawidgets_private_export.h"

#include <QDialog>
class ModerationMessagesWidget;
class CommonMessageFilterProxyModel;
class RocketChatAccount;
class LIBRUQOLAWIDGETS_TESTS_EXPORT ModerationMessagesDialog : public QDialog
{
    Q_OBJECT
public:
    explicit ModerationMessagesDialog(RocketChatAccount *account, QWidget *parent = nullptr);
    ~ModerationMessagesDialog() override;

    void setModel(CommonMessageFilterProxyModel *model);
Q_SIGNALS:
    void goToMessageRequested(const QByteArray &messageId, const QString &messageDateTimeUtc);

private:
    LIBRUQOLAWIDGETS_NO_EXPORT void readConfig();
    LIBRUQOLAWIDGETS_NO_EXPORT void writeConfig();

    ModerationMessagesWidget *const mModerationMessagesWidget;
};
