Krita Source Code Documentation
Loading...
Searching...
No Matches
KisRunnableStrokeJobsInterface.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 KISRUNNABLESTROKEJOBSINTERFACE_H
8#define KISRUNNABLESTROKEJOBSINTERFACE_H
9
10#include "kritaimage_export.h"
11#include <QtGlobal>
12#include "kis_pointer_utils.h"
13
15
16
17class KRITAIMAGE_EXPORT KisRunnableStrokeJobsInterface
18{
19public:
21
22 void addRunnableJob(KisRunnableStrokeJobDataBase *data);
24
25 template <typename T>
26 void addRunnableJobs(const QVector<T*> &list) {
27 this->addRunnableJobs(implicitCastList<KisRunnableStrokeJobDataBase*>(list));
28 }
29};
30
31#endif // KISRUNNABLESTROKEJOBSINTERFACE_H
void addRunnableJobs(const QVector< T * > &list)
virtual void addRunnableJobs(const QVector< KisRunnableStrokeJobDataBase * > &list)=0