tdesktop/Telegram/SourceFiles/boxes/auto_lock_box.h

35 lines
683 B
C
Raw Normal View History

/*
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
2017-04-06 14:38:10 +00:00
#include "boxes/abstract_box.h"
2019-07-24 14:00:30 +00:00
namespace Main {
class Session;
} // namespace Main
namespace Ui {
class Radiobutton;
} // namespace Ui
class AutoLockBox : public BoxContent {
public:
2019-07-24 14:00:30 +00:00
AutoLockBox(QWidget*, not_null<Main::Session*> session);
protected:
void prepare() override;
private:
void durationChanged(int seconds);
2019-07-24 14:00:30 +00:00
const not_null<Main::Session*> _session;
std::vector<object_ptr<Ui::Radiobutton>> _options;
};