File indexing completed on 2024-12-22 05:05:25
0001 /* 0002 SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "core/utils.h" 0010 #include "exportimportutil.h" 0011 #include "notes/importnotesjobinterface.h" 0012 0013 class ImportNotesJobInterfaceTestImpl : public ImportNotesJobInterface, public ExportImportUtil 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit ImportNotesJobInterfaceTestImpl(QObject *parent, Utils::StoredTypes typeSelected, ArchiveStorage *archiveStorage, int numberOfStep); 0018 ~ImportNotesJobInterfaceTestImpl() override; 0019 void setExistingPathConfig(const QString &path); 0020 0021 protected: 0022 [[nodiscard]] Akonadi::Collection::Id convertFolderPathToCollectionId(const QString &path) override; 0023 [[nodiscard]] QString 0024 createResource(const QString &resources, const QString &name, const QMap<QString, QVariant> &settings, bool synchronizeTree = false) override; 0025 void synchronizeResource(const QStringList &lst) override; 0026 [[nodiscard]] QString adaptResourcePath(const KSharedConfigPtr &resourceConfig, const QString &storedData) override; 0027 [[nodiscard]] QString adaptNewResourceUrl(bool overwriteResources, const KSharedConfig::Ptr &resourceConfig, const QString &storePath) override; 0028 [[nodiscard]] QString configLocation() const override; 0029 0030 private: 0031 QString mExistingPathConfig; 0032 };