2023-01-23 22:58:02 +00:00
|
|
|
/*
|
|
|
|
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 Ui {
|
|
|
|
class RpWidget;
|
|
|
|
class VerticalLayout;
|
|
|
|
} // namespace Ui
|
|
|
|
|
|
|
|
namespace Window {
|
|
|
|
class SessionController;
|
|
|
|
} // namespace Window
|
|
|
|
|
|
|
|
namespace UserpicBuilder {
|
|
|
|
|
2023-01-25 16:29:50 +00:00
|
|
|
struct StartData;
|
2023-01-30 20:32:41 +00:00
|
|
|
struct Result;
|
2023-01-24 12:10:08 +00:00
|
|
|
|
2023-01-25 16:29:50 +00:00
|
|
|
template <typename Result>
|
|
|
|
struct BothWayCommunication;
|
2023-01-23 22:58:02 +00:00
|
|
|
|
|
|
|
not_null<Ui::VerticalLayout*> CreateUserpicBuilder(
|
|
|
|
not_null<Ui::RpWidget*> parent,
|
|
|
|
not_null<Window::SessionController*> controller,
|
2023-01-24 12:10:08 +00:00
|
|
|
StartData data,
|
2023-01-30 20:32:41 +00:00
|
|
|
BothWayCommunication<UserpicBuilder::Result> communication);
|
2023-01-23 22:58:02 +00:00
|
|
|
|
2023-01-24 13:25:02 +00:00
|
|
|
[[nodiscard]] not_null<Ui::RpWidget*> CreateEmojiUserpic(
|
|
|
|
not_null<Ui::RpWidget*> parent,
|
|
|
|
const QSize &size,
|
|
|
|
rpl::producer<not_null<DocumentData*>> document,
|
2023-01-31 20:41:16 +00:00
|
|
|
rpl::producer<int> colorIndex,
|
|
|
|
bool isForum);
|
2023-01-24 13:25:02 +00:00
|
|
|
|
2023-01-23 22:58:02 +00:00
|
|
|
} // namespace UserpicBuilder
|