Commit 4e24a810 authored by Laurent Montel's avatar Laurent Montel 😁

Look at to implement plugins

parent d5260e16
......@@ -139,4 +139,4 @@ install(PROGRAMS data/org.kde.importwizard.desktop DESTINATION ${KDE_INSTALL_APP
install(TARGETS libimportwizard ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
add_subdirectory(manual/pics)
add_subdirectory(autodetect/geary)
......@@ -21,6 +21,7 @@
#define ABSTRACTBASE_H
#include <QObject>
#include "libimportwizard_export.h"
#include <QString>
#include <QMap>
#include <QVariant>
......@@ -30,7 +31,7 @@ namespace PimCommon
class CreateResource;
}
class AbstractBase : public QObject
class LIBIMPORTWIZARD_EXPORT AbstractBase : public QObject
{
Q_OBJECT
public:
......
set(gearyimporter_SRCS
gearyaddressbook.cpp
gearyimportdata.cpp
gearysettings.cpp
)
kcoreaddons_add_plugin(gearyimporterplugin JSON gearyimporter.json SOURCES
${gearyimporter_SRCS} INSTALL_NAMESPACE importwizard)
target_link_libraries(gearyimporterplugin
libimportwizard
KF5::XmlGui
KF5::I18n
KF5::Contacts
KF5::MailImporterAkonadi
KF5::MailTransport
KF5::IdentityManagement
)
......@@ -24,7 +24,7 @@
#include "mailimporter/othermailerutil.h"
#include "importfilterinfogui.h"
#include "importwizard.h"
#include "importwizard_debug.h"
//#include "importwizard_debug.h"
#include <kpluginfactory.h>
#include <QDir>
......@@ -63,7 +63,7 @@ bool GearyImportData::importSettings()
{
QDir directory(mPath);
const QStringList lstDir = directory.entryList(QDir::AllDirs);
qCDebug(IMPORTWIZARD_LOG) << "Number of directory " << lstDir.count();
//qCDebug(IMPORTWIZARD_LOG) << "Number of directory " << lstDir.count();
const QString configName = QStringLiteral("geary.ini");
for (int i = 0; i < lstDir.count(); ++i) {
const QString fullPath = lstDir.at(i) + QDir::separator() + configName;
......
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