Krita Source Code Documentation
Loading...
Searching...
No Matches
KoColorProfileStorage.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KOCOLORPROFILESTORAGE_H
8#define KOCOLORPROFILESTORAGE_H
9
10#include <QScopedPointer>
12
13class QByteArray;
14class QString;
15class KoColorProfile;
18
40{
41public:
44
49 void addProfile(KoColorProfile* profile);
50
57 void removeProfile(KoColorProfile* profile);
58
62 bool containsProfile(const KoColorProfile *profile);
63
72 void addProfileAlias(const QString& name, const QString& to);
73
77 void removeProfileAlias(const QString &name);
78
82 QString profileAlias(const QString& name) const;
83
91 const KoColorProfile * profileByName(const QString & name) const ;
92
93
101 const KoColorProfile *profileByUniqueId(const QByteArray &id) const;
102
124 double error = 0.0001);
125
126private:
127 struct Private;
128 const QScopedPointer<Private> d;
129};
130
131#endif // KOCOLORPROFILESTORAGE_H
The KoColorProfileStorage class is a "composite subclass" of KoColorSpaceRegistry that ensures that t...
const KoColorProfile * profileByName(const QString &name) const
QList< const KoColorProfile * > profilesFor(const KoColorSpaceFactory *csf) const
void removeProfileAlias(const QString &name)
QString profileAlias(const QString &name) const
void removeProfile(KoColorProfile *profile)
bool containsProfile(const KoColorProfile *profile)
containsProfile shows if a profile is registered in the storage
const KoColorProfile * profileByUniqueId(const QByteArray &id) const
const QScopedPointer< Private > d
void addProfileAlias(const QString &name, const QString &to)
void addProfile(KoColorProfile *profile)
The KoColorProfileQuery struct.