2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-27 20:57:32 +00:00
tdesktop/Telegram/SourceFiles/boxes/change_phone_box.h

62 lines
1.2 KiB
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 17:38:10 +03:00
#include "boxes/abstract_box.h"
#include "settings/settings_common.h"
namespace Lottie {
class Icon;
} // namespace Lottie
namespace Window {
class SessionController;
} // namespace Window
2019-07-24 16:00:30 +02:00
namespace Settings {
class ChangePhone : public Section<ChangePhone> {
public:
ChangePhone(
QWidget *parent,
not_null<Window::SessionController*> controller);
[[nodiscard]] static rpl::producer<QString> Title();
private:
void setupContent(not_null<Window::SessionController*> controller);
};
} // namespace Settings
2019-09-18 14:19:05 +03:00
class ChangePhoneBox : public Ui::BoxContent {
public:
ChangePhoneBox(
QWidget*,
not_null<Window::SessionController*> controller);
void showFinished() override;
protected:
void prepare() override;
void paintEvent(QPaintEvent *e) override;
private:
void animateIcon();
class EnterPhone;
class EnterCode;
const not_null<Window::SessionController*> _controller;
const std::unique_ptr<Lottie::Icon> _icon;
2019-07-24 16:00:30 +02:00
};