/* This file is part of Telegram Desktop, the official desktop application for the Telegram messaging service. For license and copyright information please follow this link: https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once class DocumentData; class PeerData; class PhotoData; namespace Data { class Story; class Session; struct FileOrigin; } // namespace Data namespace Ui { class DynamicImage; [[nodiscard]] std::shared_ptr MakeUserpicThumbnail( not_null peer, bool forceRound = false); [[nodiscard]] std::shared_ptr MakeSavedMessagesThumbnail(); [[nodiscard]] std::shared_ptr MakeRepliesThumbnail(); [[nodiscard]] std::shared_ptr MakeHiddenAuthorThumbnail(); [[nodiscard]] std::shared_ptr MakeStoryThumbnail( not_null story); [[nodiscard]] std::shared_ptr MakeIconThumbnail( const style::icon &icon); [[nodiscard]] std::shared_ptr MakeEmojiThumbnail( not_null owner, const QString &data); [[nodiscard]] std::shared_ptr MakePhotoThumbnail( not_null photo, FullMsgId fullId); [[nodiscard]] std::shared_ptr MakeDocumentThumbnail( not_null document, FullMsgId fullId); } // namespace Ui