File indexing completed on 2024-12-22 05:05:23

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 "alarm/exportalarmjobinterface.h"
0010 #include "exportimportutil.h"
0011 
0012 class ExportAlarmJobInterfaceTestImpl : public ExportAlarmJobInterface, public ExportImportUtil
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit ExportAlarmJobInterfaceTestImpl(QObject *parent, Utils::StoredTypes typeSelected, ArchiveStorage *archiveStorage, int numberOfStep);
0017     ~ExportAlarmJobInterfaceTestImpl() override;
0018 
0019 protected:
0020     [[nodiscard]] Akonadi::Collection::Id convertFolderPathToCollectionId(const QString &path) override;
0021     void exportResourceToArchive(const QString &archivePath, const QString &url, const QString &identifier) override;
0022     [[nodiscard]] QList<Utils::AkonadiInstanceInfo> listOfResource() override;
0023     [[nodiscard]] QString resourcePath(const QString &identifier) const override;
0024     void backupAlarmResourceFile(const QString &agentIdentifier, const QString &defaultPath) override;
0025     [[nodiscard]] QString adaptNewResourceUrl(bool overwriteResources, const KSharedConfig::Ptr &resourceConfig, const QString &storePath) override;
0026     [[nodiscard]] QString createResource(const QString &resources, const QString &name, const QMap<QString, QVariant> &settings, bool synchronizeTree) override;
0027     void convertCollectionIdsToRealPath(KConfigGroup &selectFolderNoteGroup, const QString &selectFolderNoteGroupStr) override;
0028 };