Commit f758b16a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Continue to implement interface

parent 588c1a14
......@@ -527,12 +527,6 @@ void ImportMailJobInterface::restoreResources()
QTimer::singleShot(0, this, &ImportMailJobInterface::slotNextStep);
}
Collection::Id ImportMailJobInterface::convertFolderPathToCollectionId(const QString &path)
{
ResourceConverterImpl converter;
return converter.convertFolderPathToCollectionId(path);
}
void ImportMailJobInterface::restoreMails()
{
increaseProgressDialog();
......
......@@ -53,7 +53,7 @@ protected:
void convertCollectionStrToAkonadiId(const KSharedConfig::Ptr &config, const QString &groupName, const QString &key);
virtual void restoreMails();
void restoreResources();
Q_REQUIRED_RESULT Akonadi::Collection::Id convertFolderPathToCollectionId(const QString &path) override;
virtual Q_REQUIRED_RESULT Akonadi::Collection::Id convertFolderPathToCollectionId(const QString &path) = 0;
virtual Q_REQUIRED_RESULT QString createResource(const QString &resources, const QString &name, const QMap<QString, QVariant> &settings) = 0;
virtual void registerSpecialCollection(Akonadi::SpecialMailCollections::Type type, qint64 colId) = 0;
virtual void synchronizeResource(const QStringList &lst) = 0;
......
......@@ -18,6 +18,7 @@
*/
#include "importmailjobinterfaceimpl.h"
#include "resourceconverterimpl.h"
#include "archivestorage.h"
#include <AkonadiCore/CollectionFetchJob>
#include <PimCommonAkonadi/CreateResource>
......@@ -60,3 +61,9 @@ void ImportMailJobInterfaceImpl::importFilters(const QVector<MailCommon::MailFil
{
MailCommon::FilterManager::instance()->appendFilters(filters);
}
Collection::Id ImportMailJobInterfaceImpl::convertFolderPathToCollectionId(const QString &path)
{
ResourceConverterImpl converter;
return converter.convertFolderPathToCollectionId(path);
}
......@@ -44,6 +44,7 @@ protected:
Q_REQUIRED_RESULT QString createResource(const QString &resources, const QString &name, const QMap<QString, QVariant> &settings) override;
void synchronizeResource(const QStringList &lst) override;
void importFilters(const QVector<MailCommon::MailFilter *> &filters) override;
Q_REQUIRED_RESULT Akonadi::Collection::Id convertFolderPathToCollectionId(const QString &path) override;
};
#endif // ImportMailJob_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