phone_click_handler.h 675 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. #include "ui/basic_click_handlers.h"
  9. namespace Main {
  10. class Session;
  11. } // namespace Main
  12. class PhoneClickHandler : public ClickHandler {
  13. public:
  14. PhoneClickHandler(not_null<Main::Session*> session, QString text);
  15. void onClick(ClickContext context) const override;
  16. TextEntity getTextEntity() const override;
  17. QString tooltip() const override;
  18. private:
  19. const not_null<Main::Session*> _session;
  20. QString _text;
  21. };