/* 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 "boxes/abstract_box.h" #include "ui/widgets/checkbox.h" enum class HistoryVisibility { Visible, Hidden, }; class EditPeerHistoryVisibilityBox : public BoxContent { public: EditPeerHistoryVisibilityBox( QWidget*, not_null peer, FnMut savedCallback, HistoryVisibility historyVisibilitySavedValue); protected: void prepare() override; private: void setupContent(); not_null _peer; FnMut _savedCallback; HistoryVisibility _historyVisibilitySavedValue; std::shared_ptr> _historyVisibility; };