2015-03-02 15:34:16 +03:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 13:23:14 +03:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2015-03-02 15:34:16 +03:00
|
|
|
|
2018-01-03 13:23:14 +03:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2015-03-02 15:34:16 +03:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2017-04-06 17:38:10 +03:00
|
|
|
#include "boxes/abstract_box.h"
|
2015-03-02 15:34:16 +03:00
|
|
|
|
2019-07-24 16:00:30 +02:00
|
|
|
namespace Main {
|
|
|
|
class Session;
|
|
|
|
} // namespace Main
|
|
|
|
|
2016-10-28 12:20:24 +03:00
|
|
|
namespace Ui {
|
|
|
|
class Radiobutton;
|
|
|
|
} // namespace Ui
|
|
|
|
|
2019-09-18 14:19:05 +03:00
|
|
|
class AutoLockBox : public Ui::BoxContent {
|
2015-03-02 15:34:16 +03:00
|
|
|
public:
|
2019-07-24 16:00:30 +02:00
|
|
|
AutoLockBox(QWidget*, not_null<Main::Session*> session);
|
2015-03-02 15:34:16 +03:00
|
|
|
|
2016-12-13 20:07:56 +03:00
|
|
|
protected:
|
|
|
|
void prepare() override;
|
|
|
|
|
2015-04-02 13:33:19 +03:00
|
|
|
private:
|
2017-03-19 00:06:10 +03:00
|
|
|
void durationChanged(int seconds);
|
|
|
|
|
2019-07-24 16:00:30 +02:00
|
|
|
const not_null<Main::Session*> _session;
|
|
|
|
|
2017-03-19 00:06:10 +03:00
|
|
|
std::vector<object_ptr<Ui::Radiobutton>> _options;
|
2016-08-16 19:53:10 +03:00
|
|
|
|
2015-03-02 15:34:16 +03:00
|
|
|
};
|