/* 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 "ui/rp_widget.h" namespace Api { struct SendOptions; } // namespace Api namespace Ui { class PopupMenu; } // namespace Ui namespace SendMenu { enum class Type { Disabled, SilentOnly, Scheduled, ScheduledToUser, // For "Send when online". Reminder, }; enum class FillMenuResult { Success, None, }; Fn DefaultSilentCallback(Fn send); Fn DefaultScheduleCallback( not_null parent, Type type, Fn send); FillMenuResult FillSendMenu( not_null menu, Type type, Fn silent, Fn schedule); void SetupMenuAndShortcuts( not_null button, Fn type, Fn silent, Fn schedule); } // namespace SendMenu