19 #ifndef HEADER_RECOVERY_DIALOG_HPP
20 #define HEADER_RECOVERY_DIALOG_HPP
22 #include "guiengine/modaldialog.hpp"
26 class IconButtonWidget;
class LabelWidget;
class RibbonWidget;
50 GUIEngine::EventPropagation
processEvent(
const std::string& eventSource);
58 bool m_show_recovery_input;
59 bool m_show_recovery_info;
61 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:39
void onEnterPressedInternal()
Called when the user pressed enter.
Definition: recovery_dialog.cpp:174
GUIEngine::EventPropagation processEvent(const std::string &eventSource)
Handle a user event.
Definition: recovery_dialog.cpp:146
virtual bool onEscapePressed()
Let esc act as cancel.
Definition: recovery_dialog.cpp:108
virtual void onUpdate(float dt)
This is called every frame and checks if an outstanding recovery request was finished.
Definition: recovery_dialog.cpp:188
virtual ~RecoveryDialog()
Destructor, destroys the recovery request.
Definition: recovery_dialog.cpp:53
RecoveryDialog()
Constructor for the recovery dialog.
Definition: recovery_dialog.cpp:42
void showRecoveryInput()
Shows the input screen to get the account name and email address.
Definition: recovery_dialog.cpp:60
void showRecoveryInfo()
Informs the user that an email will be sent.
Definition: recovery_dialog.cpp:89
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33