attach_single_file_preview.h 675 B

1234567891011121314151617181920212223242526272829
  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/chat/attach/attach_abstract_single_file_preview.h"
  9. namespace Ui {
  10. struct PreparedFile;
  11. class SingleFilePreview final : public AbstractSingleFilePreview {
  12. public:
  13. SingleFilePreview(
  14. QWidget *parent,
  15. const style::ComposeControls &st,
  16. const PreparedFile &file,
  17. AttachControls::Type type = AttachControls::Type::Full);
  18. private:
  19. void preparePreview(const PreparedFile &file);
  20. };
  21. } // namespace Ui