Warning, file /office/calligra/libs/pigment/KoColorProfile.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002  *  Copyright (c) 2007 Cyrille Berger <cberger@cberger.net>
0003  *
0004  * This library is free software; you can redistribute it and/or
0005  * modify it under the terms of the GNU Lesser General Public
0006  * License as published by the Free Software Foundation; either
0007  * version 2.1 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  * Lesser General Public License for more details.
0013  *
0014  * You should have received a copy of the GNU Lesser 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 #include "KoColorProfile.h"
0021 #include "DebugPigment.h"
0022 
0023 struct Q_DECL_HIDDEN KoColorProfile::Private {
0024     QString name;
0025     QString info;
0026     QString fileName;
0027     QString manufacturer;
0028     QString copyright;
0029 };
0030 
0031 KoColorProfile::KoColorProfile(const QString &fileName) : d(new Private)
0032 {
0033 //     dbgPigment <<" Profile filename =" << fileName;
0034     d->fileName = fileName;
0035 }
0036 
0037 KoColorProfile::KoColorProfile(const KoColorProfile& profile)
0038     : d(new Private(*profile.d))
0039 {
0040 }
0041 
0042 KoColorProfile::~KoColorProfile()
0043 {
0044     delete d;
0045 }
0046 
0047 bool KoColorProfile::load()
0048 {
0049     return false;
0050 }
0051 
0052 bool KoColorProfile::save(const QString & filename)
0053 {
0054     Q_UNUSED(filename);
0055     return false;
0056 }
0057 
0058 
0059 QString KoColorProfile::name() const
0060 {
0061     return d->name;
0062 }
0063 
0064 QString KoColorProfile::info() const
0065 {
0066     return d->info;
0067 }
0068 QString KoColorProfile::manufacturer() const
0069 {
0070     return d->manufacturer;
0071 }
0072 QString KoColorProfile::copyright() const
0073 {
0074     return d->copyright;
0075 }
0076 QString KoColorProfile::fileName() const
0077 {
0078     return d->fileName;
0079 }
0080 
0081 void KoColorProfile::setFileName(const QString &f)
0082 {
0083     d->fileName = f;
0084 }
0085 
0086 void KoColorProfile::setName(const QString &name)
0087 {
0088     d->name = name;
0089 }
0090 void KoColorProfile::setInfo(const QString &info)
0091 {
0092     d->info = info;
0093 }
0094 void KoColorProfile::setManufacturer(const QString &manufacturer)
0095 {
0096     d->manufacturer = manufacturer;
0097 }
0098 void KoColorProfile::setCopyright(const QString &copyright)
0099 {
0100     d->copyright = copyright;
0101 }