19#ifndef HEADER_RECOVERY_DIALOG_HPP
20#define HEADER_RECOVERY_DIALOG_HPP
23#include "guiengine/modaldialog.hpp"
24#include "guiengine/widgets.hpp"
47 GUIEngine::EventPropagation
processEvent(
const std::string& eventSource);
55 bool m_show_recovery_input;
56 bool m_show_recovery_info;
58 std::shared_ptr<Online::XMLRequest> m_recovery_request;
Abstract base class representing a modal dialog.
Definition: modaldialog.hpp:56
A text field widget.
Definition: text_box_widget.hpp:53
Dialog that allows a user to recover his account.
Definition: recovery_dialog.hpp:36
void onEnterPressedInternal()
Called when the user pressed enter.
Definition: recovery_dialog.cpp:170
GUIEngine::EventPropagation processEvent(const std::string &eventSource)
Handle a user event.
Definition: recovery_dialog.cpp:142
virtual bool onEscapePressed()
Let esc act as cancel.
Definition: recovery_dialog.cpp:104
virtual void onUpdate(float dt)
This is called every frame and checks if an outstanding recovery request was finished.
Definition: recovery_dialog.cpp:184
virtual ~RecoveryDialog()
Destructor, destroys the recovery request.
Definition: recovery_dialog.cpp:49
RecoveryDialog()
Constructor for the recovery dialog.
Definition: recovery_dialog.cpp:38
void showRecoveryInput()
Shows the input screen to get the account name and email address.
Definition: recovery_dialog.cpp:56
void showRecoveryInfo()
Informs the user that an email will be sent.
Definition: recovery_dialog.cpp:85