mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 17:06:03 +00:00
40 lines
792 B
C
40 lines
792 B
C
![]() |
/*
|
||
|
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
|
||
|
|
||
|
#include "boxes/abstract_box.h"
|
||
|
|
||
|
namespace Passport {
|
||
|
|
||
|
class FormController;
|
||
|
|
||
|
class FormBox : public BoxContent {
|
||
|
public:
|
||
|
FormBox(QWidget*, not_null<FormController*> controller);
|
||
|
|
||
|
protected:
|
||
|
void prepare() override;
|
||
|
void setInnerFocus() override;
|
||
|
|
||
|
private:
|
||
|
class CheckWidget;
|
||
|
class Inner;
|
||
|
|
||
|
void submitPassword();
|
||
|
void showForm();
|
||
|
void submitForm();
|
||
|
|
||
|
not_null<FormController*> _controller;
|
||
|
object_ptr<Inner> _innerCached = { nullptr };
|
||
|
QPointer<CheckWidget> _passwordCheck;
|
||
|
QPointer<Inner> _inner;
|
||
|
|
||
|
};
|
||
|
|
||
|
} // namespace Passport
|