Warning, file /office/calligra/libs/pigment/KoColorTransformationFactoryRegistry.h 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 #ifndef KOCOLORTRANSFORMATIONFACTORYREGISTRY_H 0021 #define KOCOLORTRANSFORMATIONFACTORYREGISTRY_H 0022 0023 #include <KoGenericRegistry.h> 0024 0025 #include "pigment_export.h" 0026 0027 class KoColorSpace; 0028 class KoColorTransformationFactory; 0029 0030 /** 0031 * This class list the available transformation. The only reason to use directly 0032 * that class is for adding new factory use the static method 0033 * KoColorTransformationFactoryRegistry::add. 0034 */ 0035 class PIGMENTCMS_EXPORT KoColorTransformationFactoryRegistry : private KoGenericRegistry<KoColorTransformationFactory*> 0036 { 0037 friend class KoColorSpace; 0038 public: 0039 ~KoColorTransformationFactoryRegistry() override; 0040 /** 0041 * Add a KoColorTransformationFactory to the registry. 0042 */ 0043 static void addColorTransformationFactory(KoColorTransformationFactory* factory); 0044 static void removeColorTransformationFactory(KoColorTransformationFactory* factory); 0045 private: 0046 static KoColorTransformationFactoryRegistry* instance(); 0047 private: 0048 KoColorTransformationFactoryRegistry(); 0049 private: 0050 struct Private; 0051 Private* const d; 0052 }; 0053 0054 #endif