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

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

#pragma once

#include <QWidget>
namespace TextEditTextToSpeech
{
class TextToSpeechConfigWidget;
}
class QCheckBox;
class KAIChatConfigureAccessibilityWidget : public QWidget
{
    Q_OBJECT
public:
    explicit KAIChatConfigureAccessibilityWidget(QWidget *parent = nullptr);
    ~KAIChatConfigureAccessibilityWidget() override;

    void save();
    void load();
    void restoreToDefaults();

protected:
    void showEvent(QShowEvent *event) override;

private:
    TextEditTextToSpeech::TextToSpeechConfigWidget *const mTextToSpeechWidget;
    QCheckBox *const mEnableTextToSpeech;
    bool mWasInitialized = false;
};
