auto_lock_box.h 560 B

12345678910111213141516171819202122232425262728
  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/layers/box_content.h"
  9. namespace Ui {
  10. class Radiobutton;
  11. } // namespace Ui
  12. class AutoLockBox : public Ui::BoxContent {
  13. public:
  14. AutoLockBox(QWidget*);
  15. protected:
  16. void prepare() override;
  17. private:
  18. void durationChanged(int seconds);
  19. std::vector<object_ptr<Ui::Radiobutton>> _options;
  20. };