Commit b3dac4fa authored by Laurent Montel's avatar Laurent Montel 😁

Port to new macro which will be avaailable in 5.44

parent 67f6df65
/*
Copyright (c) 2018 Montel Laurent <montel@kde.org>
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Library General Public License as published
by the Free Software Foundation; either version 2 of the License or
( at your option ) version 3 or, at the discretion of KDE e.V.
( which shall act as a proxy as in section 14 of the GPLv3 ), any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KCOREADDONS_KDEPIM_COMPAT_H
#define KCOREADDONS_KDEPIM_COMPAT_H
#include <kcoreaddons_version.h>
#include <kpluginfactory.h>
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(5, 44, 0)
#define K_PLUGIN_CLASS_WITH_JSON(classname, json) K_PLUGIN_FACTORY_WITH_JSON(classname ## Factory, json, registerPlugin<classname >();)
#endif
#endif
......@@ -23,13 +23,12 @@
#include "mailimporter/filterbalsa.h"
#include "mailimporter/filterinfo.h"
#include "MailCommon/FilterImporterBalsa"
#include "kcoreaddons_kdepim_compat.h"
#include <KLocalizedString>
#include <kpluginfactory.h>
#include <QDir>
K_PLUGIN_FACTORY_WITH_JSON(BalsaImporterFactory, "balsaimporter.json", registerPlugin<BalsaImportData>();
)
K_PLUGIN_CLASS_WITH_JSON(BalsaImportData, "balsaimporter.json")
BalsaImportData::BalsaImportData(QObject *parent, const QList<QVariant> &)
: LibImportWizard::AbstractImporter(parent)
......
......@@ -23,14 +23,13 @@
#include "mailimporter/filterclawsmail.h"
#include "MailCommon/FilterImporterClawsMail"
#include "mailimporter/filterinfo.h"
#include "kcoreaddons_kdepim_compat.h"
#include <kpluginfactory.h>
#include <KLocalizedString>
#include <QDir>
K_PLUGIN_FACTORY_WITH_JSON(ClawsMailImporterFactory, "clawsmailimporter.json", registerPlugin<ClawsMailImportData>();
)
K_PLUGIN_CLASS_WITH_JSON(ClawsMailImportData, "clawsmailimporter.json")
ClawsMailImportData::ClawsMailImportData(QObject *parent, const QList<QVariant> &)
: LibImportWizard::AbstractImporter(parent)
......
......@@ -26,13 +26,12 @@
#include "MailCommon/FilterImporterExporter"
#include <kpluginfactory.h>
#include "kcoreaddons_kdepim_compat.h"
#include <KLocalizedString>
#include <QDir>
K_PLUGIN_FACTORY_WITH_JSON(Evolutionv3ImporterFactory, "evolutionv3importer.json", registerPlugin<Evolutionv3ImportData>();
)
K_PLUGIN_CLASS_WITH_JSON(Evolutionv3ImportData, "evolutionv3importer.json")
Evolutionv3ImportData::Evolutionv3ImportData(QObject *parent, const QList<QVariant> &)
: LibImportWizard::AbstractImporter(parent)
......
......@@ -25,14 +25,12 @@
#include "sylpheedsettings.h"
#include "sylpheedaddressbook.h"
#include "kcoreaddons_kdepim_compat.h"
#include <KLocalizedString>
#include <kpluginfactory.h>
#include <QDir>
K_PLUGIN_FACTORY_WITH_JSON(SylpheedImporterFactory, "sylpheedimporter.json", registerPlugin<SylpheedImportData>();
)
K_PLUGIN_CLASS_WITH_JSON(SylpheedImportData, "sylpheedimporter.json")
SylpheedImportData::SylpheedImportData(QObject *parent, const QList<QVariant> &)
: LibImportWizard::AbstractImporter(parent)
{
......
......@@ -26,14 +26,13 @@
#include "mailimporter/filterthunderbird.h"
#include "mailimporter/filterinfo.h"
#include "MailCommon/FilterImporterExporter"
#include "kcoreaddons_kdepim_compat.h"
#include <KLocalizedString>
#include <kpluginfactory.h>
#include <QDir>
K_PLUGIN_FACTORY_WITH_JSON(ThunderbirdImporterFactory, "thunderbirdimporter.json", registerPlugin<ThunderbirdImportData>();
)
K_PLUGIN_CLASS_WITH_JSON(ThunderbirdImportData, "thunderbirdimporter.json")
ThunderbirdImportData::ThunderbirdImportData(QObject *parent, const QList<QVariant> &)
: LibImportWizard::AbstractImporter(parent)
......
......@@ -22,13 +22,12 @@
#include "trojitaaddressbook.h"
#include "mailimporter/filterinfo.h"
#include "mailimporter/othermailerutil.h"
#include "kcoreaddons_kdepim_compat.h"
#include <kpluginfactory.h>
#include <QDir>
K_PLUGIN_FACTORY_WITH_JSON(TrojitaImporterFactory, "trojitaimporter.json", registerPlugin<TrojitaImportData>();
)
K_PLUGIN_CLASS_WITH_JSON(TrojitaImportData, "trojitaimporter.json")
TrojitaImportData::TrojitaImportData(QObject *parent, const QList<QVariant> &)
: LibImportWizard::AbstractImporter(parent)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment