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 "addressbook/exportaddressbookjobinterface.h" 0010 #include "exportimportutil.h" 0011 class ExportAddressbookJobInterfaceTestImpl : public ExportAddressbookJobInterface, public ExportImportUtil 0012 { 0013 Q_OBJECT 0014 public: 0015 explicit ExportAddressbookJobInterfaceTestImpl(QObject *parent, Utils::StoredTypes typeSelected, ArchiveStorage *archiveStorage, int numberOfStep); 0016 ~ExportAddressbookJobInterfaceTestImpl() override; 0017 0018 protected: 0019 void convertCollectionToRealPath(KConfigGroup &group, const QString ¤tKey) override; 0020 void convertCollectionListToRealPath(KConfigGroup &group, const QString ¤tKey) override; 0021 [[nodiscard]] Akonadi::Collection::Id convertFolderPathToCollectionId(const QString &path) override; 0022 void exportResourceToArchive(const QString &archivePath, const QString &url, const QString &identifier) override; 0023 [[nodiscard]] QList<Utils::AkonadiInstanceInfo> listOfResource() override; 0024 [[nodiscard]] QString resourcePath(const QString &agentIdentifier, const QString &defaultPath = QString()) const override; 0025 void backupAddressBookResourceFile(const QString &agentIdentifier, const QString &defaultPath) 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 };