Wavelength
Privacy-focused, cross-platform, and open-source communication application
Loading...
Searching...
No Matches
security_question_layer.h
Go to the documentation of this file.
1#ifndef SECURITY_QUESTION_LAYER_H
2#define SECURITY_QUESTION_LAYER_H
3
4#include "../security_layer.h"
5
6class QLineEdit;
7class QLabel;
9
21 Q_OBJECT
22
23public:
31 explicit SecurityQuestionLayer(QWidget *parent = nullptr);
32
37 ~SecurityQuestionLayer() override;
38
44 void Initialize() override;
45
51 void Reset() override;
52
53private slots:
60
65 void SecurityQuestionTimeout() const;
66
67private:
76};
77
78#endif // SECURITY_QUESTION_LAYER_H
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