1#ifndef SECURITY_QUESTION_LAYER_H
2#define SECURITY_QUESTION_LAYER_H
51 void Reset()
override;
SecurityLayer(QWidget *parent=nullptr)
Constructs a SecurityLayer.
Definition security_layer.h:20
void Reset() override
Resets the layer to its initial state. Stops the hint timer, clears the input field and question labe...
Definition security_question_layer.cpp:87
TranslationManager * translator_
Pointer to the translation manager for handling UI translations.
Definition security_question_layer.h:75
void SecurityQuestionTimeout() const
Slot called by security_question_timer_ after a timeout (10 seconds). Updates the security_question_l...
Definition security_question_layer.cpp:148
QLineEdit * security_question_input_
Input field for the user to type their answer.
Definition security_question_layer.h:71
QTimer * security_question_timer_
Timer controlling when the hint is displayed.
Definition security_question_layer.h:73
SecurityQuestionLayer(QWidget *parent=nullptr)
Constructs a SecurityQuestionLayer. Initializes the UI elements (title, instructions,...
Definition security_question_layer.cpp:11
void Initialize() override
Initializes the layer for display. Resets the input field and styles, sets the initial question text,...
Definition security_question_layer.cpp:74
void CheckSecurityAnswer()
Checks the security answer (always accepts in this implementation). Called when the user presses Ente...
Definition security_question_layer.cpp:113
~SecurityQuestionLayer() override
Destructor. Stops and deletes the hint timer.
Definition security_question_layer.cpp:66
QLabel * security_question_label_
Label displaying the security question prompt or hint.
Definition security_question_layer.h:69
Manages the loading and delivery of translations for applications.
Definition translation_manager.h:15