ZaStoGram_desktop/Telegram/SourceFiles/menu/menu_ttl.h

27 lines
598 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
namespace Ui {
class Show;
class GenericBox;
} // namespace Ui
namespace TTLMenu {
struct Args {
std::shared_ptr<Ui::Show> show;
TimeId startTtl = 0;
rpl::producer<TextWithEntities> about;
Fn<void(TimeId, Fn<void()>)> callback;
bool hideDisable = false;
};
void TTLBox(not_null<Ui::GenericBox*> box, Args args);
} // namespace TTLMenu