Debian Codegraph @

libs/image/kis_spontaneous_job.h

raw symbols SCIP
1 /*
2 * SPDX-FileCopyrightText: 2013 Dmitry Kazakov <[email protected]>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7 #ifndef __KIS_SPONTANEOUS_JOB_H
8 #define __KIS_SPONTANEOUS_JOB_H
9
10 #include "kis_runnable_with_debug_name.h"
11
12 /**
13 * This class represents a simple update just that should be
14 * executed by the updates system from time to time, without
15 * any undo support. Just some useful update that
16 * can be run concurrently with other types updates.
17 */
18 class KRITAIMAGE_EXPORT KisSpontaneousJob : public KisRunnableWithDebugName
19 {
20 public:
21 virtual bool overrides(const KisSpontaneousJob *otherJob) = 0;
22 virtual int levelOfDetail() const = 0;
23 bool isExclusive() const {
24 return m_isExclusive;
25 }
26
27 protected:
28 void setExclusive(bool value) {
29 m_isExclusive = value;
30 }
31
32 private:
33 bool m_isExclusive = false;
34 };
35
36 #endif /* __KIS_SPONTANEOUS_JOB_H */