1 | /* -*- C++ -*- |
2 | This file is part of ThreadWeaver. |
3 | |
4 | SPDX-FileCopyrightText: 2005-2014 Mirko Boehm <mirko@kde.org> |
5 | |
6 | SPDX-License-Identifier: LGPL-2.0-or-later |
7 | */ |
8 | |
9 | #ifndef COMPUTETHUMBNAILJOB_H |
10 | #define COMPUTETHUMBNAILJOB_H |
11 | |
12 | #include <ThreadWeaver/ThreadWeaver> |
13 | |
14 | class Image; |
15 | |
16 | namespace ThreadWeaver |
17 | { |
18 | class ResourceRestrictionPolicy; |
19 | } |
20 | |
21 | class ComputeThumbNailJob : public ThreadWeaver::Job |
22 | { |
23 | public: |
24 | ComputeThumbNailJob(Image *image, ThreadWeaver::ResourceRestrictionPolicy *throttle); |
25 | int priority() const override; |
26 | void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread *thread) override; |
27 | |
28 | private: |
29 | Image *m_image; |
30 | }; |
31 | |
32 | #endif // COMPUTETHUMBNAILJOB_H |
33 | |