36 lines
876 B
C++
36 lines
876 B
C++
/*
|
|
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
|
|
|
|
namespace Data {
|
|
enum class StorySourcesList : uchar;
|
|
class Story;
|
|
} // namespace Data
|
|
|
|
namespace Main {
|
|
class Session;
|
|
} // namespace Main
|
|
|
|
namespace Dialogs::Stories {
|
|
|
|
struct Content;
|
|
class Thumbnail;
|
|
|
|
[[nodiscard]] rpl::producer<Content> ContentForSession(
|
|
not_null<Main::Session*> session,
|
|
Data::StorySourcesList list);
|
|
|
|
[[nodiscard]] rpl::producer<Content> LastForPeer(not_null<PeerData*> peer);
|
|
|
|
[[nodiscard]] std::shared_ptr<Thumbnail> MakeUserpicThumbnail(
|
|
not_null<PeerData*> peer);
|
|
[[nodiscard]] std::shared_ptr<Thumbnail> MakeStoryThumbnail(
|
|
not_null<Data::Story*> story);
|
|
|
|
} // namespace Dialogs::Stories
|