File indexing completed on 2024-06-23 05:49:21
0001 /* 0002 This file is part of the Kasten Framework, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2008-2009 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 #ifndef KASTEN_ABSTRACTMODELEXPORTER_P_HPP 0010 #define KASTEN_ABSTRACTMODELEXPORTER_P_HPP 0011 0012 #include "abstractmodelexporter.hpp" 0013 0014 namespace Kasten { 0015 0016 class AbstractModelExporterPrivate 0017 { 0018 public: 0019 AbstractModelExporterPrivate(AbstractModelExporter* parent, 0020 const QString& remoteTypeName, const QString& remoteMimeType); 0021 AbstractModelExporterPrivate(const AbstractModelExporterPrivate&) = delete; 0022 0023 virtual ~AbstractModelExporterPrivate(); 0024 0025 AbstractModelExporterPrivate& operator=(const AbstractModelExporterPrivate&) = delete; 0026 0027 public: 0028 const QString& remoteTypeName() const; 0029 const QString& remoteMimeType() const; 0030 0031 protected: 0032 AbstractModelExporter* const q_ptr; 0033 0034 const QString mRemoteTypeName; 0035 const QString mRemoteMimeType; 0036 }; 0037 0038 inline AbstractModelExporterPrivate::AbstractModelExporterPrivate(AbstractModelExporter* parent, 0039 const QString& remoteTypeName, const QString& remoteMimeType) 0040 : q_ptr(parent) 0041 , mRemoteTypeName(remoteTypeName) 0042 , mRemoteMimeType(remoteMimeType) 0043 {} 0044 0045 inline AbstractModelExporterPrivate::~AbstractModelExporterPrivate() = default; 0046 0047 inline const QString& AbstractModelExporterPrivate::remoteTypeName() const { return mRemoteTypeName; } 0048 inline const QString& AbstractModelExporterPrivate::remoteMimeType() const { return mRemoteMimeType; } 0049 0050 } 0051 0052 #endif