2017-03-20 15:41:17 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2017-03-20 15:41:17 +00:00
|
|
|
|
2018-01-03 10:23:14 +00:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2017-03-20 15:41:17 +00:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2017-04-06 14:38:10 +00:00
|
|
|
#include "boxes/abstract_box.h"
|
2017-03-23 12:15:21 +00:00
|
|
|
#include "mtproto/sender.h"
|
2017-03-20 15:41:17 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class RadiobuttonGroup;
|
|
|
|
class Radiobutton;
|
|
|
|
class FlatLabel;
|
|
|
|
} // namespace Ui
|
|
|
|
|
2017-03-23 12:15:21 +00:00
|
|
|
class SelfDestructionBox : public BoxContent, private MTP::Sender {
|
2017-03-20 15:41:17 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
SelfDestructionBox(QWidget*) {
|
|
|
|
}
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void prepare() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::vector<int> _ttlValues;
|
|
|
|
object_ptr<Ui::FlatLabel> _description = { nullptr };
|
|
|
|
std::shared_ptr<Ui::RadiobuttonGroup> _ttlGroup;
|
|
|
|
std::vector<object_ptr<Ui::Radiobutton>> _options;
|
|
|
|
|
|
|
|
};
|