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

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

#ifndef KOMPAREPARTFACTORY_H
#define KOMPAREPARTFACTORY_H

// KF
#include <KPluginFactory>
#include <kparts_version.h>


class KomparePartFactory : public KPluginFactory
{
    Q_OBJECT
    Q_PLUGIN_METADATA(IID "org.kde.KPluginFactory" FILE "komparepart.json")
    Q_INTERFACES(KPluginFactory)

public:
    KomparePartFactory();
    ~KomparePartFactory() override;

    QObject* create(const char* iface,
                    QWidget* parentWidget, QObject* parent,
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
                    const QVariantList& args) override;
#else
                    const QVariantList& args, const QString& keyword) override;
#endif
};

#endif
