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

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

#pragma once
#include "libruqolawidgets_private_export.h"
#include <QWidget>
class RocketChatAccount;
class QCheckBox;
class FeaturePreviewMessageWidget;
class LIBRUQOLAWIDGETS_TESTS_EXPORT FeaturePreviewWidget : public QWidget
{
    Q_OBJECT
public:
    explicit FeaturePreviewWidget(RocketChatAccount *account, QWidget *parent = nullptr);
    ~FeaturePreviewWidget() override;
    void initialize();

private:
    LIBRUQOLAWIDGETS_NO_EXPORT void slotNeedSaveSettings();
    LIBRUQOLAWIDGETS_NO_EXPORT void slotFeaturePreviewChanged(bool checked);
    LIBRUQOLAWIDGETS_NO_EXPORT void slotSaveSettings();
    QCheckBox *const mAllowFeaturePreview;
    QCheckBox *const mQuickReactions;
    QCheckBox *const mTimestampInMessages;
    QCheckBox *const mDraftMessages;
    RocketChatAccount *const mRocketChatAccount;
    FeaturePreviewMessageWidget *const mPreviewMessageWidget;
};
