Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
948 B
Raw Blame
/* This file is part of the KDE project
 * SPDX-FileCopyrightText: 2016 Boudewijn Rempt <[email protected]>
 *
 * SPDX-License-Identifier: LGPL-2.0-or-later
 */
#ifndef KISPREEXPORTCHECKER_H
#define KISPREEXPORTCHECKER_H

#include <kis_types.h>
#include "kritaimpex_export.h"

#include "KisExportCheckBase.h"

class KisExportConverterBase;

class KRITAIMPEX_EXPORT KisPreExportChecker
{
public:
    KisPreExportChecker();

    /**
     * @brief check checks the image against the capabilities of the export filter
     * @param image the current image
     * @param filterChecks the list of capabilities the filter possesses
     * @return true if no warnings and no conversions are needed
     */
    bool check(KisImageSP image, QMap<QString, KisExportCheckBase *> filterChecks);
    QStringList warnings() const;
    QStringList errors() const;

private:

    QStringList m_errors;
    QStringList m_warnings;
};

#endif // KISPREEXPORTCHECKER_H