/* 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" class UserData; namespace Window { class Controller; } // namespace Window namespace Ui { class VerticalLayout; } // namespace Ui class AddToContactsBox : public BoxContent { public: AddToContactsBox( QWidget*, not_null window, not_null user); protected: void prepare() override; void setInnerFocus() override; private: void setupContent(); void setupCover(not_null container); void setupNameFields(not_null container); void setupWarning(not_null container); void initNameFields( not_null first, not_null last, bool inverted); not_null _window; not_null _user; QString _phone; Fn _focus; Fn _save; };