auto_download_box.h 768 B

123456789101112131415161718192021222324252627282930313233343536373839
  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/box_content.h"
  9. namespace Main {
  10. class Session;
  11. } // namespace Main
  12. namespace Data {
  13. namespace AutoDownload {
  14. enum class Source;
  15. } // namespace AutoDownload
  16. } // namespace Data
  17. class AutoDownloadBox : public Ui::BoxContent {
  18. public:
  19. AutoDownloadBox(
  20. QWidget*,
  21. not_null<Main::Session*> session,
  22. Data::AutoDownload::Source source);
  23. protected:
  24. void prepare() override;
  25. private:
  26. void setupContent();
  27. const not_null<Main::Session*> _session;
  28. Data::AutoDownload::Source _source;
  29. };