/* 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 "export/export_settings.h" #include "ui/rp_widget.h" namespace Export { namespace View { class SettingsWidget : public Ui::RpWidget { public: SettingsWidget(QWidget *parent); rpl::producer startClicks() const; rpl::producer<> cancelClicks() const; private: using Type = Settings::Type; using Types = Settings::Types; using MediaType = MediaSettings::Type; using MediaTypes = MediaSettings::Types; void setupContent(); void refreshButtons(not_null container); Settings _data; struct Wrap { Wrap(rpl::producer<> value = rpl::never<>()) : value(std::move(value)) { } rpl::producer<> value; }; rpl::variable _startClicks; rpl::variable _cancelClicks; }; } // namespace View } // namespace Export