attach_abstract_single_preview.h 603 B

123456789101112131415161718192021222324
  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/rp_widget.h"
  9. namespace Ui {
  10. class AbstractSinglePreview : public RpWidget {
  11. public:
  12. using RpWidget::RpWidget;
  13. [[nodiscard]] virtual rpl::producer<> deleteRequests() const = 0;
  14. [[nodiscard]] virtual rpl::producer<> editRequests() const = 0;
  15. [[nodiscard]] virtual rpl::producer<> modifyRequests() const = 0;
  16. };
  17. } // namespace Ui