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

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

#pragma once

#include "administratorcustomsoundscreatewidget.h"
#include "libruqolawidgets_private_export.h"
#include <QDialog>
class AdministratorCustomSoundsCreateWidget;
class LIBRUQOLAWIDGETS_TESTS_EXPORT AdministratorCustomSoundsCreateDialog : public QDialog
{
    Q_OBJECT
public:
    explicit AdministratorCustomSoundsCreateDialog(QWidget *parent = nullptr);
    ~AdministratorCustomSoundsCreateDialog() override;

    void setCustomSoundInfo(const AdministratorCustomSoundsCreateWidget::CustomSoundInfo &info);

    [[nodiscard]] AdministratorCustomSoundsCreateWidget::CustomSoundInfo customSoundInfo() const;

private:
    LIBRUQOLAWIDGETS_NO_EXPORT void readConfig();
    LIBRUQOLAWIDGETS_NO_EXPORT void writeConfig();
    AdministratorCustomSoundsCreateWidget *const mCreateWidget;
};
