2018-12-06 19:47:28 +04:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
|
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2023-11-15 03:52:41 +03:00
|
|
|
#include "ui/layers/box_content.h"
|
2018-12-06 19:47:28 +04:00
|
|
|
|
2019-07-24 16:00:30 +02:00
|
|
|
namespace Main {
|
|
|
|
class Session;
|
|
|
|
} // namespace Main
|
|
|
|
|
2018-12-06 19:47:28 +04:00
|
|
|
namespace Data {
|
|
|
|
namespace AutoDownload {
|
|
|
|
enum class Source;
|
|
|
|
} // namespace AutoDownload
|
|
|
|
} // namespace Data
|
|
|
|
|
2019-09-18 14:19:05 +03:00
|
|
|
class AutoDownloadBox : public Ui::BoxContent {
|
2018-12-06 19:47:28 +04:00
|
|
|
public:
|
2019-07-24 16:00:30 +02:00
|
|
|
AutoDownloadBox(
|
|
|
|
QWidget*,
|
|
|
|
not_null<Main::Session*> session,
|
|
|
|
Data::AutoDownload::Source source);
|
2018-12-06 19:47:28 +04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void prepare() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void setupContent();
|
|
|
|
|
2019-07-24 16:00:30 +02:00
|
|
|
const not_null<Main::Session*> _session;
|
|
|
|
|
2018-12-06 19:47:28 +04:00
|
|
|
Data::AutoDownload::Source _source;
|
|
|
|
|
|
|
|
};
|