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

Allow to redefine convertFolderPathToCollectionId (need for autotest)

parent 7d40ca4c
......@@ -251,13 +251,18 @@ Akonadi::Collection::Id AbstractImportExportJob::convertPathToId(const QString &
if (val != -1) {
return val;
}
const Akonadi::Collection::Id id = MailCommon::Util::convertFolderPathToCollectionId(path);
const Akonadi::Collection::Id id = convertFolderPathToCollectionId(path);
if (id != -1) {
mHashConvertPathCollectionId.insert(path, id);
}
return id;
}
Akonadi::Collection::Id AbstractImportExportJob::convertFolderPathToCollectionId(const QString &path)
{
return MailCommon::Util::convertFolderPathToCollectionId(path);
}
void AbstractImportExportJob::initializeImportJob()
{
if (mTempDir) {
......
......@@ -128,6 +128,7 @@ protected:
void convertCollectionListStrToAkonadiId(const KSharedConfig::Ptr &config, const QString &groupName, const QString &key, bool addCollectionPrefix);
void convertRealPathToCollectionList(KConfigGroup &group, const QString &currentKey, bool addCollectionPrefix = true);
virtual Q_REQUIRED_RESULT Akonadi::Collection::Id convertFolderPathToCollectionId(const QString &path);
private:
void slotAllResourceSynchronized();
void slotSynchronizeInstanceDone(const QString &, const QString &identifier);
......
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