File indexing completed on 2025-02-09 07:11:24

0001 /*
0002     This file is part of the Kasten Framework, made within the KDE community.
0003 
0004     SPDX-FileCopyrightText: 2008-2009, 2011 Friedrich W. H. Kossebau <kossebau@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007 */
0008 
0009 #include "abstractfilesystemexportjob.hpp"
0010 #include "abstractfilesystemexportjob_p.hpp"
0011 
0012 namespace Kasten {
0013 
0014 AbstractFileSystemExportJob::AbstractFileSystemExportJob(AbstractModel* model, const AbstractModelSelection* selection,
0015                                                          const QUrl& url)
0016     : AbstractExportJob(new AbstractFileSystemExportJobPrivate(this, model, selection, url))
0017 {
0018 }
0019 
0020 AbstractFileSystemExportJob::AbstractFileSystemExportJob(AbstractFileSystemExportJobPrivate* d)
0021     : AbstractExportJob(d)
0022 {
0023 }
0024 
0025 AbstractFileSystemExportJob::~AbstractFileSystemExportJob() = default;
0026 
0027 AbstractModel* AbstractFileSystemExportJob::model() const
0028 {
0029     Q_D(const AbstractFileSystemExportJob);
0030 
0031     return d->model();
0032 }
0033 const AbstractModelSelection* AbstractFileSystemExportJob::selection() const
0034 {
0035     Q_D(const AbstractFileSystemExportJob);
0036 
0037     return d->selection();
0038 }
0039 QFile* AbstractFileSystemExportJob::file() const
0040 {
0041     Q_D(const AbstractFileSystemExportJob);
0042 
0043     return d->file();
0044 }
0045 
0046 void AbstractFileSystemExportJob::start()
0047 {
0048     Q_D(AbstractFileSystemExportJob);
0049 
0050     d->start();
0051 }
0052 
0053 void AbstractFileSystemExportJob::completeExport(bool success)
0054 {
0055     Q_D(AbstractFileSystemExportJob);
0056 
0057     d->completeExport(success);
0058 }
0059 
0060 }
0061 
0062 // have to include this because of Q_PRIVATE_SLOT
0063 #include "moc_abstractfilesystemexportjob.cpp"