File indexing completed on 2024-05-12 15:59:02
0001 /* This file is part of the KDE project 0002 * SPDX-FileCopyrightText: 2016 Boudewijn Rempt <boud@valdyas.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 #ifndef KISPREEXPORTCHECKER_H 0007 #define KISPREEXPORTCHECKER_H 0008 0009 #include <kis_types.h> 0010 #include "kritaimpex_export.h" 0011 0012 #include "KisExportCheckBase.h" 0013 0014 class KisExportConverterBase; 0015 0016 class KRITAIMPEX_EXPORT KisPreExportChecker 0017 { 0018 public: 0019 KisPreExportChecker(); 0020 0021 /** 0022 * @brief check checks the image against the capabilities of the export filter 0023 * @param image the current image 0024 * @param filterChecks the list of capabilities the filter possesses 0025 * @return true if no warnings and no conversions are needed 0026 */ 0027 bool check(KisImageSP image, QMap<QString, KisExportCheckBase *> filterChecks); 0028 QStringList warnings() const; 0029 QStringList errors() const; 0030 0031 private: 0032 0033 QStringList m_errors; 0034 QStringList m_warnings; 0035 }; 0036 0037 #endif // KISPREEXPORTCHECKER_H