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++
812 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2017 Dmitry Kazakov <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef KISRUNNABLESTROKEJOBSINTERFACE_H
#define KISRUNNABLESTROKEJOBSINTERFACE_H

#include "kritaimage_export.h"
#include <QtGlobal>
#include "kis_pointer_utils.h"

class KisRunnableStrokeJobDataBase;


class KRITAIMAGE_EXPORT KisRunnableStrokeJobsInterface
{
public:
    virtual ~KisRunnableStrokeJobsInterface();

    void addRunnableJob(KisRunnableStrokeJobDataBase *data);
    virtual void addRunnableJobs(const QVector<KisRunnableStrokeJobDataBase*> &list) = 0;

    template <typename T>
    void addRunnableJobs(const QVector<T*> &list) {
        this->addRunnableJobs(implicitCastList<KisRunnableStrokeJobDataBase*>(list));
    }
};

#endif // KISRUNNABLESTROKEJOBSINTERFACE_H