/* 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" class AuthSession; namespace Ui { class ScrollArea; } // namespace Ui namespace Support { class Autocomplete : public Ui::RpWidget { public: Autocomplete(QWidget *parent, not_null session); void activate(); void deactivate(); void setBoundings(QRect rect); rpl::producer insertRequests(); protected: void keyPressEvent(QKeyEvent *e) override; private: void setupContent(); not_null _session; Fn _activate; Fn _deactivate; Fn _moveSelection; rpl::event_stream _insertRequests; }; } //namespace Support