forward_options_box.h 682 B

12345678910111213141516171819202122232425262728293031
  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/generic_box.h"
  9. namespace Ui {
  10. class AbstractCheckView;
  11. struct ForwardOptions {
  12. int sendersCount = 0;
  13. int captionsCount = 0;
  14. bool dropNames = false;
  15. bool dropCaptions = false;
  16. };
  17. void FillForwardOptions(
  18. Fn<not_null<AbstractCheckView*>(
  19. rpl::producer<QString> &&,
  20. bool)> createView,
  21. ForwardOptions options,
  22. Fn<void(ForwardOptions)> optionsChanged,
  23. rpl::lifetime &lifetime);
  24. } // namespace Ui