Commit 10c91c0b authored by Laurent Montel's avatar Laurent Montel 😁

Move as plugins

parent ab04f0ac
......@@ -52,7 +52,7 @@ set(libimportwizard_autodetect_SRCS
# autodetect/opera/operaaddressbook.cpp
# autodetect/opera/operasettings.cpp
autodetect/oe/oeimportdata.cpp
autodetect/mailapp/mailappimportdata.cpp
# autodetect/mailapp/mailappimportdata.cpp
autodetect/pmail/pmailimportdata.cpp
autodetect/pmail/pmailsettings.cpp
autodetect/thebat/thebatimportdata.cpp
......
add_subdirectory(geary)
add_subdirectory(trojita)
add_subdirectory(opera)
add_subdirectory(mailapp)
set(mailappimporter_SRCS
mailappimportdata.cpp
)
kcoreaddons_add_plugin(mailappimporterplugin JSON mailappimporter.json SOURCES
${mailappimporter_SRCS} INSTALL_NAMESPACE importwizard)
target_link_libraries(mailappimporterplugin
libimportwizard
KF5::XmlGui
KF5::I18n
KF5::Contacts
KF5::MailImporterAkonadi
KF5::MailTransport
KF5::IdentityManagement
KF5::MailCommon
)
......@@ -27,6 +27,8 @@
#include <kpluginfactory.h>
#include <QDir>
K_PLUGIN_FACTORY_WITH_JSON(MailAppImporterFactory, "mailappimporter.json", registerPlugin<MailAppImportData>();)
MailAppImportData::MailAppImportData(QObject *parent, const QList<QVariant> &)
: AbstractImporter(parent)
{
......@@ -75,3 +77,6 @@ AbstractImporter::TypeSupportedOptions MailAppImportData::supportedOption()
options |= AbstractImporter::Mails;
return options;
}
#include "mailappimportdata.moc"
......@@ -34,7 +34,6 @@
#include "autodetect/evolutionv1/evolutionv1importdata.h"
#include "autodetect/icedove/icedoveimportdata.h"
#include "autodetect/oe/oeimportdata.h"
#include "autodetect/mailapp/mailappimportdata.h"
#include "autodetect/pmail/pmailimportdata.h"
#include "autodetect/thebat/thebatimportdata.h"
#include "autodetect/balsa/balsaimportdata.h"
......
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