tdesktop/Telegram/SourceFiles/ui/chat/choose_send_as.h

43 lines
914 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
#include "base/object_ptr.h"
#include "ui/layers/generic_box.h"
class PeerData;
namespace Main {
struct SendAsPeer;
} // namespace Main
namespace Window {
class SessionController;
} // namespace Window
namespace Ui {
class SendAsButton;
void ChooseSendAsBox(
not_null<GenericBox*> box,
std::vector<Main::SendAsPeer> list,
not_null<PeerData*> chosen,
Fn<bool(not_null<PeerData*>)> done);
void SetupSendAsButton(
not_null<SendAsButton*> button,
rpl::producer<PeerData*> active,
not_null<Window::SessionController*> window);
void SetupSendAsButton(
not_null<SendAsButton*> button,
not_null<Window::SessionController*> window);
} // namespace Ui