choose_time.h 551 B

1234567891011121314151617181920212223242526
  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 "base/object_ptr.h"
  9. namespace Ui {
  10. class RpWidget;
  11. struct ChooseTimeResult {
  12. object_ptr<RpWidget> widget;
  13. rpl::producer<TimeId> secondsValue;
  14. };
  15. ChooseTimeResult ChooseTimeWidget(
  16. not_null<RpWidget*> parent,
  17. TimeId startSeconds,
  18. bool hiddenDaysInput = false);
  19. } // namespace Ui