// SPDX-FileCopyrightText: 2020 Jonah BrĂ¼chert // SPDX-FileCopyrightText: 2020 Rinigus // // SPDX-License-Identifier: GPL-2.0-or-later #ifndef ICONIMAGEPROVIDER_H #define ICONIMAGEPROVIDER_H #include #include #include #include class IconImageProvider : public QCoro::ImageProvider { public: IconImageProvider(); QCoro::Task asyncRequestImage(const QString &id, const QSize &) override; static QString providerId(); }; // store image into the database if it is missing. Return new // image:// uri that should be used to fetch the icon QCoro::Task storeIcon(QQmlEngine *engine, const QString &iconSource); #endif // ICONIMAGEPROVIDER_H