8 #include <QtGui/QPixmap>
13 static QUrl makeRequestUrl(
const HomeserverData& hsData,
const QUrl& mxcUri,
14 QSize requestedSize, std::optional<
bool> animated = std::nullopt);
15 static QUrl makeRequestUrl(
const HomeserverData& hsData,
const QString& serverName,
16 const QString& mediaId, QSize requestedSize,
17 std::optional<
bool> animated = std::nullopt);
19 MediaThumbnailJob(QString serverName, QString mediaId, QSize requestedSize,
20 std::optional<
bool> animated = std::nullopt);
21 MediaThumbnailJob(
const QUrl& mxcUri, QSize requestedSize,
22 std::optional<
bool> animated = std::nullopt);
24 QImage thumbnail()
const;
25 [[deprecated(
"Use thumbnail().scaled() instead")]]
26 QImage scaledThumbnail(QSize toSize)
const;
32 std::optional<
bool> animated;
35 void doPrepare(
const ConnectionData* connectionData) override;
36 Status prepareResult() override;
39 inline auto collectResponse(
const MediaThumbnailJob* j) {
return j->thumbnail(); }