File indexing completed on 2025-02-09 07:11:25
0001 /* 0002 This file is part of the Kasten Framework, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2008 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 "modelencoderfilesystemexporter.hpp" 0010 #include "modelencoderfilesystemexporter_p.hpp" 0011 0012 namespace Kasten { 0013 0014 ModelEncoderFileSystemExporter::ModelEncoderFileSystemExporter(AbstractModelStreamEncoder* encoder) 0015 : AbstractModelExporter(new ModelEncoderFileSystemExporterPrivate(this, encoder->remoteTypeName(), encoder->remoteMimeType(), encoder)) 0016 { 0017 } 0018 0019 ModelEncoderFileSystemExporter::~ModelEncoderFileSystemExporter() = default; 0020 0021 AbstractModelStreamEncoder* ModelEncoderFileSystemExporter::encoder() const 0022 { 0023 Q_D(const ModelEncoderFileSystemExporter); 0024 0025 return d->encoder(); 0026 } 0027 0028 AbstractExportJob* ModelEncoderFileSystemExporter::startExport(AbstractModel* model, 0029 const AbstractModelSelection* selection, 0030 const QUrl& url) 0031 { 0032 Q_D(ModelEncoderFileSystemExporter); 0033 0034 return d->startExport(model, selection, url); 0035 } 0036 0037 QString ModelEncoderFileSystemExporter::modelTypeName(AbstractModel* model, const AbstractModelSelection* selection) const 0038 { 0039 Q_D(const ModelEncoderFileSystemExporter); 0040 0041 return d->modelTypeName(model, selection); 0042 } 0043 0044 } 0045 0046 #include "moc_modelencoderfilesystemexporter.cpp"