// SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
// SPDX-FileCopyrightText: 2024 Arjen Hiemstra <ahiemstra@heimr.nl>
//
// This file is automatically generated from qml_group.h.j2.
// To regenerate, run `tools/propertygenerator/generate_properties.py`.

#pragma once

// clang-format off
#include <QJSValue>
#include <QObject>
#include <QProperty>
#include <qqmlregistration.h>


#include <properties/CornersPropertyGroup.h>

#include "CornerPropertyGroupQuick.h"
#include "CornerPropertyGroupQuick.h"
#include "CornerPropertyGroupQuick.h"
#include "CornerPropertyGroupQuick.h"
// clang-format on

namespace Union
{
namespace Quick
{

class QuickStyle;
/*!
 * \qmltype CornersPropertyGroupQuick
 * \inqmlmodule org.kde.union.impl
 * \ingroup qtquick-properties
 *
 * \brief A group object exposing the properties of CornersPropertyGroup to QML.
 */
class CornersPropertyGroupQuick : public QObject
{
    Q_OBJECT
    QML_ANONYMOUS

public:
    explicit CornersPropertyGroupQuick(QuickStyle *style);

    void update(Union::Properties::CornersPropertyGroup *newState);
    Q_SIGNAL void updated();

    void refreshColors();

    /*!
     * \qmlproperty CornerPropertyGroupQuick CornersPropertyGroupQuick::topLeft
     *
     * Exposes CornersPropertyGroup::CornerPropertyGroup to QML.
     */
    Q_PROPERTY(Union::Quick::CornerPropertyGroupQuick *topLeft READ topLeft CONSTANT)
    CornerPropertyGroupQuick *topLeft() const;

    /*!
     * \qmlproperty CornerPropertyGroupQuick CornersPropertyGroupQuick::topRight
     *
     * Exposes CornersPropertyGroup::CornerPropertyGroup to QML.
     */
    Q_PROPERTY(Union::Quick::CornerPropertyGroupQuick *topRight READ topRight CONSTANT)
    CornerPropertyGroupQuick *topRight() const;

    /*!
     * \qmlproperty CornerPropertyGroupQuick CornersPropertyGroupQuick::bottomLeft
     *
     * Exposes CornersPropertyGroup::CornerPropertyGroup to QML.
     */
    Q_PROPERTY(Union::Quick::CornerPropertyGroupQuick *bottomLeft READ bottomLeft CONSTANT)
    CornerPropertyGroupQuick *bottomLeft() const;

    /*!
     * \qmlproperty CornerPropertyGroupQuick CornersPropertyGroupQuick::bottomRight
     *
     * Exposes CornersPropertyGroup::CornerPropertyGroup to QML.
     */
    Q_PROPERTY(Union::Quick::CornerPropertyGroupQuick *bottomRight READ bottomRight CONSTANT)
    CornerPropertyGroupQuick *bottomRight() const;

private:
    QuickStyle *m_style = nullptr;
    std::unique_ptr<CornerPropertyGroupQuick> m_topLeft;
    std::unique_ptr<CornerPropertyGroupQuick> m_topRight;
    std::unique_ptr<CornerPropertyGroupQuick> m_bottomLeft;
    std::unique_ptr<CornerPropertyGroupQuick> m_bottomRight;

    Union::Properties::CornersPropertyGroup *m_state = nullptr;
};

}
}