File indexing completed on 2024-05-26 05:27:05

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 "pimdataexporter_export.h"
0010 #include "resourceconverterbase.h"
0011 class ResourceConverterTest : public ResourceConverterBase
0012 {
0013 public:
0014     ResourceConverterTest();
0015     ~ResourceConverterTest() override;
0016     [[nodiscard]] QString convertToFullCollectionPath(const qlonglong collectionValue) override;
0017 
0018     [[nodiscard]] Akonadi::Collection::Id convertFolderPathToCollectionId(const QString &path) override;
0019 
0020     [[nodiscard]] QString changeResourcePath(QString url) const override;
0021 
0022     void setTestPath(const QString &testPath);
0023 
0024     [[nodiscard]] QString installDefaultDirectory() override;
0025     [[nodiscard]] QString adaptNewResourceUrl(bool overwriteResources, const KSharedConfig::Ptr &resourceConfig, const QString &storePath) override;
0026 
0027 private:
0028     [[nodiscard]] QString prefixStr() const;
0029     QString mTestPath;
0030 };