/* 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 "data/data_peer.h" enum LangKey : int; template struct EditFlagsControl { object_ptr widget; Fn value; rpl::producer changes; }; EditFlagsControl CreateEditRestrictions( QWidget *parent, LangKey header, MTPDchatBannedRights::Flags restrictions, MTPDchatBannedRights::Flags disabled); EditFlagsControl CreateEditAdminRights( QWidget *parent, LangKey header, MTPDchatAdminRights::Flags rights, MTPDchatAdminRights::Flags disabled, bool isGroup, bool anyoneCanAddMembers);