|
Wavelength
Privacy-focused, cross-platform, and open-source communication application
|
Abstract base class for individual security challenge layers. More...
#include <security_layer.h>
Signals | |
| void | layerCompleted () |
| Emitted when the user successfully completes the security challenge presented by this layer. | |
| void | layerFailed () |
| Emitted when the user fails the security challenge (e.g., incorrect code, timeout, collision). Note: Not all layers currently implement failure conditions that emit this signal. | |
Public Member Functions | |
| virtual void | Initialize ()=0 |
| Pure virtual function to initialize the security layer for display and interaction. Derived classes must implement this to set up their specific challenge state (e.g., load images, generate codes, start timers). | |
| virtual void | Reset ()=0 |
| Pure virtual function to reset the security layer to its initial, inactive state. Derived classes must implement this to clear inputs, reset progress, stop timers, etc. | |
| SecurityLayer (QWidget *parent=nullptr) | |
| Constructs a SecurityLayer. | |
| ~SecurityLayer () override=default | |
| Virtual destructor. Ensures proper cleanup for derived classes. | |
Abstract base class for individual security challenge layers.
This class defines the common interface for different security verification steps (like fingerprint scan, typing test, etc.). Each derived class implements a specific challenge. It provides signals to indicate completion or failure of the challenge.
|
inlineexplicit |
Constructs a SecurityLayer.
| parent | Optional parent widget. |
|
overridedefault |
Virtual destructor. Ensures proper cleanup for derived classes.
|
pure virtual |
Pure virtual function to initialize the security layer for display and interaction. Derived classes must implement this to set up their specific challenge state (e.g., load images, generate codes, start timers).
Implemented in FingerprintLayer, HandprintLayer, RetinaScanLayer, SecurityCodeLayer, SecurityQuestionLayer, SnakeGameLayer, TypingTestLayer, and VoiceRecognitionLayer.
|
signal |
Emitted when the user successfully completes the security challenge presented by this layer.
|
signal |
Emitted when the user fails the security challenge (e.g., incorrect code, timeout, collision). Note: Not all layers currently implement failure conditions that emit this signal.
|
pure virtual |
Pure virtual function to reset the security layer to its initial, inactive state. Derived classes must implement this to clear inputs, reset progress, stop timers, etc.
Implemented in FingerprintLayer, HandprintLayer, RetinaScanLayer, SecurityCodeLayer, SecurityQuestionLayer, SnakeGameLayer, TypingTestLayer, and VoiceRecognitionLayer.