39 lines
860 B
C++
39 lines
860 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 Window {
|
|
class SessionController;
|
|
} // namespace Window
|
|
|
|
namespace Ui {
|
|
|
|
class SendAsButton;
|
|
|
|
void ChooseSendAsBox(
|
|
not_null<GenericBox*> box,
|
|
std::vector<not_null<PeerData*>> list,
|
|
not_null<PeerData*> chosen,
|
|
Fn<void(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
|