/*
 * Fooyin
 * Copyright © 2026, Luke Taylor <luket@pm.me>
 *
 * Fooyin is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Fooyin is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Fooyin.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#pragma once

#include <gui/dsp/dspsettingsdialog.h>

#include <QString>

namespace Fooyin {
class DspSettingsProvider
{
public:
    virtual ~DspSettingsProvider() = default;

    [[nodiscard]] virtual QString id() const = 0;

    [[nodiscard]] virtual QString displayName() const
    {
        return id();
    }

    [[nodiscard]] virtual QString viewMenuText() const
    {
        return displayName();
    }

    [[nodiscard]] virtual QString viewMenuStatusTip() const
    {
        return {};
    }

    [[nodiscard]] virtual bool showInViewMenu() const
    {
        return false;
    }

    [[nodiscard]] virtual bool showAsLayoutWidget() const
    {
        return false;
    }

    [[nodiscard]] virtual DspSettingsDialog* createSettingsWidget(QWidget* parent) = 0;
};
} // namespace Fooyin
