File indexing completed on 2024-05-05 04:33:15

0001 /*
0002     SPDX-FileCopyrightText: 2004-2018 Gilles Caulier <caulier dot gilles at gmail dot com>
0003     SPDX-FileCopyrightText: 2004-2005 Renchi Raju <renchi dot raju at gmail dot com>
0004     SPDX-FileCopyrightText: 2004-2005 Jesper K. Pedersen <blackie at kde dot org>
0005     SPDX-FileCopyrightText: 2004-2005 Aurelien Gateau <aurelien dot gateau at free dot fr>
0006 
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 
0010 // Local includes
0011 
0012 #include "imageinfo.h"
0013 #include "imageinfoshared.h"
0014 
0015 namespace KIPI
0016 {
0017 
0018 ImageInfo::ImageInfo(ImageInfoShared* const shared)
0019     : d(shared)
0020 {
0021 }
0022 
0023 ImageInfo::ImageInfo(const ImageInfo& rhs)
0024 {
0025     d = rhs.d;
0026     d->addRef();
0027 }
0028 
0029 ImageInfo::ImageInfo()
0030 {
0031     d = nullptr;
0032 }
0033 
0034 ImageInfo::~ImageInfo()
0035 {
0036     d->removeRef();
0037 }
0038 
0039 ImageInfo& ImageInfo::operator=(const ImageInfo&)
0040 {
0041     return *this;
0042 }
0043 
0044 QMap<QString,QVariant> ImageInfo::attributes() const
0045 {
0046     return d->attributes();
0047 }
0048 
0049 void ImageInfo::addAttributes(const QMap<QString,QVariant>& attributes)
0050 {
0051     d->addAttributes( attributes );
0052 }
0053 
0054 void ImageInfo::delAttributes(const QStringList& attributes)
0055 {
0056     d->delAttributes(attributes);
0057 }
0058 
0059 void ImageInfo::clearAttributes()
0060 {
0061     d->clearAttributes();
0062 }
0063 
0064 void ImageInfo::cloneData(const ImageInfo& other)
0065 {
0066     d->cloneData(other.d);
0067 }
0068 
0069 QUrl ImageInfo::url() const
0070 {
0071     return d->url();
0072 }
0073 
0074 } // namespace KIPI