tdesktop/Telegram/SourceFiles/boxes/auto_download_box.h

40 lines
768 B
C
Raw Normal View History

2018-12-06 15:47:28 +00: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
#include "ui/layers/box_content.h"
2018-12-06 15:47:28 +00:00
2019-07-24 14:00:30 +00:00
namespace Main {
class Session;
} // namespace Main
2018-12-06 15:47:28 +00:00
namespace Data {
namespace AutoDownload {
enum class Source;
} // namespace AutoDownload
} // namespace Data
2019-09-18 11:19:05 +00:00
class AutoDownloadBox : public Ui::BoxContent {
2018-12-06 15:47:28 +00:00
public:
2019-07-24 14:00:30 +00:00
AutoDownloadBox(
QWidget*,
not_null<Main::Session*> session,
Data::AutoDownload::Source source);
2018-12-06 15:47:28 +00:00
protected:
void prepare() override;
private:
void setupContent();
2019-07-24 14:00:30 +00:00
const not_null<Main::Session*> _session;
2018-12-06 15:47:28 +00:00
Data::AutoDownload::Source _source;
};