File indexing completed on 2024-05-26 05:27:09
0001 /* 0002 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "exportnotesjobinterface.h" 0010 #include "pimdataexportercore_private_export.h" 0011 class ArchiveStorage; 0012 0013 class PIMDATAEXPORTER_TESTS_EXPORT ExportNotesJobInterfaceImpl : public ExportNotesJobInterface 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit ExportNotesJobInterfaceImpl(QObject *parent, Utils::StoredTypes typeSelected, ArchiveStorage *archiveStorage, int numberOfStep); 0018 ~ExportNotesJobInterfaceImpl() override; 0019 0020 protected: 0021 void convertCollectionIdsToRealPath(KConfigGroup &selectFolderNoteGroup, const QString &selectFolderNoteGroupStr) override; 0022 [[nodiscard]] Akonadi::Collection::Id convertFolderPathToCollectionId(const QString &path) override; 0023 void exportResourceToArchive(const QString &archivePath, const QString &url, const QString &identifier) override; 0024 [[nodiscard]] QList<Utils::AkonadiInstanceInfo> listOfResource() override; 0025 [[nodiscard]] QString resourcePath(const QString &identifier) const override; 0026 [[nodiscard]] QString adaptNewResourceUrl(bool overwriteResources, const KSharedConfig::Ptr &resourceConfig, const QString &storePath) override; 0027 [[nodiscard]] QString createResource(const QString &resources, const QString &name, const QMap<QString, QVariant> &settings, bool synchronizeTree) override; 0028 };