Commit 84cebc90 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Convert pmail to plugin

parent 10c91c0b
......@@ -2,3 +2,4 @@ add_subdirectory(geary)
add_subdirectory(trojita)
add_subdirectory(opera)
add_subdirectory(mailapp)
add_subdirectory(pmail)
set(pmailimporter_SRCS
pmailimportdata.cpp
pmailsettings.cpp
)
kcoreaddons_add_plugin(pmailimporterplugin JSON pmailimporter.json SOURCES
${pmailimporter_SRCS} INSTALL_NAMESPACE importwizard)
target_link_libraries(pmailimporterplugin
libimportwizard
KF5::XmlGui
KF5::I18n
KF5::Contacts
KF5::MailImporterAkonadi
KF5::MailTransport
KF5::MailCommon
KF5::IdentityManagement
)
......@@ -28,6 +28,7 @@
#include <kpluginfactory.h>
#include <QDir>
K_PLUGIN_FACTORY_WITH_JSON(PMailImporterFactory, "pmailimporter.json", registerPlugin<PMailImportData>();)
PMailImportData::PMailImportData(QObject *parent, const QList<QVariant> &)
: AbstractImporter(parent)
{
......@@ -86,3 +87,5 @@ AbstractImporter::TypeSupportedOptions PMailImportData::supportedOption()
//options |=AbstractImporter::Settings;
return options;
}
#include "pmailimportdata.moc"
......@@ -34,7 +34,6 @@
#include "autodetect/evolutionv1/evolutionv1importdata.h"
#include "autodetect/icedove/icedoveimportdata.h"
#include "autodetect/oe/oeimportdata.h"
#include "autodetect/pmail/pmailimportdata.h"
#include "autodetect/thebat/thebatimportdata.h"
#include "autodetect/balsa/balsaimportdata.h"
#include "autodetect/claws-mail/clawsmailimportdata.h"
......@@ -254,9 +253,9 @@ void ImportWizard::initializeImportModule()
#endif
#ifdef Q_OS_WIN
importer = new PMailImportData(this);
importer->setImportWizard(this);
addImportModule(importer);
// importer = new PMailImportData(this);
// importer->setImportWizard(this);
// addImportModule(importer);
importer = new TheBatImportData(this);
importer->setImportWizard(this);
......
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