MauiKit File Browsing

thumbnailer.h
1#pragma once
2#include <QString>
3#include <QQuickImageProvider>
4#include "filebrowsing_export.h"
5
6/**
7 * @private
8 */
9class AsyncImageResponse : public QQuickImageResponse
10{
11public:
12 AsyncImageResponse(const QString &id, const QSize &requestedSize);
13 QQuickTextureFactory *textureFactory() const override;
14 QString errorString() const override;
15
16private:
17 QString m_id;
18 QSize m_requestedSize;
19 QImage m_image;
20 QString m_error;
21};
22
23class FILEBROWSING_EXPORT Thumbnailer : public QQuickAsyncImageProvider
24{
25public:
26 QQuickImageResponse *requestImageResponse(const QString &id, const QSize &requestedSize) override;
27};
28
virtual QQuickImageResponse * requestImageResponse(const QString &id, const QSize &requestedSize)=0
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:48:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.