Commit 150ea832 authored by Laurent Montel's avatar Laurent Montel 😁

Convert thebat as plugins

parent 8504eb50
......@@ -55,7 +55,7 @@ set(libimportwizard_autodetect_SRCS
# autodetect/mailapp/mailappimportdata.cpp
autodetect/pmail/pmailimportdata.cpp
autodetect/pmail/pmailsettings.cpp
autodetect/thebat/thebatimportdata.cpp
# autodetect/thebat/thebatimportdata.cpp
# autodetect/balsa/balsaimportdata.cpp
# autodetect/balsa/balsasettings.cpp
# autodetect/balsa/balsaaddressbook.cpp
......
......@@ -8,3 +8,5 @@ add_subdirectory(evolutionv1)
add_subdirectory(evolutionv2)
add_subdirectory(evolutionv3)
add_subdirectory(oe)
add_subdirectory(thebat)
set(thebatimporter_SRCS
thebatimportdata.cpp
)
kcoreaddons_add_plugin(thebatimporterplugin JSON thebatimporter.json SOURCES
${thebatimporter_SRCS} INSTALL_NAMESPACE importwizard)
target_link_libraries(thebatimporterplugin
libimportwizard
KF5::XmlGui
KF5::I18n
KF5::Contacts
KF5::MailImporterAkonadi
KF5::MailTransport
KF5::IdentityManagement
KF5::MailCommon
)
......@@ -28,6 +28,8 @@
#include <QDir>
K_PLUGIN_FACTORY_WITH_JSON(TheBatImporterFactory, "thebatimporter.json", registerPlugin<TheBatImportData>();)
TheBatImportData::TheBatImportData(QObject *parent, const QList<QVariant> &)
: AbstractImporter(parent)
{
......@@ -74,3 +76,5 @@ AbstractImporter::TypeSupportedOptions TheBatImportData::supportedOption()
options |= AbstractImporter::Mails;
return options;
}
#include "thebatimportdata.moc"
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