2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Start passport support: handle link, receive form.

This commit is contained in:
John Preston
2018-03-18 12:51:14 +04:00
parent e122353bfb
commit ddb4527159
18 changed files with 471 additions and 58 deletions

View File

@@ -21,6 +21,11 @@ class RoundController;
} // namespace Player
} // namespace Media
namespace Passport {
struct FormRequest;
class FormController;
} // namespace Passport
namespace Window {
class LayerWidget;
@@ -200,6 +205,8 @@ public:
Dialogs::Key chat,
QDate requestedDate);
void showAuthForm(const Passport::FormRequest &request);
base::Variable<bool> &dialogsListFocused() {
return _dialogsListFocused;
}
@@ -246,6 +253,8 @@ private:
not_null<MainWindow*> _window;
std::unique_ptr<Passport::FormController> _authForm;
GifPauseReasons _gifPauseReasons = 0;
base::Observable<void> _gifPauseLevelChanged;
base::Observable<void> _floatPlayerAreaUpdated;