File indexing completed on 2024-10-06 12:53:58

0001 // SPDX-FileCopyrightText: 2021 Tobias Fella <tobias.fella@kde.org>
0002 // SPDX-License-Identifier: LGPL-2.0-or-later
0003 
0004 #pragma once
0005 
0006 #include <QQuickImageProvider>
0007 
0008 /**
0009  * @class BlurhashImageProvider
0010  *
0011  * A QQuickImageProvider for blurhashes.
0012  *
0013  * @sa QQuickImageProvider
0014  */
0015 class BlurhashImageProvider : public QQuickImageProvider
0016 {
0017 public:
0018     BlurhashImageProvider();
0019 
0020     /**
0021      * @brief Return an image for a given ID.
0022      *
0023      * @sa QQuickImageProvider::requestImage
0024      */
0025     QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize) override;
0026 };