mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 13:17:08 +02:00
59 lines
1.4 KiB
C++
59 lines
1.4 KiB
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
|
|
|
|
#include "base/object_ptr.h"
|
|
|
|
class PeerData;
|
|
|
|
namespace style {
|
|
struct ShortInfoCover;
|
|
struct ShortInfoBox;
|
|
} // namespace style
|
|
|
|
namespace Ui::Menu {
|
|
struct MenuCallback;
|
|
} // namespace Ui::Menu
|
|
|
|
namespace Ui {
|
|
class BoxContent;
|
|
} // namespace Ui
|
|
|
|
namespace Window {
|
|
class SessionNavigation;
|
|
} // namespace Window
|
|
|
|
struct PeerShortInfoUserpic;
|
|
|
|
struct PreparedShortInfoUserpic {
|
|
rpl::producer<PeerShortInfoUserpic> value;
|
|
Fn<void(int)> move;
|
|
};
|
|
|
|
[[nodiscard]] object_ptr<Ui::BoxContent> PrepareShortInfoBox(
|
|
not_null<PeerData*> peer,
|
|
Fn<void()> open,
|
|
Fn<bool()> videoPaused,
|
|
Fn<void(Ui::Menu::MenuCallback)> menuFiller,
|
|
const style::ShortInfoBox *stOverride = nullptr);
|
|
|
|
[[nodiscard]] object_ptr<Ui::BoxContent> PrepareShortInfoBox(
|
|
not_null<PeerData*> peer,
|
|
not_null<Window::SessionNavigation*> navigation,
|
|
const style::ShortInfoBox *stOverride = nullptr);
|
|
|
|
[[nodiscard]] rpl::producer<QString> PrepareShortInfoStatus(
|
|
not_null<PeerData*> peer);
|
|
|
|
[[nodiscard]] PreparedShortInfoUserpic PrepareShortInfoUserpic(
|
|
not_null<PeerData*> peer,
|
|
const style::ShortInfoCover &st);
|
|
|
|
[[nodiscard]] PreparedShortInfoUserpic PrepareShortInfoFallbackUserpic(
|
|
not_null<PeerData*> peer,
|
|
const style::ShortInfoCover &st);
|