Warning, file /office/calligra/libs/odf/KoOdfManifestEntry.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* This file is part of the KDE project 0002 Copyright (C) 2011 Inge Wallin <inge@lysator.liu.se> 0003 0004 This library is free software; you can redistribute it and/or 0005 modify it under the terms of the GNU Library General Public 0006 License as published by the Free Software Foundation; either 0007 version 2 of the License, or (at your option) any later version. 0008 0009 This library is distributed in the hope that it will be useful, 0010 but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0012 Library General Public License for more details. 0013 0014 You should have received a copy of the GNU Library General Public License 0015 along with this library; see the file COPYING.LIB. If not, write to 0016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0017 Boston, MA 02110-1301, USA. 0018 */ 0019 0020 0021 // Own 0022 #include "KoOdfManifestEntry.h" 0023 0024 #include <QString> 0025 0026 class Q_DECL_HIDDEN KoOdfManifestEntry::Private 0027 { 0028 public: 0029 Private() {}; 0030 0031 QString fullPath; // manifest:full-path 0032 QString mediaType; // manifest:media-type 0033 QString version; // manifest:version (isNull==true if not present) 0034 }; 0035 0036 0037 // ---------------------------------------------------------------- 0038 0039 0040 KoOdfManifestEntry::KoOdfManifestEntry(const QString &fullPath, const QString &mediaType, 0041 const QString &version) 0042 : d(new Private()) 0043 { 0044 d->fullPath = fullPath; 0045 d->mediaType = mediaType; 0046 d->version = version; 0047 } 0048 0049 KoOdfManifestEntry::KoOdfManifestEntry(const KoOdfManifestEntry &other) 0050 : d(new Private()) 0051 { 0052 d->fullPath = other.d->fullPath; 0053 d->mediaType = other.d->mediaType; 0054 d->version = other.d->version; 0055 } 0056 0057 KoOdfManifestEntry::~KoOdfManifestEntry() 0058 { 0059 delete d; 0060 } 0061 0062 KoOdfManifestEntry &KoOdfManifestEntry::operator=(const KoOdfManifestEntry &other) 0063 { 0064 d->fullPath = other.d->fullPath; 0065 d->mediaType = other.d->mediaType; 0066 d->version = other.d->version; 0067 0068 return *this; 0069 } 0070 0071 0072 QString KoOdfManifestEntry::fullPath() const 0073 { 0074 return d->fullPath; 0075 } 0076 0077 void KoOdfManifestEntry::setFullPath(const QString &fullPath) 0078 { 0079 d->fullPath = fullPath; 0080 } 0081 0082 QString KoOdfManifestEntry::mediaType() const 0083 { 0084 return d->mediaType; 0085 } 0086 0087 void KoOdfManifestEntry::setMediaType(const QString &mediaType) 0088 { 0089 d->mediaType = mediaType; 0090 } 0091 0092 QString KoOdfManifestEntry::version() const 0093 { 0094 return d->version; 0095 } 0096 0097 void KoOdfManifestEntry::setVersion(const QString &version) 0098 { 0099 d->version = version; 0100 } 0101