csvimportexportplugin.cpp 852 Bytes
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1
/*
2 3 4
   SPDX-FileCopyrightText: 2016-2020 Laurent Montel <montel@kde.org>

   SPDX-License-Identifier: GPL-2.0-or-later
Laurent Montel's avatar
Laurent Montel committed
5 6 7 8
*/

#include "csvimportexportplugin.h"
#include "csvimportexportplugininterface.h"
9
#include <KPluginFactory>
Laurent Montel's avatar
Laurent Montel committed
10

11
K_PLUGIN_CLASS_WITH_JSON(CSVImportExportPlugin, "kaddressbook_importexportcsvplugin.json")
Laurent Montel's avatar
Laurent Montel committed
12 13

CSVImportExportPlugin::CSVImportExportPlugin(QObject *parent, const QList<QVariant> &)
14
    : KAddressBookImportExport::Plugin(parent)
Laurent Montel's avatar
Laurent Montel committed
15 16 17
{
}

18
CSVImportExportPlugin::~CSVImportExportPlugin() = default;
Laurent Montel's avatar
Laurent Montel committed
19

Laurent Montel's avatar
Laurent Montel committed
20
PimCommon::AbstractGenericPluginInterface *CSVImportExportPlugin::createInterface(QObject *parent)
Laurent Montel's avatar
Laurent Montel committed
21 22 23 24 25 26 27 28 29
{
    CSVImportExportPluginInterface *interface = new CSVImportExportPluginInterface(parent);
    return interface;
}

bool CSVImportExportPlugin::hasPopupMenuSupport() const
{
    return true;
}
Laurent Montel's avatar
Laurent Montel committed
30 31

#include "csvimportexportplugin.moc"