/* SPDX-FileCopyrightText: 2022 Fushan Wen SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once #include #include /** * Custom image provider for KPackage */ class PackageImageProvider : public QQuickAsyncImageProvider { public: explicit PackageImageProvider(); QQuickImageResponse *requestImageResponse(const QString &id, const QSize &requestedSize) override; private: QThreadPool m_pool; };