/*
    SPDX-FileCopyrightText: 2019 Friedrich W. H. Kossebau <kossebau@kde.org>

    SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/

#ifndef KASTEN_VIEWAREASPLITCONTROLLERFACTORY_HPP
#define KASTEN_VIEWAREASPLITCONTROLLERFACTORY_HPP

// lib
#include "kastencontrollers_export.hpp"
// Kasten core
#include <Kasten/AbstractXmlGuiControllerFactory>

namespace Kasten {

class ViewManager;
class AbstractGroupedViews;

class KASTENCONTROLLERS_EXPORT ViewAreaSplitControllerFactory : public AbstractXmlGuiControllerFactory
{
public:
    explicit ViewAreaSplitControllerFactory(ViewManager* viewManager, AbstractGroupedViews* groupedViews);
    ViewAreaSplitControllerFactory(const ViewAreaSplitControllerFactory&) = delete;
    ViewAreaSplitControllerFactory(ViewAreaSplitControllerFactory&&) = delete;

    ~ViewAreaSplitControllerFactory() override;

    ViewAreaSplitControllerFactory& operator=(const ViewAreaSplitControllerFactory&) = delete;
    ViewAreaSplitControllerFactory& operator=(ViewAreaSplitControllerFactory&&) = delete;

public: // AbstractXmlGuiControllerFactory API
    [[nodiscard]]
    std::unique_ptr<AbstractXmlGuiController> create(KXMLGUIClient* guiClient) const override;

private:
    ViewManager* const m_viewManager;
    AbstractGroupedViews* const m_groupedViews;
};

}

#endif
