/*
    This file is part of the Kasten Framework, made within the KDE community.

    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_CREATORCONTROLLERFACTORY_HPP
#define KASTEN_CREATORCONTROLLERFACTORY_HPP

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

namespace Kasten {

class ModelCodecManager;
class AbstractDocumentStrategy;

class KASTENCONTROLLERS_EXPORT CreatorControllerFactory : public AbstractXmlGuiControllerFactory
{
public:
    explicit CreatorControllerFactory(ModelCodecManager* modelCodecManager,
                                      AbstractDocumentStrategy* documentStrategy);
    CreatorControllerFactory(const CreatorControllerFactory&) = delete;

    ~CreatorControllerFactory() override;

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

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

private:
    ModelCodecManager* const m_modelCodecManager;
    AbstractDocumentStrategy* const m_documentStrategy;
};

}

#endif
