2017-03-21 11:42:04 +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-21 11:42:04 +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-21 11:42:04 +00:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2017-04-06 14:38:10 +00:00
|
|
|
#include "boxes/abstract_box.h"
|
2022-04-01 11:53:23 +00:00
|
|
|
#include "settings/settings_common.h"
|
|
|
|
|
|
|
|
namespace Lottie {
|
|
|
|
class Icon;
|
|
|
|
} // namespace Lottie
|
2017-03-21 11:42:04 +00:00
|
|
|
|
2021-10-18 16:11:28 +00:00
|
|
|
namespace Window {
|
|
|
|
class SessionController;
|
|
|
|
} // namespace Window
|
2019-07-24 14:00:30 +00:00
|
|
|
|
2022-04-01 11:53:23 +00:00
|
|
|
namespace Settings {
|
|
|
|
|
|
|
|
class ChangePhone : public Section<ChangePhone> {
|
|
|
|
public:
|
|
|
|
ChangePhone(
|
|
|
|
QWidget *parent,
|
|
|
|
not_null<Window::SessionController*> controller);
|
|
|
|
|
|
|
|
void showFinished() override;
|
2022-04-13 08:05:10 +00:00
|
|
|
[[nodiscard]] rpl::producer<QString> title() override;
|
2017-03-21 11:42:04 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
class EnterPhone;
|
|
|
|
class EnterCode;
|
|
|
|
|
2022-04-13 08:05:10 +00:00
|
|
|
void setupContent();
|
|
|
|
|
2021-10-18 16:11:28 +00:00
|
|
|
const not_null<Window::SessionController*> _controller;
|
2022-05-04 07:39:53 +00:00
|
|
|
Fn<void(anim::repeat)> _animate;
|
2019-07-24 14:00:30 +00:00
|
|
|
|
2017-03-21 11:42:04 +00:00
|
|
|
};
|
|
|
|
|
2022-04-13 08:05:10 +00:00
|
|
|
} // namespace Settings
|