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 #include "testbackupresourcefilejob.h" 0008 #include "resourceconvertertest.h" 0009 TestBackupResourceFileJob::TestBackupResourceFileJob(QObject *parent) 0010 : BackupResourceFileJobBase(parent) 0011 { 0012 } 0013 0014 TestBackupResourceFileJob::~TestBackupResourceFileJob() = default; 0015 0016 QString TestBackupResourceFileJob::resourcePath(const QString &identifier) const 0017 { 0018 ResourceConverterTest converter; 0019 converter.setTestPath(mTestPath); 0020 const QString url = converter.resourcePath(identifier); 0021 return url; 0022 } 0023 0024 void TestBackupResourceFileJob::setTestPath(const QString &str) 0025 { 0026 mTestPath = str; 0027 } 0028 0029 #include "moc_testbackupresourcefilejob.cpp"