1
/* This file is part of the KDE project
2
Copyright (C) 2011 Inge Wallin <inge@lysator.liu.se>
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Library General Public
6
License as published by the Free Software Foundation; either
7
version 2 of the License, or (at your option) any later version.
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Library General Public License for more details.
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to
16
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17
Boston, MA 02110-1301, USA.
22
#include "KoOdfManifestEntry.h"
26
class Q_DECL_HIDDEN KoOdfManifestEntry::Private
31
QString fullPath; // manifest:full-path
32
QString mediaType; // manifest:media-type
33
QString version; // manifest:version (isNull==true if not present)
37
// ----------------------------------------------------------------
40
KoOdfManifestEntry::KoOdfManifestEntry(const QString &fullPath, const QString &mediaType,
41
const QString &version)
44
d->fullPath = fullPath;
45
d->mediaType = mediaType;
49
KoOdfManifestEntry::KoOdfManifestEntry(const KoOdfManifestEntry &other)
52
d->fullPath = other.d->fullPath;
53
d->mediaType = other.d->mediaType;
54
d->version = other.d->version;
57
KoOdfManifestEntry::~KoOdfManifestEntry()
62
KoOdfManifestEntry &KoOdfManifestEntry::operator=(const KoOdfManifestEntry &other)
64
d->fullPath = other.d->fullPath;
65
d->mediaType = other.d->mediaType;
66
d->version = other.d->version;
72
QString KoOdfManifestEntry::fullPath() const
77
void KoOdfManifestEntry::setFullPath(const QString &fullPath)
79
d->fullPath = fullPath;
82
QString KoOdfManifestEntry::mediaType() const
87
void KoOdfManifestEntry::setMediaType(const QString &mediaType)
89
d->mediaType = mediaType;
92
QString KoOdfManifestEntry::version() const
97
void KoOdfManifestEntry::setVersion(const QString &version)