/* -*- C++ -*- This file is part of ThreadWeaver. SPDX-FileCopyrightText: 2005-2014 Mirko Boehm SPDX-License-Identifier: LGPL-2.0-or-later */ #ifndef FILELOADERJOB_H #define FILELOADERJOB_H #include class Image; namespace ThreadWeaver { class ResourceRestrictionPolicy; } class FileLoaderJob : public ThreadWeaver::Job { public: explicit FileLoaderJob(Image *image, ThreadWeaver::ResourceRestrictionPolicy *throttle); int priority() const override; void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread *thread) override; private: Image *m_image; }; #endif // FILELOADERJOB_H