Commit 81ff08b1 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use BackupResourceFileJobImpl

parent ee6bc319
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include "abstractimportexportjob.h" #include "abstractimportexportjob.h"
#include "archivestorage.h" #include "archivestorage.h"
#include "backupresourcefilejobbase.h" #include "backupresourcefilejobbase.h"
#include "backupresourcefilejobimpl.h"
#include "importexportprogressindicatorbase.h" #include "importexportprogressindicatorbase.h"
#include "resourceconverterimpl.h" #include "resourceconverterimpl.h"
#include "storeresourcejob.h" #include "storeresourcejob.h"
...@@ -315,12 +316,12 @@ void AbstractImportExportJob::copyToFile(const KArchiveFile *archivefile, const ...@@ -315,12 +316,12 @@ void AbstractImportExportJob::copyToFile(const KArchiveFile *archivefile, const
void AbstractImportExportJob::backupResourceFile(const QString &identifier, const QString &defaultPath) void AbstractImportExportJob::backupResourceFile(const QString &identifier, const QString &defaultPath)
{ {
BackupResourceFileJobBase *job = new BackupResourceFileJobBase(this); BackupResourceFileJobImpl *job = new BackupResourceFileJobImpl(this);
job->setDefaultPath(defaultPath); job->setDefaultPath(defaultPath);
job->setIdentifier(identifier); job->setIdentifier(identifier);
job->setZip(archive()); job->setZip(archive());
connect(job, &BackupResourceFileJobBase::error, this, &AbstractImportExportJob::error); connect(job, &BackupResourceFileJobImpl::error, this, &AbstractImportExportJob::error);
connect(job, &BackupResourceFileJobBase::info, this, &AbstractImportExportJob::info); connect(job, &BackupResourceFileJobImpl::info, this, &AbstractImportExportJob::info);
job->start(); job->start();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment