data_document_resolver.h 792 B

123456789101112131415161718192021222324252627282930313233343536
  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/binary_guard.h"
  9. class DocumentData;
  10. class HistoryItem;
  11. namespace Window {
  12. class SessionController;
  13. } // namespace Window
  14. namespace Data {
  15. class DocumentMedia;
  16. extern const char kOptionExternalVideoPlayer[];
  17. base::binary_guard ReadBackgroundImageAsync(
  18. not_null<Data::DocumentMedia*> media,
  19. FnMut<QImage(QImage)> postprocess,
  20. FnMut<void(QImage&&)> done);
  21. void ResolveDocument(
  22. Window::SessionController *controller,
  23. not_null<DocumentData*> document,
  24. HistoryItem *item,
  25. MsgId topicRootId);
  26. } // namespace Data